Zed

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)

  1. Open Zed and run: agent: open settings
  2. Select OpenAI API Compatible as the provider
  3. Paste your API key into the provider UI
  4. 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.json in your project root.

Required Configuration Fields

Add your provider under language_models.openai_compatible:

  • api_url: https://api.rygen.io/v1
  • available_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
            }
          }
        ]
      }
    }
  }
}

1.2 References