SETUP / FIRST TASK / HANDOFF

Set up self-hosted SwarmForge.

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.

These instructions are for the self-hosted edition. For managed hosting, see the SwarmForge Cloud pilot.

Get started: check prerequisites · install SwarmForge · explore a parallel development workflow.

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 selects the latest published stable GitHub release by default, 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.

If no published stable release is available, 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

# Pin a specific release (this example uses v0.1.3)
curl -fsSL https://getswarmforge.tech/install | bash -s -- --version 0.1.3 --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

For a separate deployment configuration, select its TOML file explicitly:

mkdir -p ~/swarmforge-deployment
cd ~/swarmforge-deployment
swarmforge init --config "$PWD/config.toml"
swarmforge doctor --config ./config.toml
swarmforge serve --config ./config.toml

init creates a private .env and the selected config.toml. 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 configuration file points to the private environment file. Keep both out of Git.

--config selects a TOML configuration. --env-file adds environment values after the selected config and its env_file; it does not select a TOML config. For an existing environment file, keep the selected/default configuration and pass the file explicitly:

swarmforge doctor --env-file .env
swarmforge serve --env-file .env

To combine an explicit configuration and environment file, pass both flags.

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