Zed AI: the agent, pricing, Claude Code and Codex, and SSH
Zed's AI as of December 2026: the Zed Agent and its models, Pro and Business prices, Claude Code, Codex and Gemini CLI over ACP, tool permissions, and SSH.
Zed is a code editor with AI in three forms: its own agent (the Zed Agent) in the Agent Panel, outside agents such as Claude Agent, Codex and Gemini CLI plugged in over ACP, and agent CLIs run as terminal threads. The editor is free, and so is AI with your own API keys, a local model through Ollama, or an outside agent on its own sign-in. Zed’s hosted models come with Pro at $10 a month ($5 of tokens included, then list price plus 10%) or Business at $30 a seat. Over SSH, the editor stays on your laptop and the project, terminal and the agent’s commands run on the server. As of December 1, 2026 the current stable release is v1.30.2, from November 25.
Three ways to run an agent in Zed
Zed’s agent docs split its AI into three paths, and which one you pick decides who bills you and whose settings apply:
| Runs in | Models and sign-in | |
|---|---|---|
Zed Agent | Agent Panel | Zed’s hosted models, your API keys, a ChatGPT sign-in or a local model, set in Zed |
External Agents | Agent Panel, over ACP | The agent’s own: Claude Agent, Codex, Gemini CLI, OpenCode, Copilot, Cursor, Pi, Poolside |
Terminal Threads | A terminal Zed tracks as a thread | The CLI’s own, exactly as in any terminal |
Open a new thread with agent: new thread from the command palette and pick the agent from the thread menu. The Zed Agent has three built-in profiles: Write (reads, edits and runs commands), Ask (read-only questions) and Minimal (no project tools). Its tools include read_file, grep, edit_file, delete_path, fetch, terminal (a new shell per call) and spawn_agent for subagents. Changes land in your files and you accept or reject them hunk by hunk. Some panel features, steering a running turn among them, work only with the Zed Agent.
Zed pricing: Personal, Pro and Business
From Zed’s pricing page and plan docs, as read on December 1, 2026:
- Personal, $0. “Unlimited use with your API keys or external agents like Claude Agent, Codex CLI, and more.” Zed’s hosted models and edit predictions are not included.
- Pro, $10 a month. Unlimited edit predictions and $5 of hosted-model tokens each month; usage past that is billed at “API list price +10%”. A spend limit defaults to $10 of extra usage on top of the subscription; set it to $0 to cap the month at $10.
- Business, $30 per seat a month. Org-wide model policies, data controls and an admin-set spend limit, with no bundled credit and no trial.
The 14-day Pro trial needs no card, includes $5 of GPT-6 Luna (the only hosted model it unlocks) and unlimited edit predictions, and falls back to the free plan when it ends. Pro and Business unlock every hosted model. A sample of Zed’s prices per million tokens, input then output:
| Model | Zed price, input / output |
|---|---|
Claude Fable 5.2 | $8.80 / $44.00 |
Claude Opus 5.5 | $4.40 / $22.00 |
Claude Sonnet 5.5 | $2.20 / $11.00 |
GPT-6.2 Astra | $8.80 / $44.00 |
GPT-6 Luna | $0.11 / $0.55 |
Gemini 4 Carbon | $4.40 / $22.00 |
Each is the provider’s own rate plus 10%, so the same model on your own key is billed by the provider at its own rate. Zed says it does not keep prompts or code sent to hosted models by default, and its contracts with providers require zero retention, except for the models Anthropic designates as Covered Models (Claude Fable among them), whose prompts and outputs Anthropic keeps for at least 30 days, on your own key as well (AI privacy).
Your own API key, a ChatGPT sign-in, or Ollama
For the Zed Agent, add a key under Settings → AI → LLM Providers (or run agent: open settings). Per the API access docs, “Keys saved through Zed are stored in the system keychain, not in settings.json,” so they do not end up in a dotfiles repo. Zed also reads the usual variables, ANTHROPIC_API_KEY, OPENAI_API_KEY, GEMINI_API_KEY, DEEPSEEK_API_KEY, XAI_API_KEY and others, and a non-empty variable wins over the keychain: to stop using one, unset it and restart Zed. On Linux the keychain is the desktop’s secret service (gnome-keyring, KWallet or KeePassXC, per the Linux docs).
A ChatGPT Plus or Pro plan works as a provider for the Zed Agent: “Sign in with OpenAI in Zed; no separate OpenAI API key is required.” Zed has no such provider for a Claude plan, and points you to Claude Agent or the Claude Code CLI instead (below).
For a local model, the local model docs have you pull one and start Ollama; Zed finds the models it has pulled and lists them in the model menu:
ollama pull mistral
ollama serveCopiedZed asks Ollama for a 4,096-token context by default, which is small for agent work. Raise it with context_window under language_models.ollama in Zed’s settings, or max_tokens per model. LM Studio and llama.cpp are set up the same way.
Claude Code, Codex and Gemini CLI in Zed (ACP)
Outside agents connect through the Agent Client Protocol, which Zed created (what ACP is). Zed runs the agent as its own process and shows its work in the Agent Panel. To add one, run zed: acp registry, or open Agent Settings, go to External Agents, click Add Agent and choose Install from Registry. Agents installed as Zed extensions are deprecated and are moved to their registry entries.
Each agent keeps its own sign-in, models and bill; in the docs’ words, “Billing, legal terms, retention, and data handling are between you and the agent provider.” A key you gave the Zed Agent does not carry over, with one exception: Gemini CLI is handed Zed’s Google AI key as GEMINI_API_KEY when it has none of its own.
- Claude Agent (Claude Code’s agent over ACP): type
/loginin a thread to sign in with an API key or your Claude Code login. - Codex: its own sign-in, a ChatGPT login or an OpenAI or Codex API key.
- Gemini CLI: a Google sign-in, Vertex AI, or a key in
GEMINI_API_KEY.
Any other agent that speaks ACP can be added by hand under Add Custom Agent, which writes an entry like this one from the docs into your settings:
{
"agent_servers": {
"my-agent": {
"type": "custom",
"command": "node",
"args": ["~/projects/agent/index.js", "--acp"],
"env": {}
}
}
}CopiedMCP servers configured in Zed may be passed to the agent, Zed’s own skills and profiles are not, and dev: open acp logs shows the messages between Zed and the agent when one misbehaves.
Using a Claude plan. In May 2026 Zed wrote that Anthropic planned to move ACP usage from subscription limits to a monthly Agent SDK credit; its June 16 update says “Anthropic has told subscribers that the billing change described below is not taking effect yet.” Anthropic’s help page says “Claude Agent SDK, claude -p, and third-party app usage still draw from your subscription limits,” and its Claude Code terms page says OAuth authentication “is designed to support ordinary use of Claude Code and other native Anthropic applications.” How those sentences apply to other tools is set out in using a Claude subscription in other tools.
Terminal Threads are the other route: the real claude, codex, opencode or pi CLI running in a terminal that Zed files as a thread, with its own login and config untouched. Set "agent": { "terminal_init_command": "claude" } to start one automatically.
Tool permissions and “always allow”
With the default fallback of confirm, the Zed Agent asks before it uses a tool: running a terminal command, deleting or moving a path, fetching a URL, calling an MCP tool. It does not ask before editing files inside the project; you review those edits afterwards. It does ask before writing to .zed/, Zed’s global config folder, .agents/skills/, or a file reached through a symlink out of the project. The prompt offers Allow once, Deny once, Always for <tool>, which allows that tool everywhere, and Always for <pattern>, which saves a narrower rule when Zed can extract a safe one.
Those choices are saved under agent.tool_permissions in settings.json (Zed v0.224.0 and later; earlier versions had a single always_allow_tool_actions switch). Rules are regular expressions, case-insensitive by default, and a deny beats a confirm, which beats an allow. Chained commands such as a && b are split and each part is checked. Trimmed from the tool permissions docs:
{
"agent": {
"tool_permissions": {
"tools": {
"terminal": {
"default": "confirm",
"always_allow": [
{ "pattern": "^npm\\s+(install|test|run|build)" },
{ "pattern": "^git\\s+(status|log|diff|branch)" }
],
"always_deny": [
{ "pattern": "sudo\\s+rm" }
],
"always_confirm": [
{ "pattern": "sudo\\s" },
{ "pattern": "git\\s+push" }
]
}
}
}
}
}CopiedThe docs warn: “Test carefully—a typo in a deny pattern blocks legitimate actions.” Setting "default": "allow" directly under tool_permissions skips the prompt for most tools; your deny and confirm rules, edits to Zed’s settings folders and the built-in rules still stop it. The built-in rules cannot be turned off and block recursive deletion of /, your home directory, the current directory and its parent. These rules are the Zed Agent’s; for an outside agent, the docs say Zed’s permissions “may apply” to what ACP forwards and the agent’s own permission settings govern the rest.
On top of the prompts, the Zed Agent runs its terminal and fetch tools in an operating-system sandbox: commands can write inside the project but not to .git, and get no network until you approve a host. On Linux this needs a non-setuid bwrap on PATH, and if Bubblewrap cannot start, Zed may run the command unsandboxed with a warning in the tool output (the Codex bubblewrap guide covers the usual causes). The sandbox covers only the Zed Agent, not outside agents or terminal threads. The docs say nothing about remote projects; in v1.30.2’s source, the check that turns the sandbox on requires a local project.
Zed remote development over SSH: where the agent runs
Zed’s remote development keeps the editor on your laptop and puts the project on a server: “The source code, language servers, tasks, and the terminal all run on the remote server.” Zed uses the ssh on your path, so your ~/.ssh/config applies, and on first connect it installs a matching server binary in ~/.zed_server on the remote:
zed ssh://you@your-server/home/you/projectCopiedFor the AI, the split matters:
- The Zed Agent thinks on your laptop and acts on the server. The docs list talking to language models among the jobs of the Zed on your laptop, and Zed reads your API keys from the laptop’s keychain and environment, not the server’s. Its file edits and terminal commands happen in the project on the server, with your SSH user’s rights.
- Likely no sandbox there. Going by v1.30.2’s source (above), the sandbox is not used for a remote project, which leaves the agent’s commands on the server gated by the permission prompts and rules. Keep
terminalonconfirm, and connect as an ordinary user, never root. - Outside agents run on the server. Since September 2025 “Gemini CLI, Claude Code, and custom external agents can now be used in SSH projects” (pull request 37725), a change that added automatic installation of the first two. The docs say outside agents “may read credentials locally, remotely, or through their own sign-in flow,” so check each agent’s sign-in after connecting to a new server.
- A model on the server is not on your laptop. Ollama’s
localhost:11434means your laptop to Zed. One way to reach one running on the server combines two documented settings, untested here: aport_forwardsentry on the connection brings the server’s port to your laptop (bound tolocalhostby default), where Zed’s Ollama provider looks by default. It fails if Ollama is also running on your laptop on the same port:
{
"ssh_connections": [
{
"host": "your-server",
"projects": [{ "paths": ["~/project"] }],
"port_forwards": [{ "local_port": 11434, "remote_port": 11434 }]
}
]
}CopiedZed’s docs do not say whether a thread keeps working after the laptop disconnects; an agent that must carry on with the lid closed is surer as a CLI in tmux on the server. How the Claude and ChatGPT desktop apps handle the same split is in Claude and Codex desktop apps over SSH.
Current version and install
On Zed’s GitHub releases, v1.30.2 (November 25, 2026) is the latest stable release; its notes include a fix for always_confirm rules on the agent’s edit_file and write_file tools, which until then did not prompt for files inside the project, so a confirm rule on project files (the docs’ example guards .github/workflows/) needs this release. The preview channel is at v1.31.0-pre. On Linux the install script is:
curl -f https://zed.dev/install.sh | shCopiedFor the preview channel instead:
curl -f https://zed.dev/install.sh | ZED_CHANNEL=preview shCopiedZed is a desktop app; on a server you only need the SSH access above. For agents that live entirely in a terminal, the Claude Code alternatives guide compares them, and Claude Code in VS Code covers the same agent in the other editor.