Configuration reference

Every environment variable of a self-hosted Future AGI install: its default in each setup, which setups read it, and what breaks when it is wrong.

In this page

Every environment variable you can set on a self-hosted Future AGI install: what it does, its default, which setup reads it, and what goes wrong when it is wrong. Environment variables covers the keys you are most likely to set, grouped by what you want to do, and how .env is read.

📝
TL;DR

Nothing is required for a local install. ./bin/install creates .env from .env.example, generates every secret and starts the Standalone setup on http://localhost:3000. Come back here when you want LLM keys, a public URL, email, or a production deployment.

How configuration works

Setups. The Setups column of every table below says who reads a key:

CodeSetupFiles
SStandalone, the default: one app container plus Postgres and ClickHousedocker-compose.yml (./bin/install)
DDistributed, for scale: one container per service, PeerDB, per-queue workersdocker-compose.distributed.yml (./bin/install --distributed)
HHelm: Distributed on Kubernetesdeploy/helm/futureagi; set application keys through the chart’s values
devHot-reload development onlydocker-compose.dev.yml, docker-compose.distributed.dev.yml (./bin/dev)

A key marked S or D but not H only exists in the Compose files (ports, image tags, CPU and memory limits, installer settings); the Helm chart has its own values for those.

Where values come from, why an empty value is not always unset, and how to apply a change: How .env is read.

1. Generated by the installer

On a fresh install (no volumes of this Compose project yet) ./bin/install fills every key below that is empty or still a CHANGEME- placeholder with a random value and writes it to .env. It never changes a value afterwards. On an existing install it fills only INTEGRATION_ENCRYPTION_KEY, AGENTCC_WEBHOOK_SECRET and, on Standalone, REDIS_PASSWORD, which is safe while they are unset, and warns about the rest. --wipe-volumes and ./bin/uninstall --wipe-data make the next install fresh again, and a value already in .env is kept even then.

Without the installer, set them yourself before the first start: openssl rand -hex 32 for each, and python3 -c "import base64, os; print(base64.urlsafe_b64encode(os.urandom(32)).decode())" for INTEGRATION_ENCRYPTION_KEY. Left empty, the stack runs on the defaults below, which are published in the open-source repository and therefore not secret.

Every secret below can change at any time (set it in .env, then docker compose up -d), except PG_PASSWORD, INTEGRATION_ENCRYPTION_KEY and CH_PASSWORD once in use: their rows say what breaks.

Secrets

KeyDefault if emptySetupsWhat it does, and what breaks if it is wrong
SECRET_KEYlocal-dev-only-not-for-production-replace-meS D HSigns logins, tokens and password-reset links. Changing it signs everyone out. With ENV_TYPE other than local, the app refuses to start on Django’s built-in default.
PG_PASSWORDfutureagiS D HPostgres password. Written into the Postgres volume on the first start: changing it later gives password authentication failed until you restore the old value or wipe the volume.
MINIO_ROOT_PASSWORDfutureagi (.env.example ships the placeholder CHANGEME-set-by-bin-install, which the installer replaces)S D HObject storage password: datasets, exports, media. Compose derives S3_SECRET_KEY from it. A CHANGEME- value next to existing volumes makes the installer stop and ask.
AGENTCC_INTERNAL_API_KEYlocal-dev-only-shared-secret-replace-meS D HShared secret for app-to-gateway calls, and through the gateway your provider keys. Both sides read the same value, so it can change at any time.
AGENTCC_ADMIN_TOKENlocal-dev-only-admin-token-replace-meS D HBearer token for the LLM gateway’s admin API. The gateway also sends it when it loads keys from the app.
AGENTCC_WEBHOOK_SECRETS: a random one on every start; D: empty, and the app refuses the gateway’s request logs, so the gateway’s logs and analytics stay emptyS D HShared secret the LLM gateway sends its request logs to the app with. Both read it on start, so it can change at any time. Helm: secrets.agentccWebhookSecret when set, else the key of that name in secrets.existingSecret when that is set, else generated.
INTEGRATION_ENCRYPTION_KEYEmpty. With ENV_TYPE=local, every process start makes a throwaway key, so saved integration credentials do not survive a restart. Other ENV_TYPEs: connecting an integration fails.S D HFernet key (32 random bytes, URL-safe base64) that encrypts stored integration credentials. Changing it strands what was saved with the old key; those integrations must be connected again.
REDIS_PASSWORDlocal-dev-only-redis-passwordSPassword of the Redis inside the app container, which code evals can reach. Only letters, digits and - _ . ~ (it is part of the Redis URLs); anything else stops the container at start. Distributed runs Redis without a password on the internal network.
CH_PASSWORDEmpty: ClickHouse’s default user has no password, and code evals can then read and change every traceS D HPassword of ClickHouse’s default user. ClickHouse reads it at every start, and the app, the collector and the bootstrap jobs log in with it; PeerDB’s init job stores it in the ch_dest peer when it creates that. Generated on a fresh install only: an install made before the installer generated one keeps running without it, and on an existing install the installer stops whenever the value differs from the password ClickHouse runs with. No <, > or &: ClickHouse reads it into its XML configuration. Changing it later stops Distributed’s Postgres → ClickHouse sync until that peer carries the new one too, and removing it leaves the dictionaries spans are read through on the old one. To set or change one later, see INSTALLATION.md. Helm: clickhouse.password, else generated.

Choices the installer records

KeyDefaultSetupsWhat it does
COMPOSE_FILEunset: Standalone (docker-compose.yml)S DRead by Docker Compose. ./bin/install --distributed writes docker-compose.distributed.yml so plain docker compose commands keep using Distributed. An install keeps its setup: moving data between Standalone and Distributed is not supported, and the installer refuses. A COMPOSE_FILE exported in your shell wins over .env; the installer stops unless it lists the chosen setup’s file and not the other one.
COMPOSE_PROJECT_NAMEfutureagiS DRead by Docker Compose; prefixes container, volume and network names. ./bin/install --new-instance writes futureagi-2, futureagi-3, … to run an isolated second copy. Changing it on an existing install points it at new, empty volumes.

The installer also writes FUTURE_AGI_VERSION=local (and, for Distributed, the other image tags) after --from-source, and a free host port when a default port is taken. See Images and Host ports.

Installer inputs from your shell

Read by ./bin/install from the shell environment, not from .env.

KeyDefaultSetupsWhat it does
FAGI_ADMIN_EMAIL, FAGI_ADMIN_NAME, FAGI_ADMIN_PASSWORDunsetS D HWith -y (non-interactive), create the first account from these three. If any is missing, account creation is skipped. Helm: the bootstrap job reads them from bootstrap.admin.existingSecret and creates the account only if no user with that email exists; with the email set, a missing name or password, a malformed email, or a password the sign-up rules reject fails the job, which says why.
SKIP_USER_CREATION0S D1 skips the first-account prompt (same as --skip-user-creation).
CIunsetS DAny value makes the installer non-interactive (same as -y).

LLM provider keys

Server-wide keys for built-in evals, the prompt playground and other platform features that call an LLM. Workspaces can also add their own provider keys in the UI; some eval paths prefer the server-wide key when both exist. One provider is enough to start.

The LLM gateway in the bundled config (agentcc-gateway/config.example.yaml) routes OpenAI only. To route other providers through it, copy that file, enable them and point AGENTCC_CONFIG_PATH at the copy (Application behaviour).

KeyDefaultSetupsWhat it does
OPENAI_API_KEYemptyS D HOpenAI key for the app and the gateway’s default route.
ANTHROPIC_API_KEYemptyS D HAnthropic key for the app; for the gateway, enable Anthropic in its config.
GOOGLE_API_KEYemptyS D HGemini (Google AI Studio) key. The gateway receives it as GEMINI_API_KEY.
AWS_ACCESS_KEY_ID, AWS_SECRET_ACCESS_KEYemptyS D HAWS Bedrock credentials.
AWS_REGIONus-east-1S D HRegion for Bedrock calls.

A wrong key does not stop anything from starting: the calls that use it fail with the provider’s authentication error.

Public URLs

Needed as soon as anyone opens the UI from anything other than http://localhost:3000: a server IP, a domain, or a reverse proxy. With plain ports the UI is http://<host>:3000 and the API http://<host>:8000.

KeyDefaultSetupsWhat it does, and what breaks if it is wrong
VITE_HOST_APIempty: the UI calls http://localhost:<BACKEND_PORT> (8000); Helm: urls.apiS D HURL the browser uses to reach the API, e.g. https://api.example.com. Written into the UI’s config.js at container start, no rebuild. Wrong or unset on a remote host: the UI loads but every API call fails (often reported as a CORS error). Required by the production overlay and by docker-compose.frontend.yml (UI only).
BASE_URLhttp://localhost:8000S D HThe API’s own public URL: SSO and OAuth callbacks, the MCP and SDK endpoints shown in the UI, trusted CSRF origins. Wrong: SSO sign-in redirects fail and copied snippets point at localhost.
FRONTEND_URLunset: those links use APP_URL (http:// for a loopback host); Helm: urls.appS D HThe UI’s URL, e.g. https://app.example.com: links in digest, annotation, discussion and rule-run emails, MCP OAuth consent redirects, and the setup check that warns about plain HTTP. Required by the production overlay.
APP_URLlocalhost:<FRONTEND_PORT> (localhost:3000) in both compose files; Helm: urls.appS D H