# Zed > Add the gateway as a custom assistant provider in the Zed editor. _Source: https://aiprimetech.io/docs/guides/zed/ ยท Home > Docs > Integration guides_ Zed's assistant supports custom OpenAI-compatible endpoints, configured in `settings.json`. ## Configuration ```json { "language_models": { "openai": { "api_url": "https://aiprimetech.io/v1", "available_models": [ {"name": "claude-sonnet-4-6", "display_name": "Claude Sonnet 4.6", "max_tokens": 200000}, {"name": "claude-opus-4-8", "display_name": "Claude Opus 4.8", "max_tokens": 200000} ] } } } ``` 1. Open the command palette and choose **zed: open settings**. 2. Paste the block above, merging it with your existing settings. 3. Restart Zed, open the assistant panel, and enter your `sk-` key when prompted. 4. Select one of the models you declared. > Zed's settings schema changes between releases. If `language_models` is rejected, check Zed's own assistant configuration docs for the current key name โ€” the value to supply is always the same: base URL `https://aiprimetech.io/v1` plus your key. - [Chat Completions](https://aiprimetech.io/docs/api-reference/chat-completions/) โ€” The format Zed uses - [Base URLs](https://aiprimetech.io/docs/getting-started/base-urls/) โ€” Why /v1 is needed here --- _ClaudeAPIKey.dev is an independently operated, Anthropic-compatible API gateway. Not affiliated with Anthropic._