Quickstart: the terminal UI
The terminal UI is the quickest way to see zelk work. It is a full-screen chat
with an agent in the directory you start it in, and it asks before it changes
anything. This page takes you from a built zelk to a change made in a
repository. If you haven’t built it yet, start with Get zelk.
To use zelk from a program, see the Go quickstart; to run it in a script or in CI, see the scripting quickstart.
Start it
Section titled “Start it”Open a terminal in a Git repository, one you don’t mind changing, and run:
zelkThe first time, zelk has no model, so it opens Set up a model provider:
- Name: what you’ll call this provider, such as
workorollama. - API:
openai-compatfor OpenAI and any server that speaks its Chat Completions API, oropenai,anthropic,gemini,chatgpt,opencode,ollama,lmstudioorllamacpp. Choose with ← and →. - Base URL: filled in for the API you chose; change it for a proxy or another server.
- API key: the key itself, or
$NAMEto read it from the variableNAMEeach time zelk starts, so the key isn’t written to disk. - Model: the model to start with. Leave it empty to pick one from the provider’s list.
Tab moves between the fields; Enter on the last one saves. zelk keeps
providers in ~/.config/zelk/providers.json (on Windows,
%APPDATA%\zelk\providers.json), readable only by you, and
/provider adds and switches between them later.
Only the terminal UI reads that file. Print mode, zelk exec and the
library take the provider from flags and variables instead
(the scripting quickstart).
Give it a task
Section titled “Give it a task”Type what you want and press Enter:
Add a short Usage section to README.mdzelk reads the files it needs, and reading never asks. Before its first edit it stops and shows you the change:
╭─ Make this edit? ───────────────────────────────── edit ─╮│ README.md +9 ││ … ││ › 1. Yes allow it this once ││ 2. Yes, always don't ask again for Edit(README.md) ││ 3. No don't allow it ││ 4. No, explain say what to do instead │╰──────────────────────────────────────────────────────────╯Choose Yes, and zelk makes the edit, checks its work where there is something to check, and ends with a short report of what it did and what it didn’t verify.
That approval came from the permission mode, shown at the bottom left.
zelk starts in default (shown as ASK): reads run, anything else asks.
Shift+Tab cycles through default, accept-edits (workspace edits run
too), plan (read-only: it explores and proposes a plan) and auto (a
reviewer model decides what would otherwise ask you).
Permissions explains each.
A few keys to know from the start:
| Key | Does |
|---|---|
/ on an empty prompt |
the palette: every command, skill and tool |
@ |
mention a file, attaching it to your message |
! |
run a shell command yourself |
| Esc | stop the current run |
| Ctrl+O | expand a tool’s output |
| Ctrl+D twice | quit |
The full list is in Keys.
Come back to it
Section titled “Come back to it”zelk keeps every session. Start it again in the same directory and continue where you left off:
zelk -c # continue this directory's last sessionzelk -c "and update the docs"zelk -r # pick a session to resume- The terminal UI: the screen, the palette, settings and plans
- Permissions: modes, rules and the sandbox
- Run zelk from scripts and CI: print mode and
zelk exec - Embed zelk in Go: the library the terminal UI is built on