Skip to content

Environment variables

Set server variables in deploy/.env (team install) or in the shell before azhi up (local mode). Set worker variables on the worker host.

VariableDefaultUse
AZHI_PORT7400API and web run page port
AZHI_PG_PORT, AZHI_TEMPORAL_PORT5432, 7233Published ports
AZHI_TEMPORAL_VERSION1.29.1Temporal server image tag
AZHI_NODE_IMAGEnode:22-bookworm-slimBase image (mirror it when Docker Hub rate-limits)
AZHI_SKIP_BUILDunset1 uses an already-loaded azhi-flow/server image
AZHI_COMPOSE_PROJECTazhiRun a second, isolated stack on one host
VariableUse
AZHI_URL, AZHI_TOKENServer URL and token, instead of azhi login
AZHI_TEMPORAL_ADDRESSTemporal address, for example localhost:7233
AZHI_DATABASE_URLpostgres://..., or pglite://... for an embedded database
VariableDefaultUse
AZHI_AUTH_MODElocalSwitch to OIDC for a team
AZHI_OIDC_ISSUER, AZHI_OIDC_AUDIENCEunsetOIDC tokens (accepted in local mode too, alongside the owner token)
AZHI_OIDC_CLIENT_ID, AZHI_OIDC_CLIENT_SECRET, AZHI_OIDC_SCOPESunset, unset, openid email profileBrowser sign-in to Mission Control. Register <AZHI_PUBLIC_URL>/v1/auth/callback as the redirect URI. New users start as viewers unless invited by email
VariableUse
AZHI_ANTHROPIC_MODEL, AZHI_OPENAI_MODEL, AZHI_COPILOT_MODEL, AZHI_CHATGPT_MODELThe model for profiles that say name: default (AZHI_CHATGPT_MODEL defaults to gpt-5.5)
AZHI_OPENAI_RATESmodel=input/cached/output,... in USD per million tokens
AZHI_BUILDER_PROVIDER, AZHI_BUILDER_MODELDefault provider and model for Build with chat
VariableUse
AZHI_MAX_RUNS_PER_REPOServer default for concurrent runs on one repository (default 2; 0 means no limit)
AZHI_AGENT_TRANSCRIPTS0 stops storing agent transcripts
AZHI_GITHUB_TOKENLifts the 60 requests per hour GitHub limit for the Library marketplaces
AZHI_SLACK_API_URLPoint Slack calls at a fake API for local runs
VariableUse
AZHI_TOOLS_DIRWhere azhi setup installs tools (default ~/.azhi/tools)
AZHI_RG_BINPath to ripgrep
AZHI_OPENCODE_BINPath to the OpenCode binary. If set, it must exist
AZHI_OPENCODE_TOKEN_SAVINGon adds search-first reading rules to OpenCode prompts (off by default)
AZHI_DCP_MIN_CONTEXT, AZHI_DCP_MAX_CONTEXTWhen DCP starts and presses to compress: a token count (30000) or a share of the window (40%)
AZHI_OPENCODE_MAJOR2 runs OpenCode steps on the OpenCode 2 preview
AZHI_OPENCODE2_BINPath to the OpenCode 2 binary
VariableUse
AZHI_TEST_DATABASE_URLTest database. pglite:// runs npm run test:local without Docker
AZHI_DEMO_DATABASE_URLAdmin connection for npm run demo