Zed
settings.json only gets api_url. Set the key in Zed itself.
1. Open the settings file
text
~/.config/zed/settings.json2. Configure the connection
Check the example context/output settings against your selected provider in the catalog. Enter the API key in Zed’s interface, not in this file.
JSON
{
"language_models": {
"openai": {
"api_url": "https://api.closerouter.dev/v1",
"available_models": [
{
"name": "openai/gpt-5.4-mini",
"display_name": "GPT-5.4 Mini via CloseRouter",
"max_tokens": 128000
}
]
}
}
}Check the connection
Save the file and restart the application. Select the configured CloseRouter model. If it is missing or the key is rejected, check the file location, API address and key.