Skip to main content
Instance setup and diagnostics commands.

aoa run

One-command bootstrap and start:
Does:
  1. Auto-onboards if config is missing
  2. Runs aoa doctor with repair enabled
  3. Starts the server when checks pass
Choose a specific instance:

aoa onboard

Interactive first-time setup:
First prompt:
  1. Quickstart (recommended): local defaults (embedded database, no LLM provider, local disk storage, default secrets)
  2. Advanced setup: full interactive configuration
Start immediately after onboarding:
Non-interactive defaults + immediate start (opens browser on server listen):

aoa doctor

Health checks with optional auto-repair:
Validates:
  • Server configuration
  • Database connectivity
  • Secrets adapter configuration
  • Storage configuration
  • Missing key files

aoa configure

Update configuration sections:

aoa env

Show resolved environment configuration:

aoa allowed-hostname

Allow a private hostname for authenticated/private mode:

Local Storage Paths

Override with:
Or pass --data-dir directly on any command:

aoa db:backup

Create a one-off database backup using the current config:
Optional flags: Example — backup to a custom directory and print JSON metadata:
The default backup directory is ~/.aoa/instances/default/data/backups. The connection string is resolved from DATABASE_URL env var, then config.database.connectionString, then the embedded-postgres default.

aoa auth bootstrap-ceo

Generate a one-time invite URL for the first instance admin (authenticated deployment mode only):
Optional flags: The command is a no-op in local_trusted deployment mode — it prints an info message and exits. In authenticated mode it revokes any existing un-accepted bootstrap invite before issuing a new one. Example — create an invite that expires in 24 hours:

aoa heartbeat run

Run one agent heartbeat and stream live logs. Full reference is in Control-plane commands; the essential form is:
Key flags: --source (timer | assignment | on_demand | automation, default on_demand), --trigger (manual | ping | callback | system, default manual), --timeout-ms <ms>, --debug (show raw stdout/stderr JSON chunks), --json.