integrations/coding agent/Zed
ZD

Zed + AIgateway

Native editor with AI baked in — drop AIgateway into settings.json.

Zed is a fast, collaborative native editor. Its language_models.openai_compatible setting accepts any OpenAI-compatible endpoint, so AIgateway registers as a provider and every model shows up in the inline assistant and agent panel.

Zed homepage →
Setup

Three steps or fewer.

STEP 01

Edit Zed's settings.json

On macOS: Cmd+, opens settings. Add an openai_compatible block under language_models with AIgateway's base URL and the models you want in the picker.

{
  "language_models": {
    "openai_compatible": {
      "AIgateway": {
        "api_url": "https://api.aigateway.sh/v1",
        "available_models": [
          {
            "name": "anthropic/claude-opus-4.7",
            "display_name": "Claude Opus 4.7",
            "max_tokens": 200000
          },
          {
            "name": "openai/gpt-5.4",
            "display_name": "GPT-5.4",
            "max_tokens": 128000
          },
          {
            "name": "moonshot/kimi-k2.6",
            "display_name": "Kimi K2.6",
            "max_tokens": 262144
          }
        ]
      }
    }
  }
}
STEP 02

Paste the key

Zed prompts for the API key the first time you pick one of these models in the assistant. Use your AIgateway key (sk-aig-...). Stored in the OS keychain.

STEP 03

Pick a model in the assistant

Open the inline assistant (Cmd+K on a selection) or the agent panel, click the model switcher, and AIgateway models show up alongside the built-in providers.

Notes
  • Works with both the inline assistant and Zed's agent mode (tool-calling supported because AIgateway forwards the OpenAI schema).
  • You can list as many models as you want under available_models — each becomes a separate option in the picker.
  • For team use, every teammate adds their own AIgateway key locally. For single-seat-per-cap billing, issue sub-account keys from AIgateway.
More integrations

Same key. Every other tool.