Open-source AI coding agent for the terminal
Multi-provider, local models, MCP support, sub-agents. Live model switching across 27 LLM providers. No lock-in.
One command. Requires Bun (auto-installed if missing).
curl -fsSL https://raw.githubusercontent.com/zor-ai/zor/main/install.sh | sh
irm https://raw.githubusercontent.com/zor-ai/zor/main/install.ps1 | iex
brew install zor-code
npm install -g zor-code
docker run -it ghcr.io/zor-ai/zor-code
Set your API key and go.
# Set your key. Choose any provider.
zor-code keys set opencode <your-api-key>
# Launch the TUI
zor-code
Everything you need to ship code from the terminal.
Anthropic, OpenAI, Google, DeepSeek, OpenRouter, Groq, Mistral, xAI, Together, Perplexity, Cohere, Cerebras, NVIDIA, HuggingFace, and more.
Use your own API keys. No lock-in to any platform. Switch providers mid-chat.
Ollama integration for fully offline use. Auto-detects running Ollama instances.
Connect to MCP servers for custom tools. stdio and SSE transports. SSRF protection built in.
Fork conversations like Git. Try alternative approaches without losing context.
Spawn explorer, reviewer, debugger, builder as isolated agents for parallel work.
Auto / confirm / plan / deny modes for destructive operations. Full control.
Ink-based TUI with cursor editing, history, tab-completion, checkpoints, and status bar.
Control everything without leaving the terminal. Type /help inside the TUI to see them all.
/model <p/m> Switch model mid-chat
/use Interactive model picker
/keys list|set|remove Manage API keys
/effort off|low|...|high Change thinking level
/fork Branch conversation
/compact Force context compaction
/resume [id] Session picker
/context Token and context stats
/init Guided setup wizard
/status Active model, tools, connections
/help Show all commands