Skip to content

CLI reference

The tau command launches the interactive TUI by default; subcommands and flags cover everything else.

tau [OPTIONS] [PROMPT] [COMMAND] [ARGS]
  • With no arguments, tau opens the interactive TUI.
  • A positional PROMPT opens the TUI and submits it as the first turn.
  • -p/--prompt runs a single prompt in print mode.

On TUI and text print-mode startup, Tau may show a non-blocking notice when a newer tau-ai release is available on PyPI. Disable it with TAU_NO_UPDATE_CHECK=1; utility commands such as tau --version, tau sessions, and tau export do not run the check.

CommandWhat it does
tauOpen the interactive TUI
tau "<prompt>"Open the TUI with an initial prompt
tau sessionsList indexed sessions (id, title, model, cwd)
tau export <ref> [dest] [--format html|jsonl]Export a session id or JSONL path (HTML default)
tau providersList configured providers and how each authenticates
tau [setup options] setupCreate/update an OpenAI-compatible provider
FlagDescription
-p, --prompt TEXTRun this prompt in non-interactive print mode
-m, --model TEXTModel to request from the provider
--provider TEXTConfigured provider name to use
--cwd PATHWorking directory for the built-in tools
-o, --output [text|json|transcript]Output mode for print mode (default text)
--resume TEXTResume a session id in the TUI
--new-sessionStart a new session instead of resuming the default
--auto-compact-threshold INTAuto-compact above this rough token estimate
--versionPrint the version and exit

Tau’s setup mode registers an OpenAI-compatible provider. Put these flags before the final setup argument:

FlagDefaultDescription
--provider TEXTopenaiProvider name to create/update
--model TEXTdefault modelDefault model for the provider
--base-url TEXTOpenAI URLOpenAI-compatible base URL
--api-key-env TEXTOPENAI_API_KEYEnv var holding the API key
--timeout-seconds FLOAT60.0HTTP timeout
--max-retries INT2Retry count for transient failures
--max-retry-delay-seconds FLOAT1.0Delay between retries
--set-default / --no-set-defaultset-defaultMake this the default provider

Example:

Terminal window
tau --provider local \
--base-url http://localhost:11434/v1 \
--api-key-env LOCAL_API_KEY \
--model qwen \
setup

See also: Slash commands (in-session) and Keyboard shortcuts.