First run¶
There are two ways to set tau up. The quick one is inside the interface: tau tui on a machine with no configuration opens a setup screen, and /settings (or F10) edits everything afterwards. The other is the files: tau init writes them, you edit tau.toml and .env by hand, tau doctor checks them. Both end in the same two files, so you can mix them freely. This page shows the interface first, then the files, then tau doctor line by line and the first conversation.
In the interface: tau tui¶
With no tau.toml anywhere (TAU_HOME, the current directory, ~/.tau) the setup screen opens instead of the chat:
╭──────────────────────────────────────────────────────────────╮
│ ◆ Welcome to tau · first run │
│ │
│ Nothing is configured yet. Pick a home directory, the model │
│ provider and the UI language; tau writes tau.toml and the │
│ persona files there. │
│ │
│ home directory ~/.tau │
│ provider anthropic · credentials found ▼ │
│ UI language en ▼ │
│ Create │
│ tab fields · enter / ctrl+s / F2 create · esc quit │
╰──────────────────────────────────────────────────────────────╯
- home directory is where
tau.toml,.envandpersona/go;~/.tauunlessTAU_HOMEortau --homesays otherwise. A directory that already holds atau.tomlis used as it is. - provider is detected from the environment and
<home>/.envthe waytau initdoes it:anthropicwhenANTHROPIC_API_KEYis present, elseopenaiwhenOPENAI_API_KEYis, elsegeminiwhenGEMINI_API_KEYorGOOGLE_API_KEYis, elsebedrockwhen AWS credentials are, elsefake(no key needed, scripted replies). Change it if you like. - UI language relabels the screen as you switch it.
Create runs the same code as tau init, then the chat opens on the new home. Esc leaves without writing anything (exit code 2, the same as a missing config).
When the config exists but the role's provider has no credentials, tau tui still opens: the settings screen appears on its Credentials section with the missing variables marked ◆ needed, the composer says Add credentials in /settings, and the chat starts as soon as a save gives the provider its key. A role that runs on its fallback provider (when you defined one) is announced with one notice line (brain: using the fallback provider anthropic (bedrock has no credentials). Add them in /settings.).
/settings (Turkish alias /ayarlar) or F10 opens the same editor at any time:
τ tau home · 20260929-120000-abcd brain · en
╭────────────────────────────────────────────────────────────────────────────╮
│ ◆ Settings │
│ │
│ Model roles brain │
│ Credentials provider anthropic ▼ │
│ Interface model id claude-sonnet-5 │
│ Agent max tokens 4096 │
│ Doctor fallback (none) ▼ │
│ Files fallback id │
│ ✓ credentials ok │
│ │
│ fast │
│ … │
│ ↑↓ section · tab fields · ctrl+s / F2 save · esc close │
╰────────────────────────────────────────────────────────────────────────────╯
| Section | What you edit |
|---|---|
| Model roles | Per role: provider (every installed provider; a planned one, which a later issue builds, is listed in a note and cannot be chosen), model id, max tokens, an optional fallback provider and model id, and the credential status of the role (credentials ok, missing ANTHROPIC_API_KEY, missing … · fallback anthropic in use, no credentials needed). A role's budget and failover are edited in tau.toml only. |
| Credentials | Every variable the configured providers need, then every other provider's, then every name in .env.example and .env. Each row says set · sk-…abcd or not set, and (from the environment; .env does not override it) when your shell sets the variable. Keys, tokens, secrets and passwords take a hidden input; plain settings such as TAU_OLLAMA_URL or TAU_PROFILE a visible one. clear removes a value. Values are never shown again after you type them. |
| Interface | UI language (en/tr, applied on save) and the profile (TAU_PROFILE in .env). |
| Agent | context, window_size, max_turns, max_total_tokens with the same rules as the file. |
| Doctor | The tau doctor checks with ✓, ◆, ✗ and ▸ glyphs. |
| Files | The paths of tau.toml, .env, .env.example, persona/persona.md and persona/user.md with a mark for the ones that exist; the persona files are edited in your editor and re-read before the next turn. |
ctrl+s (F2 over mosh, where ctrl+s may be swallowed by flow control) validates and saves: a value the config would refuse is reported in the status line and nothing is written; a valid save writes tau.toml with its comments intact and .env with mode 0600, then rebuilds the agent on the same session when a role, an agent option, a credential or the profile changed (Settings saved; model reloaded.). Esc closes without saving. Nothing here ever prints, logs or stores a credential value in clear.
In the files: tau init¶
Everything the interface does can be done in the terminal, and tau chat has a smaller /settings too (see Talk to tau). tau init writes the files:
Without options the wizard:
- Resolves the configuration root (
TAU_HOME, else~/.tau). - Looks for model credentials in the environment and in
<root>/.env. When it finds some, it uses that provider and asks nothing about keys. - Asks for the UI language,
enortr. The questions after this one are in that language. - With no credentials anywhere, asks for the provider (
anthropic,openaiorgemini) and its key, typed hidden. It checks the key with one small request to the provider, a list of its models that costs nothing; the key travels only in a request header. A key the provider refuses, or a check that gets no answer, stopstau initbefore anything is written. An empty key skips this step. - Writes
tau.toml,persona/persona.md,persona/user.example.md,persona/user.mdand.env.example, then appends the key to<root>/.env. The file is created with mode0600, or set to it; its other lines stay as they are, and a key already set there is kept.
A first run on a machine without credentials looks like this (the key is never shown):
UI language (en, tr) [en]: en
No model key was found in the environment or <root>/.env. tau needs a key from one provider (`tau init --yes` sets up the scripted 'fake' provider without one).
Provider (anthropic, openai, gemini) [anthropic]: openai
OPENAI_API_KEY (hidden; empty skips):
Checking the key with one small request to openai...
openai accepted the key.
wrote <root>/tau.toml
wrote <root>/persona/persona.md
wrote <root>/persona/user.example.md
wrote <root>/persona/user.md
wrote <root>/.env.example
wrote OPENAI_API_KEY to <root>/.env (mode 0600)
Configuration root: <root> (UI language: en).
Next: edit persona/user.md, then run `tau doctor` and `tau chat`.
Every choice has a flag, so a script can run it without questions:
| Option | Effect |
|---|---|
--home DIR |
The root to create. Default: TAU_HOME, else ~/.tau. |
--provider NAME |
Provider for the brain and fast roles: anthropic, openai, gemini, bedrock or fake. Default: the first one with credentials, in that order. Only the provider and model_id of brain and fast change; the budgets and local (Ollama, failing over to fast) stay as shipped. |
--language LANG |
UI language, en or tr. Asked when omitted, unless --yes. |
--profile NAME |
Appends TAU_PROFILE=NAME to <root>/.env if it is not set there. |
--no-check |
Do not check a typed key with a request to the provider (for example on a machine without internet access). |
-y, --yes |
Ask nothing; use defaults for whatever is not given. No key is asked, so with no credentials the roles use fake. |
--force |
Overwrite an existing tau.toml and persona.md. user.md and .env.example are never overwritten. |
With --provider anthropic, openai or gemini and no key for it, tau init asks for the key as well (unless --yes). bedrock and fake never ask: Bedrock's credentials go into .env by hand.
tau init --yes with no credentials anywhere ends like this (paths shortened):
Provider: fake. No model credentials were found in the environment or <root>/.env, so both roles use the scripted 'fake' provider. Add ANTHROPIC_API_KEY, OPENAI_API_KEY or GEMINI_API_KEY to <root>/.env (names are in <root>/.env.example) and run `tau init --force`, run `tau init --force` without --yes to type a key, or edit tau.toml.
wrote <root>/tau.toml
wrote <root>/persona/persona.md
wrote <root>/persona/user.example.md
wrote <root>/persona/user.md
wrote <root>/.env.example
Configuration root: <root> (UI language: en).
Next: edit persona/user.md, then run `tau doctor` and `tau chat`.
Try it without credentials¶
The fake provider is a scripted model that ships with tau-core. It needs no key, never touches the network and answers Okay. to everything. It is how the test suite runs, and it is enough to see the REPL, the TUI, the slash commands, sessions and the approval flow.
Ask tau anything, then try /tools, /status and /sessions. When you want real answers, add credentials and continue below.
Credentials in .env¶
tau reads credentials from the environment and from <root>/.env. A variable that is already set in your shell wins; the file never overrides it. .env is yours and stays out of any repository; .env.example next to it only lists the names.
Put the key of your provider in .env, then let tau init --force rewrite the roles for it (it picks Anthropic, OpenAI, Gemini, Bedrock, in that order, from what .env now holds), open the Model roles section of /settings in the TUI, or edit tau.toml by hand:
The shipped tau.toml's provider: brain is Claude Sonnet 5, fast Claude Haiku 4.5.
brain becomes gpt-6.1-sol, fast gpt-6-luna. params.base_url on a role points it at any OpenAI-compatible API instead.
brain becomes gemini-3.5-flash, fast gemini-3.1-flash-lite.
tau init --force # picks anthropic > openai > gemini > bedrock from what .env now holds, else asks
tau doctor
Whatever the provider, tau.toml keeps its budgets: brain may spend $15 a month and then hands over to fast, fast $1 a day. tau prices every answer and enforces them itself; tau spend shows where each role stands. The local role stays on Ollama on this machine and needs no key: install Ollama and ollama pull qwen3.5:9b to use it; until then fast answers for it. Set a monthly spend limit in your provider's console as well, as the last line of defence. Models and budgets covers all of it.
Inside a session, /settings set ANTHROPIC_API_KEY (terminal) asks for the value without echoing it and writes it to .env; the TUI's Credentials section does the same with a hidden input.
If a role has no usable credentials, tau chat stops before starting, with exit code 2 and a message naming the missing variables; tau tui opens on the settings screen instead (see above):
Missing model credentials for role 'brain' (anthropic). Add these variables to .env: ANTHROPIC_API_KEY
Example names are in .env.example.
Your facts: persona/user.md¶
persona/user.md is what tau knows about you: how to address you, your name, city, working hours, preferences. It is created from the made-up example and is never overwritten. Without it, or with it empty, tau addresses you formally and knows nothing about you.
Edit it in any editor. The change applies on the next model call; there is nothing to restart. HTML comments in the file are notes for you and never reach the model.
Warning
user.md is life data. Keep it in the configuration root and out of any repository or sync folder you do not control. The backup guide covers how to copy it safely.
tau doctor, line by line¶
A first run in a checkout, with ANTHROPIC_API_KEY in .env but before you wrote a user.md:
ok config: <root>/tau.toml loaded
ok role brain: provider 'anthropic', credentials present
ok role fast: provider 'anthropic', credentials present
ok role local: provider 'ollama', needs no credentials
ok budget: brain $0.00 of $15.00 this month (resets 01.10.2026 00:00); fast $0.00 of $1.00 today (resets 01.10.2026 00:00)
ok sessions: backend 'file' opens under ~/.local/share/tau/sessions
ok persona: <root>/persona/persona.md present and non-empty
warn persona: <root>/persona/user.md is missing: tau addresses you formally and knows nothing about you (start from persona/user.example.md)
ok .env: every name in .env is listed in .env.example
ok components: every component loads
info hub: hub is not running (nothing answers on http://127.0.0.1:7877/health)
info telegram: not configured (TELEGRAM_BOT_TOKEN is not set)
12 checks: 9 ok, 1 warnings, 0 failed
Without the key, the two Anthropic roles fail and the exit code is 1:
fail role brain: provider 'anthropic' is missing ANTHROPIC_API_KEY (names are in .env.example)
fail role fast: provider 'anthropic' is missing ANTHROPIC_API_KEY (names are in .env.example)
ok role local: provider 'ollama', needs no credentials
role local is ok even when Ollama is not installed: tau doctor never calls a model, and while Ollama cannot be reached local's failover fast answers.
| Check | What it verifies | When it fails |
|---|---|---|
config |
tau.toml parses and every provider and backend name is known. Unknown top-level tables are a warning. |
A missing or invalid file: fail, and no further checks run. |
role <name> |
Each role's provider exists and has credentials, without building a client. A warn means the fallback will be used, the provider is planned (a later issue builds it), or the role has a budget but its model has no price, so its calls would count as $0. |
No credentials for the primary or the fallback: fail, with the missing names. |
budget |
With at least one budget in tau.toml: every budgeted role's spend in its period against its cap, from the ledger under TAU_DATA_DIR (the same text as /status and tau spend). |
The ledger cannot be read: fail. |
sessions |
The [sessions] backend opens. For file it names the directory. |
The backend cannot open its store. |
persona (twice) |
persona.md is present and non-empty; user.md is present. |
A missing or empty persona.md is a fail; a missing user.md is only a warn. |
.env |
Every name in .env is listed in .env.example, so a typo in a variable name is caught. info when there is no .env. |
Never; unknown names are a warn. Add your own names to .env.example to silence it. |
components |
Every tau.* entry point loads. |
A broken component: the distribution and its error are printed. |
hub |
Whether a hub answers on http://127.0.0.1:<control_port>/health. Information only. |
Never. warn when something answers with an error. |
telegram |
Whether the Telegram channel is configured and, when the hub runs, the poller's state (polling as @bot, retrying, stopped). info without a token. |
A token the Bot API rejected: fail. An empty or invalid TELEGRAM_ALLOWED_CHAT_IDS or a poller that keeps retrying: warn. |
Exit code 1 means at least one fail. tau doctor --json prints the same checks as JSON for scripts.
Tip
tau doctor never starts a model, opens a network connection to a provider or writes anything except the session directory it opens. It only asks the hub how it is and reads the spend ledger. Run it as often as you like.
Your first conversation¶
The banner names the profile and the new session id. Type a message; the reply streams under tau>. Tool calls appear as dim indented lines:
you> what time is it?
⚙ current_time (tier 0)
✓ current_time: 29.09.2026 17:38:26, Tuesday (Europe/Istanbul)
tau> It is 17:38 on Tuesday, 29 September.
When tau wants to use a tier-2 tool (one that acts on the physical world), it stops and asks. The shipped demo_physical_action tool exists exactly to show this:
⚠️ Approval needed (tier 2)
Tool: demo_physical_action
Arguments: {"action": "turn on the desk lamp"}
Effect: Demo: simulates a physical action; no real device moves.
Approve? [y/N]
y, yes, e or evet approves. Anything else, including Enter and Ctrl-D, rejects; tau reads the refusal and tells you briefly. Nothing ever approves on its own. The rules are in Tiers and approvals.
Every session is on disk from the first message. /sessions lists them, /resume continues the last one, /quit leaves. Next: Configure and Talk to tau.