Skip to main content
In Zed you can set up an OpenAI-compatible provider with a custom api_url in settings.json.
settings.json
{
  "language_models": {
    "openai": {
      "api_url": "https://api.ethereal.llc/v1",
      "available_models": [
        { "name": "claude-sonnet-4-6", "max_tokens": 200000 },
        { "name": "claude-opus-4-8", "max_tokens": 200000 },
        { "name": "claude-haiku-4-5", "max_tokens": 200000 }
      ]
    }
  }
}
Set the eth-... key in the OpenAI provider settings (Assistant → API key) or via the OPENAI_API_KEY variable.
The max_tokens field here is a window guideline; the model sets the actual limits.