MIT License 27 Providers Bun TypeScript

Zor Code

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.

Install

One command. Requires Bun (auto-installed if missing).

macOS / Linux
curl -fsSL https://raw.githubusercontent.com/zor-ai/zor/main/install.sh | sh
Windows PowerShell
irm https://raw.githubusercontent.com/zor-ai/zor/main/install.ps1 | iex
Homebrew
brew install zor-code
npm
npm install -g zor-code
Docker
docker run -it ghcr.io/zor-ai/zor-code

Quick start

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

Features

Everything you need to ship code from the terminal.

27 Providers

Anthropic, OpenAI, Google, DeepSeek, OpenRouter, Groq, Mistral, xAI, Together, Perplexity, Cohere, Cerebras, NVIDIA, HuggingFace, and more.

Bring your own keys

Use your own API keys. No lock-in to any platform. Switch providers mid-chat.

Local models

Ollama integration for fully offline use. Auto-detects running Ollama instances.

MCP support

Connect to MCP servers for custom tools. stdio and SSE transports. SSRF protection built in.

Session branching

Fork conversations like Git. Try alternative approaches without losing context.

Sub-agents

Spawn explorer, reviewer, debugger, builder as isolated agents for parallel work.

Permission gate

Auto / confirm / plan / deny modes for destructive operations. Full control.

Rich terminal UI

Ink-based TUI with cursor editing, history, tab-completion, checkpoints, and status bar.

Slash Commands

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