Checklist
The go-live pass for a self-hosted Future AGI instance: real secrets, production mode, public URLs, pinned images, isolation, backups, managed stores.
Run through this once before anyone else can reach the instance. The list is the same for every setup:
- Distributed has a production overlay that refuses to start while part of it is missing: see Start Distributed with the production overlay.
- Standalone has no production overlay, so you check each item yourself in
.env. - Helm (Kubernetes) sets the same things through its values: see Install for production.
Apply a .env change with docker compose up -d, which recreates every container whose configuration changed and keeps the data volumes. With the production overlay, use the overlay’s own command, and put each key in the file Which file a key goes in names.
Decide on telemetry
Decide before the first account exists. A self-hosted install sends deployment telemetry to Future AGI by default. Right after the first account is created, which ./bin/install does, it sends a registration with the email addresses of the owner, admin, staff and superuser accounts, then usage counts.
- To opt out from the start, install with
./bin/install --no-telemetry, or with the production overlay, setFUTURE_AGI_TELEMETRY_DISABLED=trueindeploy/.env.productionbefore you start the stack. - Setting
FUTURE_AGI_TELEMETRY_DISABLED=truelater stops the heartbeats, but the registration already sent cannot be taken back.
What is sent, and how to send nothing: Telemetry.
Replace published defaults with real secrets
SECRET_KEY, PG_PASSWORD, MINIO_ROOT_PASSWORD, AGENTCC_INTERNAL_API_KEY, AGENTCC_ADMIN_TOKEN and CH_PASSWORD each need 32 random bytes, none left at a default published in the repository. INTEGRATION_ENCRYPTION_KEY is set once and kept.
- Fresh install:
./bin/installfills every one of them that is empty or aCHANGEME-placeholder with a random value and writes it to.env. It also fillsINTEGRATION_ENCRYPTION_KEY,AGENTCC_WEBHOOK_SECRETand, on Standalone,REDIS_PASSWORD. It never changes a value afterwards. - Installs made before Standalone became the default: the installer never changes existing secrets. It fills only
INTEGRATION_ENCRYPTION_KEYandAGENTCC_WEBHOOK_SECRETwhen they are unset, and warns about the rest. Look in.envfor values that start withlocal-dev-only-, aPG_PASSWORDorMINIO_ROOT_PASSWORDoffutureagi, and secret keys that are empty or commented out, which fall back to those defaults. An emptyCH_PASSWORDmeans ClickHouse’sdefaultuser has no password, and code evals can then read and change every trace. - Without the installer: set them yourself before the first start, together with
INTEGRATION_ENCRYPTION_KEY,REDIS_PASSWORDon Standalone (its default is published, and code evals can reach that Redis), andAGENTCC_WEBHOOK_SECRETon Distributed (empty, the app refuses the gateway’s request logs):
openssl rand -hex 32 # once for each secret
python3 -c "import base64, os; print(base64.urlsafe_b64encode(os.urandom(32)).decode())" # INTEGRATION_ENCRYPTION_KEY
./bin/install never generates PROPERTY_CATALOG_API_PASSWORD or PROPERTY_CATALOG_CONSUMER_PASSWORD, so outside the production overlay every install runs them on the published defaults oss-observed-reader-local-only and oss-observed-writer-local-only. They are the passwords of the observed-attribute catalog’s two ClickHouse users, which accept logins from any host, and code evals can reach ClickHouse except in Standalone’s built-in sandbox on a Docker host with Linux 6.7 or later and Landlock (see Isolate the code executor). Set both to openssl rand -hex 32 values in .env and run docker compose up -d: the bootstrap sets the two users’ passwords on every start.
What changing each secret later does, and why PG_PASSWORD, CH_PASSWORD and INTEGRATION_ENCRYPTION_KEY must keep their first values, is in Secrets the installer generates.
Turn off local mode
Set ENV_TYPE=production in .env (the production overlay sets it for you). Any value other than local turns off the self-host fallbacks:
DEBUGis off.- Links built from an
APP_URLwithout a scheme usehttps://for any host other thanlocalhostor a loopback address. - An empty
INTEGRATION_ENCRYPTION_KEYmakes connecting an integration fail, instead of using a throwaway key that does not survive a restart. - New uploads go to the bucket
fi-contentinstead offi-content-dev. On an install that already holds files, also setUPLOAD_BUCKET_NAME=fi-content-devin.env, or the app looks for knowledge-base files and other stored files in the new, empty bucket. On a new install, setENV_TYPEbefore anyone stores a file.
Note
ENV_TYPE=production makes the app refuse to start only on Django’s own placeholder SECRET_KEY. The compose files pass their published default, local-dev-only-not-for-production-replace-me, when SECRET_KEY is empty, and the app accepts that one, so production mode does not replace the secrets step above.
Set the public URLs
Point every URL at the HTTPS name people and SDKs reach, then put TLS in front of the UI, the API and object storage as Security & TLS describes. With the production overlay, BASE_URL goes in the root .env and the others in deploy/.env.production: see Which file a key goes in.
| Key | Set it to | What breaks when it is wrong |
|---|---|---|
VITE_HOST_API | The API as browsers reach it, e.g. https://api.example.com | The UI loads but every API call fails, often reported as a CORS error |
BASE_URL | The API’s own public URL | SSO and OAuth callbacks, and the SDK and MCP endpoints shown in the UI |
FRONTEND_URL | The UI’s URL, e.g. https://app.example.com | Links in digest and notification emails, and the setup screen’s SSL/TLS check |
APP_URL | The UI’s URL, with its scheme | Invite, verification and password-reset links |
MINIO_URL | The object storage URL browsers reach, e.g. https://files.example.com | File previews and downloads fail while the rest works |
FI_COLLECTOR_PUBLIC_URL | The trace collector URL SDKs send to | The SDK snippet in the app and on the setup screen points at an address that does not answer |
Lock down hosts and origins
ALLOWED_HOSTS defaults to *. List your API host names instead. On Distributed also add backend,localhost,127.0.0.1: the workers call the API as backend, and ./bin/install checks it on localhost. Standalone adds 127.0.0.1,localhost itself.
CORS_ALLOWED_ORIGINS is empty by default, which allows any origin. Set it to your UI’s origin.
ALLOWED_HOSTS=api.example.com,backend,localhost,127.0.0.1 # Distributed; Standalone: api.example.com
CORS_ALLOWED_ORIGINS=https://app.example.com
With the production overlay, both go in the root .env. No compose file passes them on, so in deploy/.env.production they never reach the API, which then keeps answering every host and origin.
Pin image versions
Pin a release tag (vX.Y.Z), never latest or local. An empty version variable means latest.
- Standalone:
FUTURE_AGI_VERSION, plusSERVING_VERSIONwith themlprofile andCODE_EXECUTOR_VERSIONwith thesandboxprofile. - Distributed: every image on its own:
FUTURE_AGI_VERSION,FRONTEND_VERSION,AGENTCC_GATEWAY_VERSION,FI_COLLECTOR_VERSION,SERVING_VERSION,CODE_EXECUTOR_VERSIONandSIMULATION_RUNNER_VERSION. WithFI_COLLECTOR_VERSIONunset, Compose builds the collector from your checkout.
On a host with an NVIDIA GPU, pin SERVING_VERSION to vX.Y.Z-gpu, the CUDA build (linux/amd64 only). A plain vX.Y.Z is the CPU build.
Upgrades & rollback covers moving the pins.
Decide how people get accounts
- Email: set
MAILGUN_API_KEY,MAILGUN_SENDER_DOMAINandDEFAULT_FROM_EMAIL, andAPP_URL, which the links in emails are built from. Mailgun is the supported provider; SMTP settings are not read from the environment. - Without email: invites return a link for you to share, and “Forgot password” answers with the command an administrator runs on the host. See Reset a password.
Leave OSS_RETURN_PASSWORD_RESET_LINK unset or false: true lets anyone who can reach the instance take over any account. See Sign-in.
Isolate code evals
Standalone runs Python code evals in an unprivileged sandbox inside the app container, which suits installs where everyone who can write a code eval is trusted with the data. If they must not trust one another, set COMPOSE_PROFILES=sandbox in .env and run ./bin/install again. Distributed always uses the nsjail code-executor. Details, and what each option needs, are in Isolate the code executor.
Test a restore
Back up Postgres, ClickHouse and object storage, and restore the backup once as a test before you rely on it. Backups & restore has the commands.
Start Distributed with the production overlay
deploy/docker-compose.production.yml layers on docker-compose.distributed.yml. It sets ENV_TYPE=production and re-binds each required value with ${VAR:?}, so Compose refuses to start with must be set for production and names the missing variable. It requires:
SECRET_KEY,AGENTCC_INTERNAL_API_KEY,AGENTCC_ADMIN_TOKEN,PG_PASSWORDandMINIO_ROOT_PASSWORDPROPERTY_CATALOG_API_PASSWORDandPROPERTY_CATALOG_CONSUMER_PASSWORD, which match the observed-attribute catalog’s ClickHouse usersFRONTEND_URLandVITE_HOST_API- Every image version:
FUTURE_AGI_VERSION,FRONTEND_VERSION,AGENTCC_GATEWAY_VERSION,FI_COLLECTOR_VERSION,SERVING_VERSION,CODE_EXECUTOR_VERSIONandSIMULATION_RUNNER_VERSION
Run every docker compose command for this install with the overlay’s env file and files, for example:
docker compose --env-file deploy/.env.production \
-f docker-compose.distributed.yml -f deploy/docker-compose.production.yml ps
A plain docker compose command reads the Standalone docker-compose.yml under the same project name, and ./bin/install ignores the overlay. Upgrade with the production overlay has the upgrade steps.
deploy/setup.sh writes deploy/.env.production and starts the stack. A first install runs:
Write deploy/.env.production
./deploy/setup.sh --skip-up # write deploy/.env.production, start nothingIt asks for the public URLs, every image version and the two catalog passwords, and generates SECRET_KEY, AGENTCC_INTERNAL_API_KEY, AGENTCC_ADMIN_TOKEN, PG_PASSWORD and MINIO_ROOT_PASSWORD.
Add the secrets setup.sh leaves out
deploy/setup.sh writes no CH_PASSWORD or AGENTCC_WEBHOOK_SECRET, and an empty INTEGRATION_ENCRYPTION_KEY. Without them ClickHouse’s default user has no password, the app refuses the gateway’s request logs, and connecting an integration fails. Add them before the initialization in the next step: PeerDB’s ch_dest peer is created with CH_PASSWORD then and is not updated afterwards.