Skip to main content
AgentOS is a FastAPI app. Deploy it like any normal Python service: a container, a Postgres database, a public hostname, and a few env vars.

What you need to ship

AgentOS handles queues, worker pools, the scheduler, and JWT auth in-process. No separate worker fleet, no separate auth server, no separate cron container.

Local with Docker Compose

agnohq/pgvector is Postgres 18 with the pgvector extension preinstalled — needed for knowledge embeddings.
The Scout, Dash, and Coda tutorials all start here.

Railway

Each tutorial template ships with Railway scripts for one-command deploys:
up.sh provisions the project, adds pgvector with a persistent volume, creates the app service with env vars, and assigns a public domain. Walkthroughs: Scout deploy, Dash deploy, Coda deploy.

AWS, GCP, and Azure

Any container platform works. The shape: Health check the /health endpoint. AgentOS responds {"status":"ok"} when the app is ready.

Scaling

AgentOS is stateless. State lives in db. Scale horizontally: For the leader-election pattern with multiple replicas, see Scheduler HA.

Production checklist

Auth and secrets
  • RUNTIME_ENV=prd enables JWT auth
  • JWT_VERIFICATION_KEY set (see Security & Auth)
  • OPENAI_API_KEY and other model keys in a secret manager, not in source
Infrastructure
  • Postgres has a persistent volume or managed backup
  • HTTPS terminating at your load balancer or reverse proxy
  • Health check pointed at /health
Operational
  • Tracing on (tracing=True) so you can debug bad runs
  • At least one interface wired up
  • Pre-hooks for PII or injection guarding if you handle untrusted input
  • requires_confirmation=True on irreversible tools

Updating your deployment

Code changes: git push if CI auto-deploys, or ./scripts/railway_redeploy.sh. Env changes: ./scripts/railway_env.sh (Railway auto-redeploys when env values change). Database changes: AgentOS handles its own tables — schema changes are additive and forward-compatible, so no migration tool is required for stock AgentOS tables. Application tables you migrate however you like (Alembic, raw SQL, dbt, your call).

Next

Build a Product →