Zed
Zed is set up with two providers: anthropic_compatible for Claude and openai_compatible for the other models. They share a key.
Setup
- Open settings: Ctrl/Cmd+Shift+P →
zed: open settings. - Add the
language_modelsblock:
json (settings.json)
{
"language_models": {
"anthropic_compatible": {
"codexkey-claude": {
"api_url": "https://api.codexkey.online",
"available_models": [
{
"name": "claude-sonnet-5",
"display_name": "Claude Sonnet 5",
"max_tokens": 1000000,
"max_output_tokens": 32000,
"capabilities": { "tools": true, "images": true, "prompt_caching": true }
}
]
}
},
"openai_compatible": {
"codexkey": {
"api_url": "https://api.codexkey.online/v1",
"available_models": [
{
"name": "gpt-6-astra",
"display_name": "GPT-6 Astra",
"max_tokens": 1000000,
"max_completion_tokens": 32000,
"capabilities": { "tools": true, "images": true, "prompt_cache_key": true }
}
]
}
}
}
}- Set the key:
agent: open settings→ LLM Providers → the provider you need → paste the key. Or use the environment variablesCODEXKEY_CLAUDE_API_KEYandCODEXKEY_API_KEY. - Open the agent panel (Ctrl/Cmd+?) and pick a model at the bottom.
Important: The address for Claude is written without /v1. Do not delete the capabilities block: without "tools": true the agent will not be able to read or edit files.