All docs

Zed with 6bee.ai

Zed’s agent accepts OpenAI-compatible providers. Add 6bee.ai in the provider settings, or directly in settings.json.

Before you start

  • A current version of Zed.
  • Create an account with a verified email address, add prepaid balance, then create a key on the console's API keys page. Keep the key secret.
  • Model IDs are listed in the console and returned by GET https://api.6bee.ai/v1/models. Replace <model id> with one of them.

Add the provider

Open the Agent Panel, open its settings, and under LLM Providers choose Add Provider → OpenAI Compatible. Enter:

Provider name
6bee
API URL
https://api.6bee.ai/v1
API key
<your key>. Zed stores it in the system keychain.
Model name
<model id>
Max tokens
The model’s context window.
Max output tokens
The model’s output cap.
Context
Input plus output up to the model’s window: 128K to 1M tokens, depending on the model.
Output
max_tokens up to the model’s output cap: 16,384 to 131,072, depending on the model. Larger values are lowered to the cap, not rejected. If omitted: 8,192 to 32,768.

The same thing in settings.json

The form writes this block. You can also edit it by hand. The numbers below are examples: use the caps of the model you chose.

settings.json
{
  "language_models": {
    "openai_compatible": {
      "6bee": {
        "api_url": "https://api.6bee.ai/v1",
        "available_models": [
          {
            "name": "<model id>",
            "display_name": "6bee",
            "max_tokens": 128000,
            "max_output_tokens": 16384
          }
        ]
      }
    }
  }
}

Check that it works

  1. Pick the 6bee model in the Agent Panel’s model menu.
  2. Send a short message.
  3. The request shows up in the console’s usage log.

Troubleshooting

HTTP 401
The key is missing or wrong. Copy it again from the console, without spaces or quotes.
Model not found
The model ID does not match. List the valid IDs with GET /v1/models or check the console.
HTTP 429
You are over a per-account limit (requests, input tokens or concurrency). The Retry-After header says how long to wait.
HTTP 400 on long sessions
The request no longer fits the model’s context window. Compact or clear the conversation, or switch to a model with a larger window.
Request rejected for balance
Each request first reserves its input plus max_tokens of output. Top up, or lower max_tokens.