Skip to content

Latest commit

 

History

History
215 lines (150 loc) · 6.8 KB

File metadata and controls

215 lines (150 loc) · 6.8 KB

SwarmAI Quick Start Guide

Get SwarmAI running in minutes.

System Requirements

Item Requirement
OS macOS 10.15+, Windows 10/11, Linux (Ubuntu 20.04+)
Processor x86_64 or ARM64 (Apple Silicon)
Memory 16GB RAM (36GB recommended for multi-tab)
Disk 500MB available
Network Internet connection required

1. Install SwarmAI

macOS

  1. Download the latest .dmg from GitHub Releases
  2. Open the DMG and drag SwarmAI.app to Applications
  3. If macOS blocks the app:
    xattr -cr /Applications/SwarmAI.app

Windows

  1. Download SwarmAI_x.x.x_x64.msi from GitHub Releases
  2. Run the installer (click "More info" → "Run anyway" if SmartScreen warns)
  3. Install Git Bash if not already present

Build from Source

Prerequisites: Node.js 18+, Python 3.11+, Rust (rustup.rs), uv (curl -LsSf https://astral.sh/uv/install.sh | sh)

git clone https://github.com/xg-gh-25/SwarmAI.git
cd SwarmAI/desktop
npm install
cp ../backend/.env.example ../backend/.env
# Edit ../backend/.env — configure your API provider

npm run build:all
# Build artifacts: ./src-tauri/target/release/bundle/

Development Mode

Two paths to develop and test:

./dev.sh start — runs Python directly (picks up all new code, no rebuild needed)

# Start backend + frontend in dev mode
./dev.sh start

# Or start them separately:
./dev.sh backend   # Restart backend only (after Python changes)
./dev.sh frontend  # Start frontend only (backend already running)
./dev.sh kill      # Stop all dev processes
./dev.sh status    # Show what's running

./dev.sh deploy — builds backend binary and deploys to daemon (fastest way to push code changes)

# Build backend + deploy to daemon (3 min)
./dev.sh deploy

# Quick build: skip PyInstaller, rebuild Tauri only (frontend/Rust changes)
./dev.sh quick

# Full release (backend + DMG + tag + publish)
./prod.sh release

Use ./dev.sh start for daily development — it runs the Python backend directly so code changes take effect immediately without rebuilding. Use ./dev.sh deploy when you need to update the production daemon binary. Use ./prod.sh release for full releases with DMG packaging.

Note: In production, the backend runs as a launchd daemon (macOS) that stays alive even when the desktop app is closed. This enables 24/7 Slack bot, background jobs, and scheduled tasks. The dev mode uses direct Python execution instead.


2. Configure API

Launch SwarmAI and open Settings (gear icon in left sidebar).

Option A: AWS Bedrock (Recommended)

  1. Ensure you have an AWS account with Bedrock Claude model access
  2. Configure AWS credentials:
    aws configure
    # Or for Amazon internal users:
    ada credentials update --account=ACCOUNT_ID --role=ROLE_NAME --provider=isengard
  3. In SwarmAI Settings:
    • Enable "Use AWS Bedrock" toggle
    • Select your AWS Region
    • Verify the credentials status shows ✅
    • Save

Option B: Anthropic API

  1. In SwarmAI Settings:
    • Ensure "Use AWS Bedrock" is OFF
    • Enter your Anthropic API Key
    • Save

Option C: LiteLLM Proxy

  1. Deploy a LiteLLM gateway
  2. In SwarmAI Settings:
    • Enter proxy URL in Base URL field
    • Enter your proxy API Key
    • Save

3. Verify Installation

Open SwarmAI Settings and confirm:

Item Expected
Backend Service ● Running
API Configuration ✓ Configured

Send a test message in the Chat page — if you get an AI response, you're all set.


4. Your First 5 Minutes

The Layout

SwarmAI has three columns:

  • Left — SwarmWS Explorer: Your persistent workspace. Knowledge, notes, projects — all git-tracked. Click the Swarm logo to toggle it.
  • Center — Chat Tabs: Your command surface. Open multiple tabs (Cmd+N) for parallel conversations.
  • Right — Swarm Radar: Live dashboard — ToDos, active sessions, recent artifacts, background jobs.

Try These

  1. Ask anything — "What can you do?" to see the 56+ built-in skills
  2. Open a second tabCmd+N to run a parallel conversation
  3. Browse Skills — click the puzzle icon in the left sidebar to see all capabilities
  4. Check MCP Servers — click the hub icon to see connected tool servers (Slack, Outlook, etc.)
  5. Explore your workspace — SwarmWS Explorer shows your Knowledge/, Projects/, and context files
  6. Say "remember this" — the agent saves to persistent memory, available in every future session

How Memory Works

SwarmAI remembers across sessions automatically:

  • DailyActivity/ — raw session logs captured after every conversation
  • MEMORY.md — curated long-term memory (key decisions, lessons, open threads)
  • EVOLUTION.md — capabilities the agent has built and corrections it has learned
  • .context/ — 11 files that define who the agent is and what it knows about you
  • Hybrid Recall — FTS5 keyword search + sqlite-vec vector search for finding relevant memories on demand

Everything is local, git-tracked, and yours. No cloud sync, no data leaving your machine.

File Attachments

SwarmAI supports 40+ file types for attachment:

  • Native: Images (jpeg/png/gif/webp), PDF, plain text, CSV, markdown
  • Office: .docx, .xlsx, .pptx — routed through specialized skills
  • Audio/Video: .mp3, .wav, .mp4, .webm — transcription via Whisper
  • Code: .py, .ts, .js, .rs, .go, .java, and more
  • SVG: Opens in text editor with visual Preview toggle

Binary files are saved to Attachments/ with path hints for the agent. No more "Prompt is too long" errors.


Data Storage

All data stays local in ~/.swarm-ai/:

Type Path
Database ~/.swarm-ai/data.db
Configuration ~/.swarm-ai/config.json
Workspace ~/.swarm-ai/SwarmWS/
Context Files ~/.swarm-ai/SwarmWS/.context/
Skills ~/.swarm-ai/skills/
Plugin Skills ~/.swarm-ai/plugin-skills/
Logs ~/.swarm-ai/logs/

FAQ

Backend shows Stopped after startup? Wait a few seconds — it auto-starts. If it persists, check ~/.swarm-ai/logs/backend.log.

macOS blocks the app? Run xattr -cr /Applications/SwarmAI.app in Terminal.

Windows SmartScreen warning? Click "More info" → "Run anyway".

How to update? Download the new version, close SwarmAI, replace the app. Data is preserved automatically.

How to completely uninstall? Remove the app, then optionally delete ~/.swarm-ai/ to remove all data.


Get Help

  • GitHub Issues
  • See AGENT.md or CLAUDE.md for developer documentation