> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getunbound.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Zed

> Connect Zed to the LLM Gateway

You need an [LLM Gateway key](https://docs.getunbound.ai/llm-gateway/keys.md#create-a-key).

## Setup

1. Add the gateway to Zed's `settings.json`. List each model or [alias](https://docs.getunbound.ai/llm-gateway/models.md#aliases) you want:

   ```json settings.json theme={null}
   {
     "language_models": {
       "openai_compatible": {
         "Unbound": {
           "api_url": "https://api.getunbound.ai/v1",
           "available_models": [
             { "name": "claude-sonnet-4-6", "display_name": "Claude Sonnet 4.6", "max_tokens": 200000 }
           ]
         }
       }
     }
   }
   ```

2. Set the key in your shell profile, or paste it into **Unbound** in the Agent Panel's settings:

   ```bash theme={null}
   export UNBOUND_API_KEY=<your-key>
   ```

## Check it works

Pick the model in the Agent Panel and send a message. In **LLM Gateway → Keys**, the key's **Last Used** updates.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.