Configure¶
Two files configure tau. tau.toml is static data: which model serves which role, how long a turn may run, where sessions go. .env holds credentials and the few environment variables that pick the roots. This page walks through both; the tau.toml reference and the environment reference list every key.
Config versus Settings
tau uses the word config for these two files, read once at start-up; the TUI's /settings screen and the terminal's /settings command edit them in place. Settings are runtime values that will change while tau runs (ambient mode, retention, notification preferences). Those live in a file under TAU_DATA_DIR and are hot-reloaded; they are planned in roadmap issue 019 and are not part of this page.
Edit from the interface¶
You do not have to open the files. In tau tui, /settings (alias /ayarlar) or F10 opens an editor with six sections: Model roles, Credentials, Interface, Agent, Doctor and Files. ↑↓ picks a section, Tab moves through its fields, ctrl+s or F2 saves, Esc closes. A save is validated first (a bad value stays in the dialog with the reason in the status line), keeps the comments in tau.toml, keeps .env at mode 0600, and rebuilds the agent on the same session when something that affects the model changed. First run shows the screen.
The provider select offers only providers that are built. A planned one (a provider a later roadmap issue builds; there is none today) is listed in a note and cannot be chosen, because a role on it cannot start; a role that already names it is left as it is, and should a stored tau.toml ever put brain on it, tau tui still opens, without an agent, on the Model roles section so you can pick another provider. The editor changes a role's provider and model id but leaves its budget and failover alone; edit those in the file and restart tau (see Models and budgets). A credential row also says when its value comes from your shell environment: .env never overrides a variable that is already set, so a value you save there would not be used at the next start until you unset the shell's.
tau chat has the terminal form:
you> /settings
Settings · ~/.tau
Model roles:
brain anthropic · claude-sonnet-5 · credentials ok
fast anthropic · claude-haiku-4-5 · credentials ok
local ollama · qwen3.5:9b · no credentials needed
UI language: en · profile: home
Context: sliding, window 60 · max_turns 12 · max_total_tokens none
Files:
tau.toml ~/.tau/tau.toml · present
…
Change: /settings language en|tr · /settings profile NAME · /settings model ROLE PROVIDER MODEL_ID · /settings set NAME · /settings clear NAME. …
/settings language tr, /settings profile travel and /settings model brain anthropic claude-sonnet-5 write the value and reload; /settings set ANTHROPIC_API_KEY asks for the value with a hidden prompt (nothing is echoed) and /settings clear NAME removes it. The Python API behind both channels is tau_core.settings (see the tau-core README).
The rest of this page is the files themselves.
Roles, not model ids¶
Code never names a model. It asks for a role and tau.toml maps the role to a provider and a model id. tau calls the provider directly, with your key from .env (Anthropic, OpenAI or Google Gemini) or a local model through Ollama, and enforces a budget per role itself. The shipped file:
[models.roles.brain]
provider = "anthropic" # anthropic | openai | gemini | ollama | bedrock | fake
model_id = "claude-sonnet-5"
max_tokens = 4096
[models.roles.brain.budget] # a hard cap tau enforces itself
usd = 15 # dollars per period
period = "month" # day | week | month; resets at midnight, on Monday, on the 1st
degrade_to = "fast" # once spent, this role answers until the reset; omit to stop and say so
[models.roles.fast]
provider = "anthropic"
model_id = "claude-haiku-4-5"
max_tokens = 1024
[models.roles.fast.budget]
usd = 1
period = "day"
[models.roles.local]
provider = "ollama" # Ollama on this machine; TAU_OLLAMA_URL points at another (the Mac over the tailnet)
model_id = "qwen3.5:9b" # answers well in Turkish; `ollama pull qwen3.5:9b`
max_tokens = 1024
params = { reasoning_effort = "none" } # answer at once instead of reasoning first
failover = "fast" # answers while Ollama is not reachable (a sleeping or absent Mac)
brainis the conversation and planning model (Claude Sonnet 5).tau chatandtau tuiuse it unless you say otherwise (--role,/model).fastis for triage and summaries (Claude Haiku 4.5). Today it is available through/model fast; later layers use it for memory extraction.localis an on-device model through Ollama (qwen3.5:9brecommended). When Ollama cannot be reached (not running, or a sleeping Mac), its failoverfastanswers instead and the reply says so.
tau init writes this file for the provider whose key it finds (Anthropic, OpenAI, Gemini or Bedrock), or for the one you pick when it asks for a key, rewriting the provider and model_id of brain and fast (for example gpt-6.1-sol / gpt-6-luna on OpenAI, gemini-3.5-flash / gemini-3.1-flash-lite on Gemini). The providers are anthropic, openai (also any OpenAI-compatible API through params.base_url), gemini, ollama, an optional bedrock, and the scripted fake.
A budget caps what a role may spend: usd per period (day, week or month, calendar periods in Europe/Istanbul). tau prices every answer, keeps the spend in a ledger under TAU_DATA_DIR, and once a budget is spent the degrade_to role answers until the reset, or, without one, tau tells you when the budget resets. tau spend shows where each role stands. Everything about providers, budgets, prices and failover is in one guide: Models and budgets.
A role may have one fallback table with the same keys. The fallback is used only when the primary provider's credentials are missing; tau doctor and /status tell you when that happens. The shipped file defines none.
Prompt caching is optional and per role. The Anthropic and Bedrock providers honour it; openai, gemini, ollama and fake ignore it:
[models.roles.brain.cache]
strategy = "auto" # auto | anthropic
ttl = "1h" # optional: "5m", "1h"
# system_prompt_ttl = true # bool or a TTL
# tools_ttl = "5m"
Tip
Model ids are data. They live in tau.toml, never in code (Bedrock ids use the Converse API form with the cross-region global. prefix, Ollama ids are the names you pulled). A wrong id is a model error at the first call, not a config error. A model tau-core has no price for needs a [models.prices."<model_id>"] table before its budget can count (tau.toml reference).
[agent]: turns, context and budget¶
[agent]
max_turns = 12 # model calls per user turn (loop guard)
context = "sliding" # sliding | summarize
window_size = 60 # sliding: messages kept; summarize: recent messages never summarized
# max_total_tokens = 200000 # optional per-turn token budget
max_turnscaps how many model calls one of your messages may trigger. When tau hits it, the tools of the last call still run, tau stops and says so, and you decide whether it continues.contextpicks what the model sees of a long session.slidingsends the lastwindow_sizemessages.summarizekeeps the lastwindow_sizemessages verbatim and a summary of the rest. The session store keeps every message either way.max_total_tokensis an optional per-turn token budget. When it is reached tau stops the turn with a notice.
Changing context after the fact
A session remembers the context mode it was recorded with. After you switch sliding to summarize, an older session refuses to open with Session <id> was recorded with a different [agent] context setting; set it back to sliding or start a new session. Nothing is lost; set the value back or start fresh. Details in Sessions and compaction.
[sessions]¶
file writes one directory per session under TAU_DATA_DIR/sessions/ and is what the shipped file sets. memory keeps sessions in the process and is for tests and throwaway runs. When the key is absent the code defaults to memory, so keep the line.
[hub]¶
The hub's control API listens on 127.0.0.1:<control_port> only and answers GET /health, GET /status and, from the spend service, GET /spend (what every role spent in its budget period, from the local ledger). Only /health and /status are open; /spend and every other route need a request signed with the hub's control token, and /status carries the same spend under its spend key. TAU_HUB_PORT overrides the port. The heartbeat is how often the running hub refreshes its state file; tau hub status reads it. See Run tau as a service.
[ui]¶
The UI language is the language of the chrome: slash-command help, notices, the approval prompt, pane titles and key hints. It is not the language tau answers in; the persona decides that and mirrors yours. TAU_LANG overrides the file, tau --lang tr … overrides both for one run, and /lang en|tr switches it inside a session.
[components]: switch parts on or off¶
Everything pluggable in tau is a component, discovered through entry points and listed by tau components. The [components] table disables tools and picks context sources and hub services without uninstalling anything:
[components]
context = [] # enabled tau.context sources; empty = every discovered one
[components.tools]
disabled = ["demo_physical_action", "dist:tau-example-tool"] # tool names or dist:<distribution>
[components.hub]
services = [] # enabled tau.hub_services; empty = every discovered one
tools.disabledcan only remove tools. It never adds one, gives one a tier or changes a tier.- An unknown key inside these tables is an error, so a typo such as
disablecannot leave a tool switched on by accident. - A name that no installed component provides is a
tau doctorwarning, not an error.
A component's own settings go into a free [component.<name>] table:
Any other top-level table in tau.toml is logged once and ignored. Components and plugins has the full picture.
Roots and identity: the environment¶
Four variables decide where tau reads and writes and who it is. Set them in your shell or in <root>/.env; the defaults cover a single-user machine.
| Variable | Default | Meaning |
|---|---|---|
TAU_HOME |
the current directory if it holds tau.toml, else ~/.tau |
The configuration root: tau.toml, .env, persona/, tools/. tau --home DIR wins over it. |
TAU_DATA_DIR |
~/.local/share/tau |
Mutable state: sessions/, hub/, logs/. Never inside a repository. |
TAU_PROFILE |
home |
The active profile: home, travel or sport. tau --profile NAME wins over it. |
TAU_LANG |
[ui] language |
UI language override, en or tr. tau --lang wins over it. |
Two more exist for later layers: TAU_ROLE (hub or node, default hub; the mesh in layer 5 uses it) and TAU_HUB_PORT.
Precedence, once
Command-line option → environment variable → .env → tau.toml → built-in default. A variable already set in your shell is never overridden by .env.
Persona files¶
persona/persona.md is tau's character and is safe to publish. persona/user.md is the facts about you and is private. Both are re-read when they change, before the next model call, so an edit needs no restart. Keep persona.md non-empty: a missing or empty file stops tau chat at start-up with a ConfigError; a file that breaks while tau runs keeps its last good version in use.
After a change¶
tau doctor # config, roles, credentials, persona, components
tau components # what is discovered, enabled and in use
Neither starts a model. A running hub, tau chat or tau tui read tau.toml when they start, so restart them after a change, a new budget included. Inside a running session, /status shows the resolved model per role, the context mode and window, the tool counts and each budgeted role's spend against its cap; /settings shows the files' values and lets you change them, and the TUI's Doctor section runs the same checks as tau doctor.