Zed Editor

Configure Zed's built-in AI features to use Chuizi.AI for inline code generation and chat with any model.

Prerequisites

Configuration

  1. Open Zed settings: Cmd+, (macOS) or via menu Zed > Settings
  2. Add the following to your settings.json:
config.json
json
{
  "language_models": {
    "openai": {
      "api_url": "https://api.chuizi.ai/v1",
      "api_key": "ck-your-key-here",
      "available_models": [
        {
          "name": "anthropic/claude-sonnet-4-6",
          "display_name": "Claude Sonnet 4.6",
          "max_tokens": 16000
        },
        {
          "name": "openai/gpt-4.1",
          "display_name": "GPT-4.1",
          "max_tokens": 32768
        },
        {
          "name": "deepseek/deepseek-chat",
          "display_name": "DeepSeek Chat",
          "max_tokens": 8192
        }
      ]
    }
  }
}

You can add any Chuizi.AI-supported model to the available_models array.

Next Steps