SETUP / FIRST TASK / HANDOFF

Install SwarmForge
and run coding agents.

SwarmForge is a self-hosted orchestration platform for autonomous AI coding agents running in isolated VMs. You provide the VM snapshot, model endpoint, and source repository; SwarmForge coordinates workers and preserves their deliverables.

Initial binary support: Linux x64 with glibc. Windows, macOS, ARM64 and Alpine/musl binaries are not published by the current release workflow. VM and inference providers may charge for usage.

1. Have your providers ready

Use a normal user account. The installer does not need sudo and refuses root execution.

2. Install and onboard

curl -fsSL https://getswarmforge.tech/install | bash

The installer resolves a published stable GitHub release, verifies the archive and executable SHA-256, then atomically installs ~/.local/bin/swarmforge. In an interactive terminal it configures the CLI and runs local readiness checks. Existing configuration survives reruns.

The first published release must be available for installation to succeed. If no stable release exists, the installer reports that and changes no executable. Check GitHub Releases for availability.

You can read the installer before executing it:

curl -fsSL https://getswarmforge.tech/install -o install.sh
less install.sh
bash install.sh

Options for existing deployments and automation

# Install the executable without configuration prompts
curl -fsSL https://getswarmforge.tech/install | bash -s -- --install-only

# Install a specific published release
curl -fsSL https://getswarmforge.tech/install | bash -s -- --version 0.1.2 --install-only

# Leave shell profiles unchanged
curl -fsSL https://getswarmforge.tech/install | bash -s -- --no-modify-path

SWARMFORGE_INSTALL_DIR accepts an absolute installation directory. The installer can add an idempotent PATH line for Bash, Zsh, or Fish, and prints instructions for other shells. Open a new terminal afterward. In an editor, reload the workspace and open a new terminal.

SHA-256 checks detect corruption; the installer currently does not verify a publisher signature. All release assets are fetched over HTTPS from the application's GitHub repository.

3. Configure your deployment

Interactive installation invokes swarmforge init when you have no existing configuration. To configure later:

mkdir -p ~/swarmforge-deployment
cd ~/swarmforge-deployment
swarmforge init
swarmforge doctor

Initialization asks for:

SettingWhat to enter
FREESTYLE_API_TOKENYour VM provider API token
FREESTYLE_SNAPSHOT_IDThe prepared worker snapshot identifier
SWARMFORGE_MODEL_BASE_URLThe OpenAI-compatible API base URL
SWARMFORGE_MODEL_API_KEYYour model endpoint API key
SWARMFORGE_MODEL_NAMEThe exact model ID provided by your endpoint
SWARMFORGE_GIT_TREEA repository clone URL or externally managed tree

Credential entry is hidden. The CLI creates a private .env in the current directory and, when no global config exists, registers it for commands run from other directories. It preserves an existing global config. Never commit this file or source it as shell code.

# Use an explicit environment file when needed
swarmforge doctor --env-file .env
swarmforge serve --env-file .env

Ordinary doctor checks are local. The optional swarmforge doctor --live contacts providers and makes a small model inference request. It does not provision VMs. To additionally inspect guest tools, supply --vm with an existing running VM based on the configured snapshot.

4. Start and connect

swarmforge serve

Keep that terminal open. In another terminal:

swarmforge status

Configure your MCP client with a Streamable HTTP server URL. With default settings:

http://127.0.0.1:8787/mcp

Client configuration syntax varies by application. If the server requires authentication, supply its bearer token in the client's supported header configuration. SWARMFORGE_API_TOKEN is required for a non-loopback accepted host. The installer does not silently edit MCP client files or expose your control plane publicly.

See the application README for configuration relationships and startup troubleshooting.

5. Give a worker a concrete task

Ask your MCP manager to use spawn_worker. Start with a small task and an explicit deliverable:

{
  "team_id": "default",
  "task_id": "first-review",
  "request_id": "first-review-v1",
  "template": "review",
  "prompt": "Review the repository setup instructions. Report concrete issues with file locations. Do not change source.",
  "timeout_seconds": 900
}

This is an MCP tool invocation, not a shell command. It creates a VM and may incur provider charges. The review template requests .swarmforge/artifacts/review.md. Use a stable request ID for safe retries of the same request.

Inspect the worker with get_worker, collect the persisted result with get_worker_result, and use the dashboard to see response activity, reported test outcomes, preservation state and recovery guidance.

6. Collect deliverables before cleanup

swarmforge artifacts list --worker <worker-id>
swarmforge artifacts preview <artifact-id>
swarmforge artifacts download <artifact-id> --output ./review.md

Previews return bounded credential-screened text. Complete downloads are authenticated, size/checksum verified, and refuse existing destination files. Preserved results and artifacts survive VM destruction.

In the dashboard, Enter opens details; a browses artifacts, p previews a selected artifact, and Enter in the artifact browser saves it. Cleanup checks settled state, pending work, artifact preservation, and Git safety before normal destruction.

7. Operate your team

swarmforge templates list
swarmforge usage --json
swarmforge retention preview
swarmforge notifications watch

Cost estimates require explicitly configured rates and disclose unpriced usage. Budget thresholds emit alerts; they are not enforced spending limits. Automatic VM retention cleanup is disabled by default. Press Tab in the overview to switch between the chibi status view and the technical dashboard. The dashboard's n key opens durable notifications, and PgUp/PgDn scroll long details and previews.

See operator workflows for policy settings, usage coverage, search filters, and notification cursors.

Understand the technical concepts

These guides define the current implementation and its boundaries.

Continue with the system architecture, coding workflows, frequently asked questions or benchmark methodology.

Troubleshooting and upgrades