Reference
Environment variables
Keys, base URLs and switches like FRONTIER_PLAIN.
Real environment variables always win over files. The files read, in order, are the install folder's .env and .env.local, then ~/.frontier/.env, then .env.local and .env in the project you are in. Only the first three can hold keys and base URLs. The project's two files are read for FRONTIER_ tunables only, so a cloned repository cannot redirect your key.
Provider keys
| Variable | Used for |
|---|---|
OPENROUTER_API_KEY | OpenRouter. Also builds the OpenRouter provider on its own. |
OPENROUTER_MODELS | A comma separated list of OpenRouter model ids that replaces the default models. |
OPENROUTER_BASE_URL | Another OpenRouter address. |
OPENROUTER_REFERER | The referer header sent to OpenRouter. |
DEEPSEEK_API_KEY, DEEPSEEK_BASE_URL | DeepSeek. |
GEMINI_API_KEY, GEMINI_BASE_URL | Gemini. |
GROQ_API_KEY | Groq. |
OPENAI_API_KEY | OpenAI. |
ANTHROPIC_API_KEY | Anthropic, through its OpenAI compatibility endpoint. An API key, never a Claude login. |
OLLAMA_MODEL | A comma separated list of local models. Builds the Ollama provider. |
OLLAMA_BASE_URL | Where Ollama listens. Default http://localhost:11434/v1. |
A provider you declare in settings names its own key variable with apiKeyEnv. See Any OpenAI compatible API.
Where things live
| Variable | Meaning |
|---|---|
FRONTIER_HOME | Moves the ~/.frontier folder: settings, trust decisions, keys, logs, caches. A project's own .env can never set it. |
FRONTIER_NO_DOTENV | 1 ignores the install and project .env files. Used by tests so real keys never leak into mock runs. |
CLAUDE_CONFIG_DIR | Where Claude Code keeps its settings. frontier connect claude writes there. |
Timeouts and retries
| Variable | Default | Meaning |
|---|---|---|
FRONTIER_FIRST_BYTE_TIMEOUT_MS | 60000 | How long to wait for a model to start answering. |
FRONTIER_STREAM_IDLE_TIMEOUT_MS | 90000 | How long a silent stream is allowed before it is cut off. The partial answer is kept. |
FRONTIER_TRANSPORT_RETRIES | 5 | Reconnects after a network failure. They do not count against the model. |
FRONTIER_RUN_TIMEOUT_MS | 120000 | How long a command the agent runs may take. |
Display and behaviour
| Variable | Meaning |
|---|---|
FRONTIER_PLAIN | 1 turns on plain mode for one run: no colour, no animation, ASCII only. |
FRONTIER_ASCII | 1 keeps colour but uses ASCII symbols and plain borders. |
FRONTIER_VERBOSE | 1 shows every model attempt. They are always in the log. |
FRONTIER_NO_UPDATE_CHECK | 1 switches the background update check off. |
FRONTIER_NO_WINDOW | 1 records the baton takeover command instead of opening a window. |
NO_COLOR | Any non empty value turns colour off. |
FORCE_COLOR | 0 off, 1, 2 or 3 for 16, 256 or true colour, even into a pipe. NO_COLOR wins if both are set. |
COLORFGBG | Read to tell a light terminal from a dark one for the auto theme. |
TERM | dumb means no colour. |
MCP_TOOL_TIMEOUT | Claude Code's own limit for an MCP tool call, in milliseconds. Set it high for long frontier_task jobs. |
Anonymous counters
| Variable | Meaning |
|---|---|
FRONTIER_API_URL | Where /stats sync sends anonymous outcome counters. Default http://127.0.0.1:4000/v1/telemetry, which is your own machine. |
Nothing is sent unless you type /stats sync yourself. The counters hold runs, completions and passed tests per provider, and a random install id.