Use Redline in Zed
Zed's Agent Panel supports an openai_compatible provider. Declare it in settings.json with the model list; the key is entered through the UI so it stays in the keychain.
An openai_compatible provider
In settings.json:
{
"language_models": {
"openai_compatible": {
"redline": {
"api_url": "https://redline-gateway.pages.dev/v1",
"available_models": [
{
"name": "deepseek/deepseek-chat-v3.1",
"display_name": "DeepSeek Chat v3.1 (Redline)",
"max_tokens": 163840
}
]
}
}
}
}
Add the key through Agent Settings, "Add Provider" (it is stored in your OS keychain, never in the settings file). Each model's capabilities.tools defaults to true; set it to false for a non-tool model. Zed's inline edit predictions need a legacy completions endpoint Redline does not serve, so use Redline for the Agent Panel chat and edits, not for edit predictions.