Zed is a lightweight code editor optimized for speed and real-time collaboration, designed to work seamlessly with both developers and AI.
Agent Panel Settings (Recommended)
- Open Zed and run:
agent: open settings - Select
OpenAI API Compatibleas the provider - Paste your API key into the provider UI
- Zed securely stores your API key using your OS credential storage (not in plain text in
settings.json).
Manual Configuration (Optional)
If you want to define provider metadata manually:
- Open settings file:
zed: open settings file - Default location:
~/.config/zed/settings.json - For project-specific overrides: use
.zed/settings.jsonin your project root.
Required Configuration Fields
Add your provider under language_models.openai_compatible:
api_url:https://api.rygen.io/v1available_models[0].name:your-model-name
This ensures Zed can connect to your OpenAI-compatible endpoint and list the model correctly.
Example Configuration
{
"language_models": {
"openai_compatible": {
"RYGEN": {
"api_url": "https://api.rygen.io/v1",
"available_models": [
{
"name": "your-model-name",
"display_name": "Rygen Model",
"max_tokens": 128000,
"capabilities": {
"tools": true,
"images": false,
"parallel_tool_calls": false,
"prompt_cache_key": false
}
}
]
}
}
}
}
