Use Zed with Shannon
Add Shannon as an OpenAI-compatible provider in Zed's settings and the Zed Agent, Inline Assistant and commit messages run on Shannon models.
- From the Zed docs, Nov 7, 2026
- OpenAI Chat Completions
- About 3 min
About Zed
Zed is an open-source code editor with built-in collaboration and AI tools. Its Agent Panel runs an agent that reads and edits files and runs commands, and the Inline Assistant rewrites a selection in place. Added as an OpenAI-compatible provider, Shannon models serve the agent, the Inline Assistant and commit messages.
What you need
- A Shannon API key
- Keys & usage
- Base URL
-
https://api.shannon-ai.com/v1Endpoint:/v1/chat/completions - Every snippet below follows your choice.
Set it up
-
Add Shannon as a provider
Run
agent: open settings, find Add Provider under LLM Providers, and fill in the provider name, API URL, model ID and context window. Or put the same provider insettings.jsonunderlanguage_models.openai_compatible:settings.json{ "language_models": { "openai_compatible": { "shannon": { "api_url": "https://api.shannon-ai.com/v1", "available_models": [ { "name": "Kimi-K3-uncensored-NVFP4", "display_name": "Kimi-K3-uncensored-NVFP4", "max_tokens": 1022976, "max_output_tokens": 262144, "capabilities": { "tools": true, "images": true, "parallel_tool_calls": false, "prompt_cache_key": false, "chat_completions": true, "interleaved_reasoning": false, "max_tokens_parameter": false } } ] } } } } -
Give Zed the key
Enter the key in the provider's settings, where Zed keeps it in the system keychain, or set the variable Zed derives from the provider id
shannon. Keys do not belong insettings.json.Shellexport SHANNON_API_KEY=YOUR_API_KEY -
Pick the model in the Agent Panel
Open the Agent Panel and choose the Shannon model in its model menu. The Inline Assistant and commit message generation can use it too.
Check that it works
Send: Read this project's README and summarize it.
You should see: The Zed Agent reads the file with its tools and answers with the Shannon model.
Models that fit Zed
Every id below meets what Zed needs. The first one is the default in the snippets.
| Model id | Context window | Max output | Image input |
|---|---|---|---|
Kimi-K3-uncensored-NVFP4 | 1,022,976 | 262,144 | Yes |
Kimi-K3.1-Pro-uncensored-NVFP4 | 1,022,976 | 262,144 | Yes |
MiMo-V2.6-Pro-uncensored-NVFP4 | 1,022,976 | 131,072 | Yes |
Kimi-K3-uncensored-3BIT-REAP | 225,280 | 225,280 | Yes |
shannon-3 | 196,608 | 65,536 | Yes |
Model settings
Zed asks for these values. They follow the model you picked.
| Setting | Value | Why |
|---|---|---|
max_tokens | 1022976 | The model's context window. |
max_output_tokens | 262144 | The longest answer. |
Good to know
- These settings serve the Zed Agent and other Zed-owned features. External agents and terminal threads keep their own model settings.
- Set
imagestotrueonly for models that read images; Zed's default isfalse. - Zed also has
language_models.anthropic_compatible; with Shannon,api_urlishttps://api.shannon-ai.com. For the Responses API, setcapabilities.chat_completionstofalse. - An environment variable takes precedence over the key in the keychain. Unset it and restart Zed to switch back.
Tips
- Picking a model in the Agent Panel's selector saves it as
agent.default_model;agent.inline_assistant_model,agent.commit_message_modelandagent.subagent_modelgive other features their own model. cmd-alt-/(ctrl-alt-/on Linux and Windows) opens the model selector, andcmd-n(ctrl-n) starts a new thread.- Zed uses the first project instructions file it finds, among
.rules,.cursorrules,AGENTS.md,CLAUDE.mdand others; personal rules go in~/.config/zed/AGENTS.md. - Switch the agent's profile to Ask for read-only questions about the code, or to Minimal for chat without project tools.
- Type
@in the message editor to add files, symbols, diagnostics, earlier threads or a URL to fetch.
Troubleshooting
| Symptom | Cause | Fix |
|---|---|---|
| The provider asks for a key you already exported | The variable name follows the provider id: shannon reads SHANNON_API_KEY, my-gateway reads MY_GATEWAY_API_KEY. | Match the variable to the provider id, or enter the key in the provider settings. |
404 Not Found | api_url lacks /v1. | Use https://api.shannon-ai.com/v1. |
| Images are ignored | capabilities.images is false. | Set it to true for a model that reads images. |
401 Unauthorized | The key is missing, mistyped or rotated. | Copy the key again from Keys & usage; it starts with sk-. |
context_length_exceeded / "prompt is too long" | The conversation is longer than the model's window. | Start a new chat, let the tool compact it, or pick a model with a larger window. |
insufficient_quota | Your balance cannot pay for the request. | Top up or change plan; the request is not retried by itself. |
Questions
Does Zed work with Shannon?
Yes, as an OpenAI-compatible provider with api_url set to https://api.shannon-ai.com/v1.
Where does Zed keep my key?
In the system keychain when you enter it in the provider settings, or in the SHANNON_API_KEY environment variable. Not in settings.json.