Quickstart
Install theuth, add one provider key through the vault, and get a first reply in the terminal or the desktop app.
What you need
- A Mac with Apple silicon (macOS 15 or newer) or a Linux box (x86_64 or aarch64, glibc 2.39 or newer: Ubuntu 24.04+, Debian 13+, Fedora 40+). Windows (x86_64) is a preview: unsigned installers, published for some releases and otherwise built from source; see Installation.
- An API key for one model provider (Anthropic, OpenAI, …) or a subscription you can sign in to (Claude Pro/Max, ChatGPT, Cursor, SuperGrok). Keep the key in your clipboard; you will paste it into a masked field, never into the chat.
1. Install
Pick one. Both keep themselves up to date.
brew install basedatum/tap/theuth # the `t` command (macOS arm64, Linux)
brew install --cask basedatum/tap/theuth # the macOS menubar app (bundles its own `t`)Other options, including Linux .deb/.rpm/.AppImage and building from source, are in Installation.
2. Start it
tThe terminal UI opens and creates ~/.theuth on the first run (--data-dir <path> or THEUTH_DATA_DIR relocate it). In the desktop app, click the tray icon or press ⌥Space to show the window; it starts an engine of its own, or reuses one a terminal t is already running.
One engine runs per data directory. A second t (or t -p) in another terminal attaches to it as a client rather than starting a duplicate, so your sessions are shared; t --headless refuses with engine already running (pid …) instead. Set THEUTH_DATA_DIR if you really want a separate store.
3. Add a provider
Keys live in an encrypted vault and are referenced by name. Each provider has a credential name — anthropic and openai match their model ids, but some differ (gemini for Google, together for Together AI); the full table is in Models. Any of these work:
- In the TUI, type
/secrets add anthropicand paste the key into the masked box. (/secretsalone lists what is stored.) - From a shell:
t --secret-set anthropic. The value is read without echo (asked twice), or from the first line of stdin when piped:pbpaste | t --secret-set anthropic. It printsstored anthropic v1. - In the desktop app, open Secrets in the sidebar's Library group, or Settings › Connections for the built-in key providers.
- No key but a subscription?
/loginopens a picker foranthropic(Claude Pro/Max),openai(ChatGPT),cursorandxai; it goes through your browser./logout <name>removes it.
A provider's environment variable (ANTHROPIC_API_KEY, …) also counts as configured, but a vault key wins over it. Details and the full list of names: Secrets.
4. Pick a model
/modelThe picker only shows providers that have a key, a login, or their env var set. If it says no models: no provider is configured, step 3 did not land. Choosing a model here applies to the chat you are about to start; the default for new chats stays agent.model in ~/.theuth/config.yaml (desktop: Settings › Chat › Models › New sessions). /model <id> sets one directly (ids are models.dev ids such as anthropic/claude-sonnet-4-5). /effort adjusts reasoning effort where the model supports it. More in Models.
5. Say something
Type a message and press Enter. The reply streams in. When the model wants to run a tool that changes something, a prompt appears under the transcript:
[y] allow [n/esc] denyRead-only tools run without asking. Approval behaviour is configurable per session (/approvals) and in config; see Tools and permissions. /quit (or /exit) leaves the TUI.
That is a working harness. First session walks through the UI properly.
Print mode
For scripts and one-off questions, skip the full-screen UI:
t -p "summarise the git log of this repo since Monday"
echo "what does this error mean: ETXTBSY" | t -pThe reply streams to stdout and the process exits when the turn ends. Print mode uses the same config, vault, model and tool policy as the TUI. An approval prompt is printed as text: answer y or n on stdin, and when stdin is a closed pipe (the echo … | form) pending approvals are denied, so the turn finishes rather than hanging.
Where your data lives
Everything is under ~/.theuth (or whatever --data-dir points at):
| Path | What it is |
|---|---|
config.yaml | every plugin's settings; /model and the settings UI write it in place |
secrets.sqlite | the encrypted vault; its key sits in the OS keychain (service theuth), or in secrets.key where there is none |
sessions.sqlite | chat sessions and their history |
oauth/ | /login grants when no vault is available (with a vault they are stored as oauth/<name> rows inside it) |
mcp/, skills/, schedules/, prompt.md | MCP servers, skills, scheduled runs, standing instructions |
knowledge/, artifacts/, models/ | the knowledge store, files the agent shows you, downloaded speech models |
logs/, token, engine.json | daily log files, the RPC token, the running engine's record |
That is where theuth's own persistent state lives. It is not a sandbox: tools the agent runs with your approval (shell, file edits, installs), the embedded browser's and helpers' caches, files you export, and t --install-service write wherever they are pointed, so review what a session does — see Tools and permissions.
Where next
- Installation: every platform, updating, uninstalling, first-run troubleshooting.
- First session: the TUI and desktop surfaces, sessions, approvals in practice.
- Models: providers, OAuth logins, gateways, Bedrock, vision fallback.
- Workspace: desktop, terminal, voice, meetings, documents, notebooks, knowledge, apps, web views, search.
- Automation: agents, delegation, tasks, schedules, watchers, autoresearch, mesh, contacts, public sharing, sandboxes, channels.
- Reference: configuration keys, tools and permissions, MCP, skills, secrets, the security model, the CLI.
theuth documentation
Install theuth, run your first session, and learn how the harness works on your machines, directs models and coding agents, reaches your channels and shares what it makes.
Installation
Install the t command or the desktop app on macOS, Linux and Windows, keep it updated, and remove it cleanly.