Environment variables
Every environment variable aitodo reads or sets, by scope.
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#
| variable | scope | default | meaning | home |
|---|---|---|---|---|
AITODO_WORKSPACE_DIR | client | The store directory; beats .aitodo.yaml (--workspace-dir) | Where the store lives | |
AITODO_WORKSPACE | client | A store by name under ~/.aitodo/<name> (--workspace) | Where the store lives | |
AITODO_WORKTREE_DIR | client | The code worktree that repo refs resolve against (--worktree-dir) | ||
AITODO_ASSIGNEE | client | Who claims: the default of --assignee | Claiming and giving back | |
AITODO_FOCUS | client | Your own focus (a milestone, an epic or release:<id>) for tkt next; beats the project focus | The project focus | |
AITODO_OFFLINE | client | 1: use the local backend for ids and claims when the server is down (--offline) | Ids and claims from the server | |
AITODO_TOKEN | client | A project token; beats the credentials file | Projects and tokens | |
AITODO_CONFIG_DIR | client | ~/.config/aitodo | Where credentials.yaml lives; beats configDir in .aitodo.yaml, XDG_CONFIG_HOME and APPDATA | Server pin and credentials |
AITODO_CA_BUNDLE | client | A PEM file of an extra CA the tkt HTTP client trusts (internal certificates) | Install | |
AITODO_INVITE | client | The invite code tkt project register uses; never an argument | The server operator | |
AITODO_OPERATOR_TOKEN | client | The operator secret: on the server it enables /v1/operator/**; on the client tkt operator sends it | The server operator | |
AITODO_LLM_CMD | client | A local LLM command (reads a prompt on stdin, prints JSON); beats the server LLM | Team AI: the server LLM | |
AITODO_LLM_PROVIDER | client | server, local, endpoint or off: which LLM provider a command uses; beats llmProvider in the user and store config | Team AI: the server LLM | |
AITODO_EMBED_PROVIDER | client | local, server, endpoint or off: the embedding provider of tkt search; beats embedProvider in the user and store config | AI layers: where the model runs | |
AITODO_EMBED_URL | client | The OpenAI-compatible embedding endpoint of embedProvider: endpoint (https outside this machine); beats embedUrl | AI layers: where the model runs | |
AITODO_EMBED_KEY | client | The key of that embedding endpoint, if it needs one; a secret, never in a config file | AI layers: where the model runs | |
AITODO_LLM_URL | client | The OpenAI-compatible LLM endpoint of llmProvider: endpoint (https outside this machine); beats llmUrl | AI layers: where the model runs | |
AITODO_LLM_MODEL | client | The model llmProvider: endpoint asks for; beats llmModel | AI layers: where the model runs | |
AITODO_LLM_PICK_MODEL | client | The model of tkt ask's pick step on llmProvider: endpoint; beats llmPickModel (unset: the endpoint's model) | Asking the store | |
AITODO_LLM_KEY | client | The key of that LLM endpoint, if it needs one; a secret, never in a config file | AI layers: where the model runs | |
AITODO_EMBED_MODEL | client | BAAI/bge-m3 | The embedding model: the local model (a sentence-transformers name) or the endpoint's; beats embedModel | AI layers: where the model runs |
AITODO_LLM_CACHE | client | 1 | 0: no reads from or writes to the local LLM answer cache | Team AI: the server LLM |
AITODO_NO_PROGRESS | client | 1: no status line on stderr while tkt waits | Output, `--json` and exit codes | |
AITODO_URL | installer | Install from another aitodo server than the one that served the script | Install | |
AITODO_NO_SKILL | installer | 1: install tkt without the Claude Code skill | Install | |
AITODO_DRY_RUN | installer | 1: print the plan, install nothing | Install | |
AITODO_TICKET | hook | The ticket id the new worktree is for | Parallel worktrees | |
AITODO_WORKTREE | hook | The new worktree's path | Parallel worktrees | |
AITODO_SERVER_DATA | server | /var/lib/aitodo | The server's data directory: server.db and the server stores | A store on the server |
AITODO_PUBLIC_URL | server | The public base URL the guides and installers name; else the request's | ||
AITODO_STORE_API | server | 1: 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_PROXIES | server | The 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_REGISTRATION | server | Who may register a project: open, invite or closed (default: invite with an operator token, else closed) | The server operator | |
AITODO_REGISTRATION_RATE_LIMIT | server | 10 | Project registrations and server store creations per hour from one client address | The server operator |
AITODO_MAX_PROJECTS | server | 1000 | How many projects the server holds before a registration is refused (the operator's still work) | The server operator |
AITODO_CLAIM_TTL | server | 8h | How long a claim lease lives without renewal | Ids and claims from the server |
AITODO_FEEDBACK_PROJECT | server | The project id of the feedback intake; unset: /v1/feedback/** is 404 | Feedback intake and triage | |
AITODO_DIST_DIR | server | Where the wheel of the running version is; else the image path or dist/ | ||
AITODO_SKILL_DIR | server | Where the skill the server hands out is; else the image path or the repo copy | ||
ANTHROPIC_API_KEY | server | The key of the server LLM (Team AI); a secret, never sent to a client | Running Team AI | |
AITODO_SERVER_LLM_MODEL | server | claude-opus-5-5 | The model of the server LLM | Running Team AI |
AITODO_SERVER_LLM_PICK_MODEL | server | claude-sonnet-5-5 | The model of tkt ask's pick step on the server LLM (an openai provider: its own model) | Asking the store |
AITODO_SERVER_LLM_MAX_BYTES | server | 2097152 | The largest request (prompt and schema) the server LLM takes, in bytes | Running Team AI |
AITODO_SERVER_LLM_CACHE_TTL | server | 30d | How long a cached server LLM answer lives | Running Team AI |
AITODO_SERVER_LLM_CACHE_MAX | server | 5000 | The most cached server LLM answers per project | Running Team AI |
AITODO_SERVER_LLM_MAX_INFLIGHT | server | 4 | The most server LLM calls of one project running at once | Running Team AI |
AITODO_SERVER_LLM_RATE_LIMIT | server | 60 | The most server LLM calls one project may start in a minute | Running Team AI |
AITODO_SERVER_LLM_PROVIDER | server | anthropic | Where the server LLM runs: anthropic, bedrock, vertex, foundry or openai (an OpenAI-compatible endpoint) | The server's AI providers |
AITODO_SERVER_LLM_REGION | server | The cloud region of the bedrock or vertex server LLM | The server's AI providers | |
AITODO_SERVER_LLM_GCP_PROJECT | server | The Google Cloud project of the vertex server LLM | The server's AI providers | |
AITODO_SERVER_LLM_FOUNDRY_RESOURCE | server | The Microsoft Foundry resource of the foundry server LLM | The server's AI providers | |
ANTHROPIC_FOUNDRY_API_KEY | server | The key of the foundry server LLM; a secret | The server's AI providers | |
AWS_BEARER_TOKEN_BEDROCK | server | A Bedrock API key for the bedrock server LLM; without it the IAM role is used | The server's AI providers | |
AITODO_SERVER_LLM_URL | server | The base URL of the openai server LLM, e.g. https://llm.example.com/v1 | The server's AI providers | |
AITODO_SERVER_LLM_KEY | server | The key of the openai server LLM, if it needs one; a secret | The server's AI providers | |
AITODO_SERVER_LLM_PLACE | server | server | Where the openai server LLM is: server (outside the company) or infrastructure (its own) | The server's AI providers |
AITODO_SERVER_EMBED_URL | server | The base URL of the server's OpenAI-compatible embedding endpoint; unset, the server embeds nothing | The server's AI providers | |
AITODO_SERVER_EMBED_MODEL | server | The embedding model the server asks for; needed with AITODO_SERVER_EMBED_URL | The server's AI providers | |
AITODO_SERVER_EMBED_KEY | server | The key of the server's embedding endpoint, if it needs one; a secret | The server's AI providers | |
AITODO_SERVER_EMBED_PLACE | server | server | Where the embedding endpoint is: server (outside the company) or infrastructure (its own) | The server's AI providers |
AITODO_SERVER_ALLOW_HTTP | server | 1: 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_TIMEOUT | server | 30 | Seconds one forwarded tkt call may run on a server store | A store on the server |
AITODO_CLI_LOCK_WAIT | server | 10 | Seconds a write waits for the store lock | A store on the server |
AITODO_CLI_MAX_PROCS | server | 4 | Forwarded calls running at once | A store on the server |
AITODO_CLI_RATE_LIMIT | server | 120 | Forwarded calls per minute per token | A store on the server |
AITODO_STORE_MAX_BYTES | server | 104857600 | The 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 upload | A store on the server |
AITODO_DISK_MIN_FREE_BYTES | server | 1073741824 | The free space the server keeps on its data disk, in bytes; under it every write that grows the disk is refused | The server operator |
AITODO_DISK_WARN_FREE_BYTES | server | 5368709120 | Under this much free space on the data disk the server logs a warning for the operator, in bytes; above AITODO_DISK_MIN_FREE_BYTES | The server operator |
AITODO_CLI_OUTPUT_MAX_BYTES | server | 1048576 | The largest stdout and the largest stderr of a forwarded call, in bytes; the server keeps no more | A store on the server |
AITODO_CLI_FILE_MAX_BYTES | server | 1048576 | The largest file a forwarded call uploads or returns, in bytes | A store on the server |
AITODO_CLI_CALL_MAX_BYTES | server | 4194304 | The most a forwarded call's files and stdin carry together, in bytes; its request body limit follows it | A store on the server |
AITODO_CLI_STAGE1_MAX_BYTES | server | 67108864 | The largest Stage-1 result (ticket get, next --claim --json, report context) of a forwarded call, in bytes | A store on the server |
AITODO_CLI_MEMORY_MAX_BYTES | server | 2147483648 | The memory one forwarded tkt run may use, in bytes (Linux; a positive number, no off switch) | A store on the server |
AITODO_CLI_CONFINE | server | on | off 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 it | A store on the server |
AITODO_SERVER_RUN | internal | 1: this tkt runs on a server store, for the server | A store on the server | |
AITODO_SERVER_ACTOR | internal | The token name of the member the server runs tkt for | A store on the server | |
AITODO_RUN_LLM_URL | internal | Where a server-store run calls the project's server LLM (#217) | ||
AITODO_RUN_LLM_PROJECT | internal | The project of that server LLM | ||
AITODO_RUN_LLM_GRANT | internal | The run's temporary LLM grant (the caller's token, LLM calls only) | ||
AITODO_RUN_LLM_OFF | internal | Why a server-store run got no server LLM, for its notice | ||
AITODO_STAGE1_OUT | internal | Where a split command writes its Stage-1 JSON for the client | A store on the server | |
AITODO_FEEDBACK_INTAKE | internal | 1: this run is on the feedback intake store | Feedback intake and triage |