Integrations

Integrations overview

Connect TokenHub to Claude Code, Codex, Cursor, Cline, Kilo Code, and other common agent tools.

TokenHub exposes OpenAI-compatible, Anthropic Claude Messages-compatible, and Gemini-compatible APIs. Any agent that lets you customize a Base URL and API key can usually connect to TokenHub.

Tools

Choose from developer agents, IDE extensions, and desktop clients. Each card opens a focused setup guide.

Configuration files first

Third-party agents often start background processes. A temporary export in one terminal can disappear in a new terminal, IDE window, or plugin host. Prefer the tool user config file or settings page, then keep temporary environment variables for debugging.

ToolRecommended locationWhat to store
Claude Code~/.claude/settings.json; optional ~/.claude.jsonModel plus Anthropic-compatible env; onboarding state and VS Code claudeCode.environmentVariables are optional.
Codex~/.codex/config.tomlTokenHub provider, model_providers.tokenhub, env_key, Base URL, and wire API.
Aider~/.aider.conf.yml or project .aider.conf.ymlDefault model and openai-api-base; keep the key in OPENAI_API_KEY or local secret storage.
OpenCode~/.config/opencode/opencode.json or project opencode.jsonCustom provider package @ai-sdk/openai-compatible, options.baseURL, TokenHub model, and the provider selected by /connect.
Qwen Code~/.qwen/settings.json or project .qwen/settings.jsonmodelProviders.openai, security.auth.selectedType = "openai", envKey, Base URL, and model.name.
IDE extensionsVS Code / JetBrains user settings or plugin settingsProvider, Base URL, API key, model slots, and permission settings.
Desktop clientsProvider or model settings pageOpenAI Compatible or Custom provider and manual model IDs.

Choose the compatible protocol

Start with the protocol supported by the tool, then choose the matching Base URL. Most IDE and desktop clients use OpenAI-compatible mode; Claude Code should use Anthropic Claude Messages-compatible mode; Gemini-native tools use Gemini-compatible mode.

Common values

Tool asks forTokenHub value
OpenAI-compatible Base URLhttps://us-api.tokenhub.com/v1
OpenAI Chat Completions test URLhttps://us-api.tokenhub.com/v1/chat/completions
OpenAI Responses test URLhttps://us-api.tokenhub.com/v1/responses
Anthropic Base URLhttps://us-api.tokenhub.com
Anthropic Messages test URLhttps://us-api.tokenhub.com/v1/messages
Gemini Base URLhttps://us-api.tokenhub.com
Gemini model list URLhttps://us-api.tokenhub.com/v1beta/models
API KeyA TokenHub workspace key, usually stored locally as TOKENHUB_API_KEY
Model IDA model name from the TokenHub model list

If a tool separates Host and Path, use https://us-api.tokenhub.com as the Host and /v1 as the OpenAI-compatible path. If it asks for one full Base URL, use https://us-api.tokenhub.com/v1. Configure the persistent file or settings page first, then use temporary environment variables only for debugging.

Last updated on