AgentSwarm runs entirely in Docker, so the setup path is short: clone the repo, copy the example environment file, run a single init command, and you are ready to create your first AI coding task. The steps below walk you through everything from a fresh checkout to a running build.Documentation Index
Fetch the complete documentation index at: https://mintlify.com/coretracker/agentswarm/llms.txt
Use this file to discover all available pages before exploring further.
You will need Docker, Docker Compose, and Bash available on your machine before starting. See the Requirements table for the full list.
Setup
Clone the repository and copy the environment file
Clone AgentSwarm and create your local The
.env from the provided example:.env file controls the public port, database connection, Git identity, and bootstrap admin credentials. The defaults work out of the box for local development — you do not need to edit anything to get started.Initialize the Docker stack
Run the
init command to build the Codex and Claude runtime images, rebuild all Compose service images, and start the full stack in the background:init is an alias for rebuild. It executes the following in order:- Builds
agentswarm-agent-runtime-codex:latestfromagent-runtime-codex/Dockerfile - Builds
agentswarm-agent-runtime-claude:latestfromagent-runtime-claude/Dockerfile - Builds the browser terminal images (
git-terminal,codex-interactive,claude-interactive) - Runs
docker compose build --pull --no-cachefor the main app services - Starts the stack with
docker compose up -d --force-recreate
./agentswarm.sh start calls are much faster.Verify the stack is healthy:Sign in to the web UI
Open your browser and navigate to:Sign in with the bootstrap admin credentials from your
.env:- Email:
admin@agentswarm.local(or your custom value) - Password:
admin123!(or your custom value)
Add a provider API key
Before creating any tasks, AgentSwarm needs credentials for at least one AI provider.
- Click Settings in the navigation.
- Locate the Credentials section.
- Paste your OpenAI API key (for Codex tasks) and/or your Anthropic API key (for Claude tasks).
- Click Save.
Connect a Git repository
- Click Repositories in the navigation.
- Click Add Repository.
- Enter a display name and the Git clone URL (SSH or HTTPS).
- Set the default branch (e.g.
main). - Optionally add environment variables or secrets that will be injected into the agent runtime.
- Click Save.
Create your first Build task
- Click Tasks in the navigation, then New Task.
- Select Build as the task type.
- Choose the repository you just added.
- Select a provider (Codex or Claude), a model, and an effort level.
-
Write a prompt describing the code change you want — for example:
- Click Create Task.
Watch the task run and review the checkpoint
The task detail page streams logs and status updates in real time as the agent works.
- Logs tab — raw agent output from the runtime container
- Diff tab — live unified diff of workspace changes against the base branch
- Runs tab — individual execution records with start time, provider, and outcome
- Apply — commits the changes and marks the checkpoint resolved. The task moves to the next step or completes.
- Reject — discards the proposed changes without touching the branch.
- Revert — undoes a previously applied checkpoint using the stored diff.
Common Commands
| Command | Description |
|---|---|
./agentswarm.sh init | Build runtime images, rebuild Compose images, and start the stack. |
./agentswarm.sh start | Start the Docker Compose stack in the background. |
./agentswarm.sh stop | Stop the Docker Compose stack. |
./agentswarm.sh rebuild | Rebuild all images and restart the stack (same as init). |
Health Check
Stopping the Stack
docker compose down and stops all running containers. Task workspaces on disk are preserved.
Next Steps
Core Concepts
Understand tasks, providers, checkpoints, sequences, snippets, and how the full task lifecycle works.
Tasks
Deep-dive into task types, branch strategies, prompt attachments, and the interactive terminal.