Self-Hosting Future AGI: Deploy on Your Own Infrastructure

Deploy the full Future AGI platform on your own infrastructure using Docker Compose. Follow the step-by-step guide to get all services running locally.

About

Future AGI is fully open-source. Self-hosting runs the entire stack on your machines — all traces, datasets, evaluations, and model calls stay within your network. Backend is Django, frontend is React + Vite, LLM gateway is Go.

Not sure if you need this? The hosted version at app.futureagi.com is easier to operate. Self-host when you need data residency, air-gapped environments, cost control at scale, or deep customization.

Quick start

git clone https://github.com/future-agi/future-agi.git
cd future-agi
cp .env.example .env
docker pull futureagi/future-agi:v1.8.19_base
docker compose up

First boot builds from source (~10–15 min). After Application startup complete:

ServiceURL
Frontendhttp://localhost:3000
Backend APIhttp://localhost:8000
PeerDB UIhttp://localhost:3001peerdb / peerdb

Deployment options

OptionStatus
Docker ComposeAvailable
Helm / KubernetesComing soon
Air-gappedComing soon

Architecture

21 containers across four layers.

Browser
  └─ frontend (React/nginx)
       └─ backend (Django)  ──── gateway (Go) ──── OpenAI · Anthropic · Gemini · Bedrock
            ├── postgres      primary DB + WAL replication
            ├── clickhouse    analytics store
            ├── redis         cache / pub-sub
            ├── minio         object storage
            └── temporal ──── worker   background jobs / eval pipelines

postgres ──── PeerDB CDC ──── clickhouse   (continuous replication)

Applicationfrontend · backend · worker · gateway · serving · code-executor

Datapostgres · clickhouse · redis · minio

Workflowtemporal

CDC (PeerDB)peerdb-catalog · peerdb-temporal · peerdb-minio · peerdb-flow-api · peerdb-flow-worker · peerdb-flow-snapshot-worker · peerdb-server · peerdb-ui · peerdb-temporal-init · peerdb-init

LayerServicePurpose
AppfrontendReact SPA served by nginx
AppbackendDjango REST + gRPC + WebSocket API
AppworkerTemporal worker — evals, agent loops, data jobs
AppgatewayGo LLM proxy — routing, retries, rate limits, logging
AppservingEmbeddings and small model inference
Appcode-executornsjail-sandboxed eval code runner (privileged: true required)
DatapostgresPrimary DB — users, traces, datasets, evals, prompts
DataclickhouseAnalytics DB — replicated from Postgres via PeerDB
DataredisCache, rate limits, WebSocket pub/sub
DataminioS3-compatible object storage (swap for S3 in prod)
WorkflowtemporalDurable workflow engine — shares main Postgres
CDCPeerDB stackContinuous Postgres → ClickHouse replication (10 services)

Next Steps

Was this page helpful?

Questions & Discussion