Skip to main content
Run AoA in Docker without installing Node or pnpm locally. For the deployment checks required before a fleet repair, see Marketplace recovery.

Single-user local trial (no AoA/Google login)

To try AoA on one computer without configuring Google OAuth or installing Node.js/pnpm on the host, use the separate local-trial Compose file. It is intended only for a trusted single-user machine, not a shared or remote server. Docker Desktop with Linux containers is supported on Windows and macOS; Linux requires Docker Engine and Compose v2. The first build downloads dependencies; onboarding also downloads the curated crew’s skill bundles, so keep internet access available. First-company setup can take up to about 90 seconds on a slower connection.
Open http://127.0.0.1:3100 and complete onboarding. AoA human login is not required. Commander still needs your own Codex or Claude provider account and subscription; sign in through the provider flow in onboarding. The local trial does not supply provider credentials. The app listener stays on container loopback; a transport relay is published only at host 127.0.0.1. Do not change that binding, expose this single-user trusted mode to a network, or attach untrusted containers to its Compose network. The loopback trust mode does not authenticate peers that can reach the service. The dedicated Compose volume persists local identity, database, onboarding progress, and provider auth files across restarts.
down stops the stack and preserves data. docker compose -f docker-compose.local.yml down --volumes permanently deletes the local trial volume; use it only when you intentionally want a fresh start. If port 3100 is busy, stop the other service before starting this trial.

Compose Deployment

This section covers the authenticated multi-service deployment. The default docker-compose.yml is the recommended remote-dev deployment. It starts:
  • server: the AoA API, UI, workers, adapters, and plugin runtime on port 3100
  • db: PostgreSQL with pgvector enabled via pgvector/pgvector:pg18
It also defines an opt-in bootstrap service (behind the bootstrap Compose profile) for pre-issuing an admin invite. See Instance admin below — you do not need it for a normal deploy, where the first Google sign-in becomes admin.

Authentication

The default stack runs in authenticated mode, which requires Google OAuth. Supply the OAuth client credentials before the first boot, or the server will refuse to start:
Docker deployments always run authenticated: the container binds 0.0.0.0 for port publishing, and local_trusted (the keyless mode) is loopback-only, so it cannot be used here. For a keyless local trial, run the native aoa CLI instead of Docker — it binds 127.0.0.1 and supports local_trusted. If you are exposing the container directly during early testing, AOA_PUBLIC_URL=http://<server-ip>:3100 is enough. Behind a reverse proxy, also set AOA_TRUST_PROXY=1; for a public internet deployment set AOA_DEPLOYMENT_EXPOSURE=public. Defaults:
  • Host port: 3100 (AOA_PORT=3200 changes it)
  • App data volume: aoa-data mounted at /aoa
  • Database volume: aoa-postgres
  • Database URL: postgres://aoa:aoa@db:5432/aoa
  • Image tag: aoa:local
Existing Docker Compose installs with older named volumes are not migrated automatically by this stack. The database image now uses Postgres 18 with pgvector and mounts storage at /var/lib/postgresql. Do not point the new aoa-postgres volume directly at an old Postgres 17 data directory; take a pg_dump/backup from the old stack and restore it into the new database. On a blank /aoa volume, the entrypoint creates:
  • /aoa/instances/default/config.json
  • /aoa/instances/default/.env with generated BETTER_AUTH_SECRET and AOA_AGENT_JWT_SECRET
  • local storage, logs, backup, secrets, and workspace directories
Pending migrations are applied automatically in the Compose stack with AOA_MIGRATION_AUTO_APPLY=true.

Instance admin

Both admin paths run in authenticated mode with Google configured — pick one by how exposed the instance is:
  • First sign-in wins (zero config). The first user to sign in with Google becomes the instance admin automatically. Best for a solo or trusted instance (behind a firewall / not publicly reachable) where no one else can sign in before you.
  • Pre-issued invite (recommended when the URL is exposed before you sign in). Generate an admin invite and hand it to the intended founder, so a stranger who reaches the sign-in page first can’t claim admin. The bootstrap service mints this invite; it is behind an opt-in profile and does not run during a normal docker compose up. The instance must already be up (Google configured, server healthy):
    It exits cleanly when the instance already has an admin user; pass BOOTSTRAP_FORCE=true to mint another invite anyway. (The invite is redeemed via Google sign-in — it designates who becomes admin, it is not a way to run without Google.)
To open a psql shell against the bundled database:

Configuration

Common overrides can be passed as environment variables:
Provider keys are optional. Without them, the app still boots; adapter health checks will report missing prerequisites until keys or CLI auth are configured. Compose-specific variables:
DATABASE_URL assembly. The default multi-service stack builds DATABASE_URL from the AOA_POSTGRES_* pieces in scripts/docker-entrypoint.sh, percent-encoding the user and password (URL-reserved characters need no manual escaping). Set your own DATABASE_URL (host shell or .env) to override assembly and point at an external database. Quickstart and the standalone docker run flow set no AOA_POSTGRES_* and stay on embedded PostgreSQL. Rotating the password. Postgres stores the role password at first initialization inside the aoa-postgres volume. Changing AOA_POSTGRES_PASSWORD later does not re-set it — run ALTER ROLE ... WITH PASSWORD ... (e.g. via the psql tools profile) or recreate the volume.
For S3-compatible storage:
The image includes git, GitHub CLI, curl/wget, ripgrep, Python, OpenSSH, jq, psql/pg_dump, Docker CLI, Claude Code, Codex, Gemini CLI, and OpenCode. Mounting /var/run/docker.sock is intentionally not enabled by default because it gives the container root-equivalent access to the host; add a local Compose override only for deployments that explicitly need sandbox-docker execution.

Single-Container Quickstart

For quick local trials, docker-compose.quickstart.yml runs one AoA container with embedded PostgreSQL:
Data is persisted in a host bind mount at ${AOA_DATA_DIR:-./data/docker-aoa} and mounted at /aoa in the container. The default host directory is ./data/docker-aoa; set AOA_DATA_DIR to override it. The image uses /aoa as its persistent data directory. Like the main stack, quickstart runs in authenticated mode and needs Google OAuth credentials (the first Google sign-in becomes the instance admin):
The authenticated quickstart remains the option for an AoA instance that needs Google-authenticated operator accounts. For a no-AoA-login, loopback-only trial, use the separate docker-compose.local.yml flow above; do not remove Google authentication from this deployment. Override quickstart paths and ports with:

Manual Docker Run

Build and run the image directly. The image defaults to authenticated mode, so both examples pass Google OAuth credentials — the server refuses to boot without them (see the environment table above; for a keyless local trial use the native aoa CLI instead):
With no DATABASE_URL, this uses embedded PostgreSQL. To use an external database:
The auth secrets are generated on first boot and persisted under /aoa/instances/default/.env. You may still pass BETTER_AUTH_SECRET and AOA_AGENT_JWT_SECRET explicitly if secrets are managed outside the container.

Data Persistence

The /aoa volume stores instance config, generated secrets, local encrypted-secret key material, uploaded assets, run logs, backups, and agent workspace data. Do not run authenticated deployments without a durable /aoa mount or volume.