Connect AI coding tools
Connect coding assistants, IDE extensions, and workflow tools to TokenHub with the correct base URL and key.
TokenHub can be used from coding assistants, agent tools, and workflow platforms. The common pattern is to set the tool's custom provider base URL to TokenHub and use a TokenHub API key.
Before you connect
- Create a TokenHub API key for the tool.
- Confirm the protocol the tool requires:
- OpenAI-compatible tools use
https://router.chbcloud.com/v1. - Anthropic-compatible tools use
https://router.chbcloud.com. - Gemini-compatible tools use
https://router.chbcloud.comand Bearer authentication.
- OpenAI-compatible tools use
- Enter the API key in the tool's secret or credential field.
- Restart the tool after changing provider configuration.
- Run one short prompt and check the request in the TokenHub usage log.
Supported tool categories
| Category | Example tools | Typical configuration |
|---|---|---|
| Provider manager | CC Switch | Add a custom provider, set the base URL and key, then enable it for Claude Code, Claude Desktop, or Codex. |
| Terminal coding agent | Claude Code, Codex CLI, OpenCode, OpenClaw | Set the provider base URL, model, and API key environment variable. |
| IDE extension | VS Code + Cline, Dify, WorkBuddy, DeepSeek Harness | Add an OpenAI-compatible custom provider and set the TokenHub base URL and key. |
| Desktop AI client | Codex desktop | Configure the custom provider or use a compatible provider manager. |
Keep keys safe
Do not place the API key directly in a project file, repository, or shared screenshot. Prefer the tool's own secret manager or an environment variable. Use one key per tool so you can revoke it without affecting other integrations.
Switch models
After switching a model ID, call the model list API or the tool's model selector to confirm that the ID is available. If the tool caches a model list, refresh or restart it after changing providers.
Call models and check usage · Use the TokenHub console · TokenHub FAQ
Last updated on