Zed

Use Foza models with the Zed editor

Setup#

Zed reads assistant model configuration from settings.json. Keep the provider config small at first, then add more models once one model works.

1

Open Zed Settings

Open Settings (Cmd+,) and navigate to the Assistant section.

2

Configure the provider

Edit your settings.json to add a custom OpenAI-compatible provider:

{
  "language_models": {
    "openai": {
      "api_url": "https://api.foza.ai/v1",
      "available_models": [
        {
          "name": "anthropic/claude-sonnet-4.6",
          "display_name": "Claude Sonnet 4.6",
          "max_tokens": 8192
        },
        {
          "name": "openai/gpt-4o",
          "display_name": "GPT-4o",
          "max_tokens": 4096
        }
      ]
    }
  }
}
3

Set API key

Set the API key via the command palette: Zed → Set OpenAI API Key and enter sk-foza-xxxxx.

4

Select a model

Open the Assistant panel and select your Foza model from the model dropdown.

5

Run a small test

Ask the assistant to summarize the active file. If it works, ask it to propose a patch before applying changes.

Model tips#

  • The name field should match the Foza model slug exactly.
  • display_name is only the label shown in Zed.
  • Increase max_tokens for larger refactors.

Add as many models as you need in the available_models array — any model subscribed to your key will work.