Skip to navigationSkip to main contentSkip to footerScaleway Docs HomepageAsk our AI
Ask our AI

Adding AI to the Zed IDE using Generative APIs

Zed is an IDE (Integrated Development Environment) including AI coding assistance support. Scaleway's Generative APIs support Zed AI code completion and more.

Before you start

To complete the following actions, you must have:

Configure custom endpoints and models

  1. Edit Zed settings located in settings.json, and add the following content to it:

    {
      "language_models": {
          "openai": {
          "api_url": "https://api.scaleway.ai/v1",
          "available_models": [
              {
                "name": "qwen3.5-397b-a17b",
                "display_name": "Qwen3.5 397B - Scaleway",
                "max_tokens": 250000
              },
              {
                "name": "qwen3.6-35b-a3b",
                "display_name": "Qwen3.6 35b - Scaleway",
                "max_tokens": 250000
              }
          ]
          }
      },
      "agent": {
        "default_profile": "write",
        "default_model": {
          "provider": "openai",
          "model": "qwen3.5-397b-a17b"
        },
        "thread_summary_model":{
          "provider": "openai",
          "model": "qwen3.6-35b-a3b"
        }
      }
    }

    This configuration will add a qwen3.5-397b-a17b Scaleway-hosted model available with the Zed openai provider, and use it as the default model. The smaller qwen3.6-35b-a3b model will be used to perform thread summaries when a thread reaches full context.

  2. Open AI Assistant configuration by either using the command palette and typing assistant: show configuration or clicking on the bottom right Assistant Panel button and then Assistant menu in top right and finally Configure.

  3. Scroll down to the OpenAI configuration, and paste your Scaleway secret key as API Key credentials.

    Note

    Your key will be deleted if you restart Zed. To store it permanently, you can set up your Scaleway secret key as OPENAI_API_KEY environment variable and restart Zed.

  4. Your setup is complete. If you open a new chat and select the Qwen3.5 397B - Scaleway model, you can send text and see the model using local tools to perform actions such as reading or editing files. You can review changes before they are applied and also add custom remote tools using Custom MCP Servers (External link). Additionally, you can use the Inline Assist (External link) feature when editing your code.

Still need help?

Create a support ticket
No Results