aitododocs Coming soonAutonomous delivery

Environment variables

Markdown

Every environment variable aitodo reads or sets, by scope.

Referenceabout 13 min
On this page
Details1 items

Scope: client (tkt on your machine), server (the aitodo server), installer (the installer), hook (set by tkt for a program it starts), internal (set by the server for the tkt it runs; never by hand).

Variables#

variablescopedefaultmeaninghome
AITODO_WORKSPACE_DIRclientThe store directory; beats .aitodo.yaml (--workspace-dir)Where the store lives
AITODO_WORKSPACEclientA store by name under ~/.aitodo/<name> (--workspace)Where the store lives
AITODO_WORKTREE_DIRclientThe code worktree that repo refs resolve against (--worktree-dir)
AITODO_ASSIGNEEclientWho claims: the default of --assigneeClaiming and giving back
AITODO_FOCUSclientYour own focus (a milestone, an epic or release:<id>) for tkt next; beats the project focusThe project focus
AITODO_OFFLINEclient1: use the local backend for ids and claims when the server is down (--offline)Ids and claims from the server
AITODO_TOKENclientA project token; beats the credentials fileProjects and tokens
AITODO_CONFIG_DIRclient~/.config/aitodoWhere credentials.yaml lives; beats configDir in .aitodo.yaml, XDG_CONFIG_HOME and APPDATAServer pin and credentials
AITODO_CA_BUNDLEclientA PEM file of an extra CA the tkt HTTP client trusts (internal certificates)Install
AITODO_INVITEclientThe invite code tkt project register uses; never an argumentThe server operator
AITODO_OPERATOR_TOKENclientThe operator secret: on the server it enables /v1/operator/**; on the client tkt operator sends itThe server operator
AITODO_LLM_CMDclientA local LLM command (reads a prompt on stdin, prints JSON); beats the server LLMTeam AI: the server LLM
AITODO_LLM_PROVIDERclientserver, local, endpoint or off: which LLM provider a command uses; beats llmProvider in the user and store configTeam AI: the server LLM
AITODO_EMBED_PROVIDERclientlocal, server, endpoint or off: the embedding provider of tkt search; beats embedProvider in the user and store configAI layers: where the model runs
AITODO_EMBED_URLclientThe OpenAI-compatible embedding endpoint of embedProvider: endpoint (https outside this machine); beats embedUrlAI layers: where the model runs
AITODO_EMBED_KEYclientThe key of that embedding endpoint, if it needs one; a secret, never in a config fileAI layers: where the model runs
AITODO_LLM_URLclientThe OpenAI-compatible LLM endpoint of llmProvider: endpoint (https outside this machine); beats llmUrlAI layers: where the model runs
AITODO_LLM_MODELclientThe model llmProvider: endpoint asks for; beats llmModelAI layers: where the model runs
AITODO_LLM_PICK_MODELclientThe model of tkt ask's pick step on llmProvider: endpoint; beats llmPickModel (unset: the endpoint's model)Asking the store
AITODO_LLM_KEYclientThe key of that LLM endpoint, if it needs one; a secret, never in a config fileAI layers: where the model runs
AITODO_EMBED_MODELclientBAAI/bge-m3The embedding model: the local model (a sentence-transformers name) or the endpoint's; beats embedModelAI layers: where the model runs
AITODO_LLM_CACHEclient10: no reads from or writes to the local LLM answer cacheTeam AI: the server LLM
AITODO_NO_PROGRESSclient1: no status line on stderr while tkt waitsOutput, `--json` and exit codes
AITODO_URLinstallerInstall from another aitodo server than the one that served the scriptInstall
AITODO_NO_SKILLinstaller1: install tkt without the Claude Code skillInstall
AITODO_DRY_RUNinstaller1: print the plan, install nothingInstall
AITODO_TICKEThookThe ticket id the new worktree is forParallel worktrees
AITODO_WORKTREEhookThe new worktree's pathParallel worktrees
AITODO_SERVER_DATAserver/var/lib/aitodoThe server's data directory: server.db and the server storesA store on the server
AITODO_PUBLIC_URLserverThe public base URL the guides and installers name; else the request's
AITODO_STORE_APIserver1: also mount the single-store REST API, answered on loopback and Unix-socket connections only (local and dev runs; the container refuses it)
AITODO_TRUSTED_PROXIESserverThe proxy addresses or CIDR networks whose X-Forwarded-For and X-Forwarded-Proto the container honours; none: no proxy; required by the container entrypoint (unset or bad: it does not start)The server operator
AITODO_REGISTRATIONserverWho may register a project: open, invite or closed (default: invite with an operator token, else closed)The server operator
AITODO_REGISTRATION_RATE_LIMITserver10Project registrations and server store creations per hour from one client addressThe server operator
AITODO_MAX_PROJECTSserver1000How many projects the server holds before a registration is refused (the operator's still work)The server operator
AITODO_CLAIM_TTLserver8hHow long a claim lease lives without renewalIds and claims from the server
AITODO_FEEDBACK_PROJECTserverThe project id of the feedback intake; unset: /v1/feedback/** is 404Feedback intake and triage
AITODO_DIST_DIRserverWhere the wheel of the running version is; else the image path or dist/
AITODO_SKILL_DIRserverWhere the skill the server hands out is; else the image path or the repo copy
ANTHROPIC_API_KEYserverThe key of the server LLM (Team AI); a secret, never sent to a clientRunning Team AI
AITODO_SERVER_LLM_MODELserverclaude-opus-5-5The model of the server LLMRunning Team AI
AITODO_SERVER_LLM_PICK_MODELserverclaude-sonnet-5-5The model of tkt ask's pick step on the server LLM (an openai provider: its own model)Asking the store
AITODO_SERVER_LLM_MAX_BYTESserver2097152The largest request (prompt and schema) the server LLM takes, in bytesRunning Team AI
AITODO_SERVER_LLM_CACHE_TTLserver30dHow long a cached server LLM answer livesRunning Team AI
AITODO_SERVER_LLM_CACHE_MAXserver5000The most cached server LLM answers per projectRunning Team AI
AITODO_SERVER_LLM_MAX_INFLIGHTserver4The most server LLM calls of one project running at onceRunning Team AI
AITODO_SERVER_LLM_RATE_LIMITserver60The most server LLM calls one project may start in a minuteRunning Team AI
AITODO_SERVER_LLM_PROVIDERserveranthropicWhere the server LLM runs: anthropic, bedrock, vertex, foundry or openai (an OpenAI-compatible endpoint)The server's AI providers
AITODO_SERVER_LLM_REGIONserverThe cloud region of the bedrock or vertex server LLMThe server's AI providers
AITODO_SERVER_LLM_GCP_PROJECTserverThe Google Cloud project of the vertex server LLMThe server's AI providers
AITODO_SERVER_LLM_FOUNDRY_RESOURCEserverThe Microsoft Foundry resource of the foundry server LLMThe server's AI providers
ANTHROPIC_FOUNDRY_API_KEYserverThe key of the foundry server LLM; a secretThe server's AI providers
AWS_BEARER_TOKEN_BEDROCKserverA Bedrock API key for the bedrock server LLM; without it the IAM role is usedThe server's AI providers
AITODO_SERVER_LLM_URLserverThe base URL of the openai server LLM, e.g. https://llm.example.com/v1The server's AI providers
AITODO_SERVER_LLM_KEYserverThe key of the openai server LLM, if it needs one; a secretThe server's AI providers
AITODO_SERVER_LLM_PLACEserverserverWhere the openai server LLM is: server (outside the company) or infrastructure (its own)The server's AI providers
AITODO_SERVER_EMBED_URLserverThe base URL of the server's OpenAI-compatible embedding endpoint; unset, the server embeds nothingThe server's AI providers
AITODO_SERVER_EMBED_MODELserverThe embedding model the server asks for; needed with AITODO_SERVER_EMBED_URLThe server's AI providers
AITODO_SERVER_EMBED_KEYserverThe key of the server's embedding endpoint, if it needs one; a secretThe server's AI providers
AITODO_SERVER_EMBED_PLACEserverserverWhere the embedding endpoint is: server (outside the company) or infrastructure (its own)The server's AI providers
AITODO_SERVER_ALLOW_HTTPserver1: the LLM and embedding endpoints may be plain http on another host (https otherwise, http only to this machine)The server's AI providers
AITODO_CLI_TIMEOUTserver30Seconds one forwarded tkt call may run on a server storeA store on the server
AITODO_CLI_LOCK_WAITserver10Seconds a write waits for the store lockA store on the server
AITODO_CLI_MAX_PROCSserver4Forwarded calls running at onceA store on the server
AITODO_CLI_RATE_LIMITserver120Forwarded calls per minute per tokenA store on the server
AITODO_STORE_MAX_BYTESserver104857600The most a project takes on the server's disk (its store with the git history and derived files, its archives), in bytes; also the largest store:import uploadA store on the server
AITODO_DISK_MIN_FREE_BYTESserver1073741824The free space the server keeps on its data disk, in bytes; under it every write that grows the disk is refusedThe server operator
AITODO_DISK_WARN_FREE_BYTESserver5368709120Under this much free space on the data disk the server logs a warning for the operator, in bytes; above AITODO_DISK_MIN_FREE_BYTESThe server operator
AITODO_CLI_OUTPUT_MAX_BYTESserver1048576The largest stdout and the largest stderr of a forwarded call, in bytes; the server keeps no moreA store on the server
AITODO_CLI_FILE_MAX_BYTESserver1048576The largest file a forwarded call uploads or returns, in bytesA store on the server
AITODO_CLI_CALL_MAX_BYTESserver4194304The most a forwarded call's files and stdin carry together, in bytes; its request body limit follows itA store on the server
AITODO_CLI_STAGE1_MAX_BYTESserver67108864The largest Stage-1 result (ticket get, next --claim --json, report context) of a forwarded call, in bytesA store on the server
AITODO_CLI_MEMORY_MAX_BYTESserver2147483648The memory one forwarded tkt run may use, in bytes (Linux; a positive number, no off switch)A store on the server
AITODO_CLI_CONFINEserveronoff lets forwarded tkt runs go unconfined; else, on Linux, each run is confined with Landlock to its store and temp dir (from ABI 4: TCP only to this server's port), and none runs without itA store on the server
AITODO_SERVER_RUNinternal1: this tkt runs on a server store, for the serverA store on the server
AITODO_SERVER_ACTORinternalThe token name of the member the server runs tkt forA store on the server
AITODO_RUN_LLM_URLinternalWhere a server-store run calls the project's server LLM (#217)
AITODO_RUN_LLM_PROJECTinternalThe project of that server LLM
AITODO_RUN_LLM_GRANTinternalThe run's temporary LLM grant (the caller's token, LLM calls only)
AITODO_RUN_LLM_OFFinternalWhy a server-store run got no server LLM, for its notice
AITODO_STAGE1_OUTinternalWhere a split command writes its Stage-1 JSON for the clientA store on the server
AITODO_FEEDBACK_INTAKEinternal1: this run is on the feedback intake storeFeedback intake and triage
Generated from the registry: src/aitodo/api/selfdoc_entries/ref.py · ref.envv0.1.298