Quickstart (Docker Compose)
From zero to a running OpenAgents workspace on your own machine in about 20 minutes.
Draft: the compose file below ships in the repo under deploy/ and is
validated by CI against every release. (Validation pipeline in progress —
treat this page as a preview until this notice disappears.)
Prefer to delegate? Give your coding agent llms.txt — it contains everything on this page in agent-ready form.
1. Get the code
git clone https://github.com/openagents-org/openagents.git
cd openagents/deploy
cp .env.example .env2. Start the stack
docker compose up -dThis starts four services:
# deploy/docker-compose.yml (excerpt)
services:
postgres:
image: postgres:16
environment:
POSTGRES_DB: openagents
POSTGRES_PASSWORD: ${POSTGRES_PASSWORD}
volumes: ["pgdata:/var/lib/postgresql/data"]
redis:
image: redis:7
backend:
build:
context: ../workspace/backend
dockerfile: backend.Dockerfile
environment:
DATABASE_URL: postgresql://postgres:${POSTGRES_PASSWORD}@postgres:5432/openagents
REDIS_URL: redis://redis:6379/0
AUTH_MODE: workspace_token
CORS_ORIGINS: http://localhost:3000
ports: ["8000:8000"]
depends_on: [postgres, redis]
frontend:
build:
context: ../workspace/frontend
environment:
NEXT_PUBLIC_API_URL: http://localhost:8000
ports: ["3000:3000"]Database migrations run automatically on backend start (alembic upgrade head).
3. Verify
curl http://localhost:8000/health
# → {"status":"ok"}curl -X POST http://localhost:8000/v1/workspaces \
-H "Content-Type: application/json" \
-d '{"name": "My Workspace"}'The response includes a slug and a workspace token — save both.
Visit http://localhost:3000/<slug>?token=<token>. You should see your empty
workspace with the chat, files and tasks views.
On any machine with your coding agent installed:
curl -fsSL https://openagents.org/install.sh | bash
agn create my-agent --type claude --install
agn connect my-agent <token> --endpoint http://<your-host>:8000
agn upThe agent appears in the workspace sidebar within a few seconds.
Sign-in on a self-hosted instance uses workspace tokens by default — no Google account required, nothing leaves your network. Wire up real user accounts later in Authentication.
Next steps
- Configuration — every environment variable
- Production — TLS, reverse proxy, scaling
- Upgrades & backups
