For developers
Command line
Use Zero1LLM from the terminal with z1llm: your models, a chat, pictures and videos, and scripts.
z1llm is Zero1LLM in your terminal: load a model, ask something, chat, make a picture. It talks to the Zero1LLM app
on your computer through the local API, so the app must be open with Settings → Local API on.
On a server or a computer without the app, z1llm serve runs your models itself: see Without the app.
Install
You need Node.js 20 or later.
npm install -g z1llm
zero1llm is a second name for the same command, and npm install -g zero1llm works too (install one, not both).
Then save your key once: copy it in Settings → Local API and
paste it when asked (it isn't shown as you paste).
z1llm key
z1llm status
status tells you whether the app is open, the local API is on, and your key works.
Your models
z1llm models # what you have, and which are loaded
z1llm load # pick one from a list
z1llm load qwen # or give part of its name
z1llm eject # unload one, freeing its memory
You never type a model's full name. Part of it is enough; when it matches several, or none, a list opens: type to narrow it, ↑↓ to move, Enter to choose, Esc to leave. A typo gets the closest names: No model "gemmma". Did you mean Gemma 4 E2B?
Ask and chat
z1llm ask "What's the weather in Kolkata?" --web
z1llm chat
ask gives one answer and ends. chat is a conversation that fills the window, as Claude Code's fullscreen does: the
box you type in stays at the bottom and the conversation scrolls above it (mouse wheel). To select text with the mouse,
hold Shift while dragging. When you leave, the conversation is printed into your terminal so it stays in its
history. Set Z1LLM_INLINE=1 to have the chat printed straight into the terminal instead. Both
use the app's own chat: web search, memory and your tools, and the chat appears in the app's sidebar.
- Esc stops an answer while it's being written; what it wrote so far stays.
- Shift+Enter starts a new line; Enter sends. On Windows, use Alt+Enter. In Apple's Terminal app, use Option+Enter after turning on Use Option as Meta key (Terminal → Settings → Profiles → Keyboard).
- Type / to see what you can do in a chat; ↑↓ move through the list, Enter or Tab take one:
| Command | What it does |
|---|---|
/web | Turn web search on or off |
/model | Switch to another model (/model qwen picks by part of its name) |
/clear | Start a new chat and clear the screen |
/help | List these commands |
/exit | Leave (or Ctrl+D, or Ctrl+C twice) |
When a tool asks to run, or the AI asks you something, pick from a list: ↑↓ and Enter, a number, Space to tick when several answers fit, or type your own in the last row.
Options for ask and chat:
| Option | |
|---|---|
-m qwen | Which model (part of its name). Without it, the app's current model. |
--web | Search the web first |
--no-save | Keep the chat out of the app's sidebar |
--plain | The model alone: no web, memory or tools, and nothing saved |
Pictures and videos
z1llm image "a red fox in snow" --shape 16:9
z1llm video "waves at sunset" --seconds 5
Pictures are saved in Pictures/Zero1LLM, videos in Movies/Zero1LLM (on a Mac) or Videos/Zero1LLM, and the
full path is shown. -o fox.png saves to that file instead; -o ~/Desktop to that folder. Pictures, videos and
documents made in a chat are saved the same way (documents in Documents/Zero1LLM).
In scripts
cat notes.txt | z1llm ask "Summarise this"
z1llm ask "Capital of France? One word." --plain -m qwen > answer.txt
z1llm models --json
- Text piped in is added to the question.
- Answers go to the output and everything else (spinners, questions) to the terminal, so
>keeps just the answer. - Every command takes
--jsonfor output a program can read. - A command that fails exits with 1. In a script there are no lists to pick from: a model name that matches several or none fails with the closest names instead of waiting.
For your own programs, the SDKs give you the same and more: npm install @zero1llm/sdk or pip install zero1llm.
When something goes wrong
| You see | What to do |
|---|---|
| Zero1LLM isn't open, or its Local API is off | Open the app and turn on Settings → Local API. |
| No API key, or the wrong one | Run z1llm key and paste the key from Settings → Local API again. |
| Load a model first | z1llm load, or turn on Load models when asked in Settings → Local API. |
| Shift+Enter sends the message | On Windows use Alt+Enter. Elsewhere your terminal can't report Shift+Enter: use Option+Enter (see above), or end the line with \ and press Enter. |
Good to know
- Your key is kept in
~/.config/z1llm/config.json(on Windows%APPDATA%\z1llm\config.json), readable only by you.ZERO1LLM_API_KEYis used instead when it's set. z1llmfinds the app by itself.ZERO1LLM_BASE_URLsets the address if you changed how it's reached.z1llm helplists everything;z1llm help chatexplains one command.- When a newer version is out,
z1llmsays so when a chat opens or after a command (it checks every 15 minutes at most). Runz1llm update: it updates whichever you installed,z1llmorzero1llm(before 0.2.1:npm install -gwith that name). SetZ1LLM_NO_UPDATE_CHECK=1to turn that off.