Commands
Quick reference for CLI subcommands and TUI slash commands (embedded as the docs("commands") topic; linked pages below live in docs/ and are not all separate docs() topics). Canonical specifications live in cli.md and tui.md.
CLI
tuse [-c|--config PATH] [-r|--resume ID]opens the full-screen TUI.--config(-c) picks the config file;--resume(-r) opens a saved session. Normal exit printstuse: session <ID>to stderr.tuse json [-c|--config PATH] [-r|--resume ID]serves one session over JSON-RPC 2.0 stdio.tuse connect --base URL (--key '$ENV' | --key-stdin) --name NAME [--api TYPE] [--replace]verifies a provider (openai-chat,openai-responses,anthropic-messages, orgoogle-gemini) via its model-listing endpoint and saves (or atomically replaces with--replace) it in SQLite (providers.md).tuse providers [--json]lists saved providers (<NAME>\t<BASE_URL>, or JSON withapivia--json);tuse disconnect NAMEremoves one.tuse models [-c|--config PATH]prints the saved default model/effort and lists configured model metadata from the effective Lua config.tuse initcreates./tuse.luaextending the global config.tuse updatedownloads, verifies, and replaces thetusebinary in place without touching your config (install.md).tuse version(--version,-V) prints the version;tuse help(--help,-h) prints usage;tuse COMMAND --helpprints one command's usage.
See cli.md for flag syntax, validation rules, error formats, and exit behavior.
TUI
Built-in slash commands run when typed as /name with no arguments or selected from the / picker:
/newstarts a fresh session in the current directory./resumeopens a searchable picker of other named sessions for the current directory./modelsopens a two-step picker (model, then reasoning effort) and saves the selection for the active session and as the SQLite default for new sessions./taskslists background tasks (spawn()); Enter views the log (last 200 lines) andCtrl+Xstops the selected task./sessionopens a scrollable view ofrequire("tuse").session()(all fields excepttrace)./traceopens a searchable list of all trace entries (index role first line); Enter opens the full entry panel,Left/Right(when input is empty) step to the previous/next filtered entry, and Esc returns to the list with search and selection intact./configopens a scrollable view of the resolved config (without provider secrets or Lua function bodies)./reloadsynchronizes enabled Git plugins (installing missing checkouts and updating moving refs), validates, and re-evaluates the config in the same VM (keeping the previous working config on failure)./quitcloses the session and exits.
Custom slash commands from commands = { name = function() ... end } appear in / autocomplete and run as non-blocking Lua jobs (built-in names cannot be overridden). When "tuse/default" is enabled with subs = true (or a table), it registers /subs to manage the local CLIProxyAPI subscription proxy (subs.md).
Picker search filters item labels (not details) by case-insensitive substring; modal searchable pickers reuse the input as a search box and restore your draft on close. See tui.md for complete keyboard shortcuts, mouse selection, interactive links, steering, and overlay workflows.