Zed
Connect Zed's Agent panel and edit predictions to HeyEly as an OpenAI-compatible provider.
Zed configures custom OpenAI-compatible gateways under language_ in settings.json. Because Zed defaults to Chat Completions, point api_url at https://heyely.si/v1.
Set up
- Generate an API key in Developers.
- Open Zed's settings via the command palette action
zed: open settings file(~/on macOS/Linux, or. config/ zed/ settings. json %APPDATA%\on Windows).Zed\ settings. json - Add the HeyEly provider block:
{
"language_models": {
"openai_compatible": {
"HeyEly": {
"api_url": "https://heyely.si/v1",
"available_models": [
{
"name": "anthropic/claude-sonnet-5.5",
"display_name": "Claude Sonnet 5.5",
"max_tokens": 1000000,
"max_output_tokens": 128000,
"capabilities": {
"tools": true,
"images": true,
"parallel_tool_calls": false,
"prompt_cache_key": false
}
}
]
}
}
}
}
- Open the Agent panel settings, select HeyEly, and paste your key. Zed stores it securely in your OS keychain rather than in
settings.json.
Here, max_tokens defines the context budget Zed targets and max_output_tokens sets the reply ceiling. Match the figures on Models or dial them down if you want Zed to summarize sooner and spend less.
Prefer an environment variable over the keychain? Export HEYELY_API_KEY (the uppercase provider name plus _API_KEY) and launch Zed from that terminal with zed .. Launching Zed from the Dock or Start menu skips terminal exports.
Verify
Open Zed's Agent panel, pick your model under HeyEly, and send a short prompt. Once the reply streams back, check Credit and usage to confirm the request shows at the top of Spend under your selected model.
Pick a model
- Add an entry inside
available_modelsfor every model you want, settingnameto the exact catalog ID. toolsdefaults to enabled; flip it tofalsefor models that do not advertisetoolssupport.- To route a specific model to
POST /v1/responses, add"chat_inside itscompletions": false capabilitiesobject. - Zed's OpenAI-compatible edit predictions call
POST /v1/completions, which HeyEly serves. Configureedit_predictionswithapi_urlpointed athttps:/. This endpoint requires/ heyely. si/ v1/ completions promptand a compatible model supporting Zed's prompt structure. See Zed's edit prediction settings (opens in a new tab).
Troubleshooting
| You see | Cause | Fix |
|---|---|---|
| Model missing from picker | Invalid JSON syntax or typo in name | Fix the JSON and copy the exact catalog ID from Models |
| Zed repeatedly prompts for a key | System keychain write failed | Export HEYELY_API_KEY and start Zed from that terminal |
401 invalid_api_key | Stale key saved in provider settings | Clear the saved key and re-enter your current key |
404 model_not_found | name differs from HeyEly's catalog | Copy the exact ID from the Models page |
| Tool execution fails | Selected model lacks tool support | Set "tools": false in its capabilities |
402 insufficient_credit | No credit available on the account | Add credit |