Environment variables
Environment variables are optional overrides layered over the config file. They are useful for CI, containers, and one-off runs without editing JSON.
Resolution order
Section titled “Resolution order”For every setting:
- Process environment, when the variable is set and non-empty.
~/.tapplack/config.json.- Built-in default.
An empty or whitespace-only variable is treated as unset. .env files are not loaded
automatically; export variables in your shell, or use the config file.
| Variable | Meaning |
|---|---|
TAPPLACK_CONFIG |
Path to the config file (supports ~). |
TAPPLACK_MODE |
single or multi. |
TAPPLACK_SINGLE_AGENT |
Agent id for single mode. |
TAPPLACK_FINAL_AGENT |
Final synthesis agent id, or empty to disable. |
TAPPLACK_WORKFLOW_ORDER |
Comma-separated multi-mode order. |
COMPANY_NAME |
Company name. |
COMPANY_TAGLINE |
Tagline. |
COMPANY_MISSION |
Mission text. |
Providers
Section titled “Providers”Each provider has a key variable. The OpenAI-compatible providers also have model and base-URL variables.
| Provider | Key | Model | Base URL |
|---|---|---|---|
gemini |
GEMINI_API_KEY |
GEMINI_MODEL |
— |
anthropic |
ANTHROPIC_API_KEY |
ANTHROPIC_MODEL |
— |
openai |
OPENAI_API_KEY |
OPENAI_MODEL |
OPENAI_BASE_URL |
groq |
GROQ_API_KEY |
GROQ_MODEL |
GROQ_BASE_URL |
openrouter |
OPENROUTER_API_KEY |
OPENROUTER_MODEL |
OPENROUTER_BASE_URL |
together |
TOGETHER_API_KEY |
TOGETHER_MODEL |
TOGETHER_BASE_URL |
mistral |
MISTRAL_API_KEY |
MISTRAL_MODEL |
MISTRAL_BASE_URL |
deepseek |
DEEPSEEK_API_KEY |
DEEPSEEK_MODEL |
DEEPSEEK_BASE_URL |
ollama |
— | OLLAMA_MODEL |
OLLAMA_BASE_URL |
GEMINI_BASE_URL and ANTHROPIC_BASE_URL are not part of the provider catalogue; use the JSON
providers.<id>.baseUrl for a custom endpoint on those two, or rely on the SDK defaults.
Runtime
Section titled “Runtime”| Variable | Type | Default |
|---|---|---|
REQUEST_TIMEOUT_MS |
number | 120000 |
RETRY_ATTEMPTS |
number | 2 |
RETRY_BASE_DELAY_MS |
number | 1200 |
RETRY_MAX_DELAY_MS |
number | 20000 |
MAX_TOOL_ROUNDS |
number | 8 |
MAX_AGENT_CALLS_PER_RUN |
number | 24 |
MAX_TASK_RETRIES |
number | 3 |
LOG_LEVEL |
enum | info |
DEFAULT_WORKSPACE |
path | ./workspace |
DEFAULT_RUNS_DIR |
path | ./runs |
ALLOW_NETWORK_TOOLS |
bool | false |
ERROR_LOGS_DIR |
path | <runsDir>/error-logs |
Booleans accept 1, true, yes, on.
Per-agent overrides
Section titled “Per-agent overrides”Every agent has a prefix: ROLE_ followed by the id in uppercase with non-alphanumerics replaced by
underscores.
For agent senior_engineer:
| Variable | Meaning |
|---|---|
ROLE_SENIOR_ENGINEER_PROVIDER |
Primary provider id. |
ROLE_SENIOR_ENGINEER_MODEL |
Model override. |
ROLE_SENIOR_ENGINEER_FALLBACK |
Comma-separated fallback ids. |
ROLE_SENIOR_ENGINEER_SKILLS |
Comma-separated pinned skill ids. |
ROLE_SENIOR_ENGINEER_SKILL_MODE |
off, manual, auto. |
ROLE_SENIOR_ENGINEER_AUTO_APPLY |
1/true or 0/false. |
Unknown provider ids in _FALLBACK are dropped with a warning. The primary provider is never added
to its own fallback list.
Terminal and UI
Section titled “Terminal and UI”| Variable | Effect |
|---|---|
TAPPLACK_NO_TUI |
1 disables the full-screen TUI. |
TAPPLACK_ASCII |
1 forces ASCII glyphs. |
TAPPLACK_UNICODE |
1 forces Unicode glyphs. |
NO_COLOR |
Any non-empty value disables color. |
TERM |
dumb disables TUI and color. |
EDITOR |
Editor used by tapplack config edit. |
The TUI requires a TTY. Setting TAPPLACK_NO_TUI=1 is the reliable way to get plain appended output
in scripts and CI.
Provider and agent interaction
Section titled “Provider and agent interaction”Environment overrides are applied after the JSON file is read, so they win. A ROLE_* variable for
an agent that does not exist is ignored. A provider key in the environment makes that provider
“configured” even if the JSON key is empty.
Examples
Section titled “Examples”Bash:
export GEMINI_API_KEY="..."export TAPPLACK_MODE=multiexport DEFAULT_WORKSPACE="$PWD"export ALLOW_NETWORK_TOOLS=1tapplack doctorPowerShell:
$env:GEMINI_API_KEY = "..."$env:TAPPLACK_MODE = "multi"$env:DEFAULT_WORKSPACE = (Get-Location).Pathtapplack doctorOne-off run without exporting:
ROLE_ASSISTANT_MODEL=gemini-2.5-pro tapplack start --force "explain workspace"Related
Section titled “Related”- Config file — the same settings on disk.
- Configuration — precedence and editing.
- Troubleshooting — verify an override took effect.