Quickstart
Install zot and run your first session.
Install
macOS and Linux:
curl -fsSL https://www.zot.sh/install.sh | bashWindows (PowerShell):
iwr -useb https://www.zot.sh/install.ps1 | iexWith Go:
go install github.com/patriceckhart/zot/cmd/zot@latestOffline documentation
When configuring the agent, zot installs embedded Markdown into $ZOT_HOME/docs. Start at index.md for the installed page catalog. Reading these files needs no network access or source checkout. Outdated bundled files are refreshed, matching files are left untouched, and unrelated files are retained.
GitHub release binaries include a build-time snapshot of the website alongside repository reference docs. Repository references win when filenames overlap, and links to bundled pages are rewritten to local Markdown paths. Website-only pages can describe features newer than the binary. website-source.txt records downloaded-content hashes, and website-license.txt contains the website documentation license.
For local source builds, make build and make install download the website pages. If the site is unreachable, they warn and use a validated cache, or repository docs only when no cache exists. Plain go build and go install embed whatever documentation is already present locally without downloading it. Go dependencies must still be available locally. Release builds require a successful documentation download.
Log in
Use /login to store an API key or a subscription credential. API keys are entered in a masked terminal input, with no browser or callback server required, including over SSH. Providers that need extra cloud settings show setup guidance instead.
To save a key without starting the TUI, run zot auth set anthropic for a hidden prompt. For scripts, use redirected input:
zot auth set anthropic --stdin < /path/to/protected-api-key.txtDo not put the key in command arguments or shell history. zot validates it where supported and saves it to $ZOT_HOME/auth.json.
zot supports Claude Pro/Max, ChatGPT/Codex, Kimi Code, SuperGrok/X Premium, and GitHub Copilot subscriptions. See Providers for headless API-key setup, SSH callback tunnels, pasted-code flows, and device-code login options.
Or use local Ollama without login
With Ollama already running, install a model and select it explicitly:
ollama pull qwen3.5:4b
zot --provider ollama --model qwen3.5:4bNo API key, config.json, or models.json is required for this command. zot defaults to http://localhost:11434. See Settings to save the default selection and Models for remote servers or the same model on multiple hosts.
Run it
zot # interactive TUI
zot -s my_project # create or resume a named session in this directory
zot -p "summarize this repo" # one-shot to stdout
cat README.md | zot -p "summarize this text" # combine stdin with the prompt
zot -p --stats stats.json "summarize this repo" # one-shot plus generation stats
zot --json "run the tests" # NDJSON eventsWithout an explicit or saved selection, zot defaults to Anthropic Claude Sonnet 5.5 (claude-sonnet-5-5). Provider credentials are still required. Existing configured selections are not replaced.
Pick a model with /model, set its reasoning level with /reasoning, confine tools for the current session with /jail, or enable jail new sessions by default in /settings to start future sessions jailed. Resume your last session with zot -c. Slash command names are case-insensitive, while arguments such as model IDs and paths preserve their original casing.
In print, stream, and JSON modes, piped stdin is prepended to the positional prompt with a newline separator. This lets shell pipelines provide the source text while the positional argument supplies the instruction.
Print-mode statistics
Use --stats PATH with -p or --print to write generation statistics to a JSON file while keeping stdout limited to the final assistant text. The file is written only after a successful run.
{
"provider": "openai",
"model": "gpt-5",
"prompt_tokens": 123,
"reasoning_tokens": 45,
"generated_output_tokens": 18,
"elapsed_ms": 1234
}Counts cover every model turn triggered by the prompt, including tool loops. Prompt tokens include cache reads and writes. reasoning_tokens is null when the provider does not report a separate count; in that case generated_output_tokens is the provider's total output count and may include reasoning. Elapsed time covers the agent run, not startup or credential resolution.
Input navigation
!@ captures UTF-8 text as labelled file context and PNG, JPEG, GIF, or WebP files as images when you submit. Later edits or deletion do not change queued input. A prompt accepts up to 16 attachments and 1 MiB of combined content. Selection honors jail restrictions, and errors keep your input. Images require a vision-capable model. !@ is not expanded in slash-command arguments, shell commands, or noninteractive modes.
On Linux, image paste tries Wayland before X11 when both WAYLAND_DISPLAY and DISPLAY are set. If all available image clipboard backends fail, the error includes each backend's diagnostic instead of only the last failure. Successful fallback does not display a warning.