Zed setup
Add one block to Zed’s settings, paste your key, and use TokenMilo’s Claude and GPT in Zed’s agent panel.
Updated 2026-11-16
1. Get an API key
Sign up in the TokenMilo console, top up and create a key under API Keys.
2. Add the providers
Open settings (zed: open settings) and merge in:
{
"language_models": {
"anthropic_compatible": {
"tokenmilo": {
"api_url": "https://api.tokenmilo.com",
"available_models": [
{ "name": "claude-sonnet-5-5", "display_name": "Claude Sonnet 5.5", "max_tokens": 200000, "max_output_tokens": 32000,
"capabilities": { "tools": true, "images": true, "prompt_caching": true } },
{ "name": "claude-opus-5-5", "display_name": "Claude Opus 5.5", "max_tokens": 200000, "max_output_tokens": 32000,
"capabilities": { "tools": true, "images": true, "prompt_caching": true } }
]
}
},
"openai_compatible": {
"tokenmilogpt": {
"api_url": "https://api.tokenmilo.com/v1",
"available_models": [
{ "name": "gpt-6.1-sol", "display_name": "GPT-6.1 Sol", "max_tokens": 200000, "max_output_tokens": 32000 }
]
}
}
}
}Or use Agent panel → Settings → LLM Providers → Add Provider: Anthropic type with https://api.tokenmilo.com, OpenAI-compatible type with https://api.tokenmilo.com/v1.
3. Add your key
Under LLM Providers, paste your key for tokenmilo and tokenmilogpt.
4. Use it
Pick “Claude Sonnet 5.5” in the agent panel and start chatting. Requests show up in Usage Logs. See the model list for more IDs.
FAQ
Where does the API key go?
Not in settings.json. Paste it under Agent panel → Settings → LLM Providers (stored in the system keychain), or set TOKENMILO_API_KEY / TOKENMILOGPT_API_KEY.
Does the Anthropic-compatible URL need /v1?
No. Zed appends /v1/messages, so use https://api.tokenmilo.com. The OpenAI-compatible URL includes /v1.
Related guides
- Cursor setup — Add Claude and GPT models to Cursor with your own key.
- Cline setup (VS Code) — Configure the Cline coding agent with Claude via TokenMilo.
- Kilo Code setup — Add a TokenMilo custom provider to the Kilo Code agent.
- Roo Code setup (VS Code) — Use Claude 5.x and GPT-6 in Roo Code via the OpenAI Compatible provider.
- Continue setup (VS Code & JetBrains) — Configure Claude and GPT in Continue’s config.yaml.
- Trae custom model setup — Add Claude and GPT to the Trae IDE as custom models.
Need an API key?
Sign up at TokenMilo, top up, and create a key in the console in under a minute.