Clavue TUI
The TUI is for operators who live in the terminal: interactive agent sessions, plan/apply loops, and headless-friendly workflows without opening the full imux chrome. It shares Clavue membership, models, and API identity with the IDE and web Chat.
Install
Install the global npm package, then log in and confirm the binary name is clavue (not the imux-bundled icc).
npm i -g iclavue@latest
clavue --version
clavue loginWhen to use the TUI
Choose TUI when you want maximum keyboard density on a single agent stream. Choose imux when you need multi-pane agents, Git sidebar, browser verify, or Mission Control.
- SSH into a remote box and keep the agent UI local to that shell
- Scriptable start + interactive takeover mid-task
- Same official model ids as API (auto, clavue-2.1, …)
- Cloud model routing at router.clavue.com — same membership login; pull with /provider router pull --apply
Auth
Interactive sessions use device-code login (clavue login). Headless CI and scripts should use a membership API key from Account → API keys — same token works with OPENAI_BASE_URL for OpenAI SDKs.
- Device code — clavue login opens a browser flow on www.clavue.com; best for daily TUI use
- API token — export CLAVUE_TOKEN for scripts; no browser needed
- Same account as Chat, imux official models, and api.clavue.com/v1
# Interactive
clavue login
# Non-interactive / CI
export CLAVUE_TOKEN=... # Account → API keys
export OPENAI_BASE_URL=https://api.clavue.com/v1
export OPENAI_API_KEY=$CLAVUE_TOKENRelation to CLI
CLI covers one-shot commands, CI, and imux socket control (icc). TUI is the interactive session layer on top of the same platform auth and models. Headless scripts should prefer CLI/API; humans in a terminal prefer TUI.