Zed

Zed

Zed's assistant supports custom OpenAI-compatible providers through its settings file. Register LivRouter once, and its models become selectable in the Assistant panel.

Setup

  1. Open Zed's settings.json (command palette: zed: open settings).
  2. Add LivRouter as an OpenAI provider:
json
{  "language_models": {    "openai": {      "api_url": "https://api.livrouter.com/v1",      "available_models": [        {          "name": "glm-5.3",          "display_name": "GLM 5.3",          "max_tokens": 128000        },        {          "name": "claude-sonnet-4-6",          "display_name": "Claude Sonnet 4.6",          "max_tokens": 200000        }      ]    }  }}

Set each name to a current model ID from the model catalog, and max_tokens to that model's context window. Zed prompts for the API key the first time you use the provider — paste a LivRouter key from the API keys page.

Verify the setup

Open the Assistant panel, choose OpenAI as the provider, pick one of the models you registered, and send a prompt. The request appears in your LivRouter usage logs when routing works. Zed's settings schema evolves between releases; if a field is rejected, check Zed's current OpenAI settings docs for the field name.

Troubleshooting

  • 401 or unauthorized — re-enter the key from the API keys page via the provider's key prompt.
  • Model missing from the picker — the name must exactly match a catalog ID; re-copy it from the catalog.
  • Requests still go to OpenAI — confirm api_url is set under language_models.openai and the Assistant panel has OpenAI selected.

For the request format Zed sends, see the API quickstart.