# Agent Tools Overview

BeeRoute is compatible with three official API formats: **OpenAI** (Chat Completions / Responses), **Anthropic** (Messages), and **Google Gemini**. Most AI coding tools and agent tools can be connected by filling in just three things: the **API URL**, the **API key**, and the **model name**.

Every tutorial in this section has been checked against each tool's official documentation as of November 2026. Tools change quickly. If the interface differs from the tutorial, follow the tool's official documentation, or contact us so we can update the tutorial.

## 1. Get an API Key

1. Log in to [BeeRoute](https://beeroute.ai) and make sure your account balance is greater than 0.
2. Open the [API Keys](https://beeroute.ai/keys) page, click **Create API Key**, choose the **Group** according to the table below, then copy the generated key (it starts with `sk-`).

| Tool | Group | Notes |
| :--- | :--- | :--- |
| Claude Code (terminal / VS Code / JetBrains) | `ClaudeCode` | Dedicated to Claude Code, lower prices, Claude models only |
| Codex (CLI / IDE extension / ChatGPT desktop app) | `CodeX` | Dedicated to Codex, lower prices, includes GPT models such as `gpt-6.2-sol` |
| All other tools | `default` | Supports all models |

!> `ClaudeCode` and `CodeX` are dedicated groups and can only be used in their corresponding clients. If you use a key from either group in OpenCode, Cline, OpenClaw, or other tools, requests may be rejected (403). Use a `default` group key for all other tools.

## 2. API URL Quick Reference

Tools use different names for the API URL (Base URL, API address, Endpoint, API URL, and so on). Fill it in according to the API format the tool uses:

| API format | URL to enter | Typical tools |
| :--- | :--- | :--- |
| OpenAI Chat Completions ("OpenAI-compatible") | `https://beeroute.ai/v1` | OpenCode, Cline, Kilo Code, OpenClaw, Hermes, Pi, Trae, Qoder, DeepSeek Harness, etc. |
| OpenAI Responses | `https://beeroute.ai/v1` | Codex (supports only this format) |
| Anthropic Messages | `https://beeroute.ai` | Claude Code |
| Google Gemini | `https://beeroute.ai` | The official Google SDK (google-genai); see [Gemini Native](coding/gemini.md) |

- Tools automatically append paths such as `/chat/completions`, `/responses`, or `/v1/messages` to the URL, so you usually should **not** enter the full path.
- A few tools let you enter the full URL instead (for example, Trae with the **Full URL** switch turned on, or WorkBuddy with the **Custom protocol** toggle turned on). In that case, the full Chat Completions URL is `https://beeroute.ai/v1/chat/completions`.
- The "Anthropic-compatible" mode of some tools requires the URL to include `/v1`. Follow the corresponding tutorial.

## 3. Model Names

The model name must match the model ID on BeeRoute **exactly** (case-sensitive). You can view and copy all model IDs on the [Pricing](https://beeroute.ai/modellist/) page. Common coding models:

| Family | Example model IDs |
| :--- | :--- |
| Claude | `claude-opus-5-5`, `claude-sonnet-5-5`, `claude-haiku-5-5` |
| GPT | `gpt-6.2-sol` |
| Gemini | `gemini-4-neon`, `gemini-4-hydrogen` |
| Chinese models | `deepseek-flash`, `kimi-k3.1-pro`, `glm-5.3`, `qwen4-max` |

?> A single `default` group key can call all the models in the table above. In "OpenAI-compatible" tools, Claude, Gemini, and other models can also be called through the Chat Completions format; BeeRoute converts the requests automatically.

## 4. Supported Tools

| Tool | Type | API format | Tutorial |
| :--- | :--- | :--- | :--- |
| Claude Code | Terminal / IDE coding agent | Anthropic Messages | [View](agent/claude-code.md) |
| Codex | Terminal / IDE / desktop coding agent | OpenAI Responses | [View](agent/codex.md) |
| OpenCode | Terminal coding agent | Chat Completions / Responses / Anthropic | [View](agent/opencode.md) |
| OpenClaw | Personal AI assistant gateway | Chat Completions / Responses / Anthropic | [View](agent/openclaw.md) |
| Hermes Agent | Terminal / chat app agent | Chat Completions / Responses / Anthropic | [View](agent/hermes.md) |
| Pi | Minimal, extensible coding agent | Chat Completions / Responses / Anthropic / Gemini | [View](agent/pi.md) |
| Cline | VS Code / JetBrains extension, CLI | Chat Completions | [View](agent/cline.md) |
| Kilo Code | VS Code extension, CLI | Chat Completions / Responses / Anthropic | [View](agent/kilo-code.md) |
| Cursor | AI editor | Chat Completions (limited) | [View](agent/cursor.md) |
| Trae | AI editor | Chat Completions / Anthropic | [View](agent/trae.md) |
| Qoder | Desktop app | Chat Completions / Responses | [View](agent/qoder.md) |
| WorkBuddy | Desktop agent | Chat Completions | [View](agent/workbuddy.md) |
| DeepSeek Harness | Web / desktop agent | Chat Completions / Responses / Anthropic / Gemini | [View](agent/deepseek-harness.md) |
| Reasonix | Terminal coding agent | Chat Completions / Anthropic | [View](agent/reasonix.md) |

## 5. Test with curl First

Before configuring a tool, you can run the command below to confirm that your key and network work (use a `default` group key and replace `sk-xxx` with your key):

```bash
curl https://beeroute.ai/v1/chat/completions \
  -H "Authorization: Bearer sk-xxx" \
  -H "Content-Type: application/json" \
  -d '{"model": "gpt-6.2-sol", "messages": [{"role": "user", "content": "Hello"}]}'
```

If the response is JSON containing a `choices` field, the API is working.

## 6. Common Errors

| Symptom | Cause | Fix |
| :--- | :--- | :--- |
| `401` / `Invalid token` | The key is wrong, has extra spaces, or has been deleted | Copy the key again; check whether an old environment variable is overriding it |
| `403`, or request rejected | The key's group does not match the tool | Use the `ClaudeCode` group for Claude Code, the `CodeX` group for Codex, and the `default` group for other tools |
| `No available channel for model xxx under group xxx` | The model name is wrong, or the group does not include this model | Check the model ID and its available groups on the [Pricing](https://beeroute.ai/modellist/) page |
| Error saying quota pre-consume failed / insufficient balance | Insufficient balance | Top up on the [Wallet](https://beeroute.ai/wallet) page |
| `404` | Wrong API URL (extra or missing `/v1`) | Compare with the API URL quick reference above |
| Connection timeout | Network or proxy issue | Turn off your proxy and retry, or check the tool's proxy settings |
