Zed's assistant supports OpenAI-compatible providers as of v0.156+.
Config
Open Zed's settings (Cmd+,) and add:
{
"language_models": {
"openai": {
"version": "1",
"api_url": "https://northerninference.ca/v1",
"available_models": [
{
"provider": "openai",
"name": "anthropic/claude-sonnet-4.5",
"display_name": "Claude Sonnet 4.5 (NI)",
"max_tokens": 200000
},
{
"provider": "openai",
"name": "openai/gpt-4o",
"display_name": "GPT-4o (NI)",
"max_tokens": 128000
}
]
}
},
"assistant": {
"default_model": {
"provider": "openai",
"model": "anthropic/claude-sonnet-4.5"
}
}
}
Then run Zed: assistant: sign in from the command palette and paste your ni_live_… key when prompted.
Caveats
- Zed doesn't expose an
extra_bodypass-through. To pin a privacy tier,
issue an API key from NI's portal with a Default privacy tier set.
- Zed's
max_tokenshere is the context window, not the output cap.