HomeTokenhotAPI DocumentTools
language
language
  • 中文
  • English
HomeTokenhotAPI DocumentTools
language
language
  • 中文
  • English
  1. Claude
  • navigation
  • OpenClaw
  • hermes
  • Gemini CLI
  • OpenCode
  • Cherry Studio
  • CC-Switch
  • Claude
    • Overview
    • Install Claude Code
    • Configure Model Providers
    • CCometixLine Status Bar Plugin
    • Skills Configuration
  • Codex
    • Codex CLI Installation
    • Configure Model Providers
  1. Claude

Configure Model Providers

We recommend using CC Switch to complete the configuration — an open-source provider management tool with visual controls, no need to manually edit JSON or environment variables.

1. Install CC Switch#

macOS#

Or go to Releases to download the .dmg for manual installation.

Windows#

Go to Releases to download the .msi installer.

Linux#

2. Add api.tokenhotAI Provider#

Step 1: Add a New Provider#

Open CC Switch, go to the provider management page, and click the + button in the top-right corner.
PixPin_2026-05-15_12-44-57.png

Step 2: Fill in Configuration#

Fill in as shown below and click + Add to complete.
PixPin_2026-05-15_12-51-30.png
PixPin_2026-05-15_12-53-55.png
Configuration ItemValueDescription
❶ Provider Nameapi.tokenhot.ai-claudeCustom
❷ Website URLProvider website
❸ API KeyYour api.tokenhotAI API KeyObtain at api.tokenhot.ai
❹ Request URLDo not add a trailing slash
❺ API Format / Auth FieldAnthropic Messages (Native) / ANTHROPIC_AUTH_TOKEN (Default)Keep default
❻ Model ConfigurationLeave emptyLeave empty to use default Claude models
❼ OptionsCheck "Hide AI Attribution" and "Teammates Mode"Check as needed
❽ Write to Global Config✅ CheckedWrite to global configuration, effective for all projects

Step 3: Enable the Provider#

After adding, return to the list, select api.tokenhot.ai-claude, and click the Use button. A "Switch Successful" notification confirms it's done.
PixPin_2026-05-15_12-58-19.png

3. Verify Configuration#

Navigate to your project directory and start Claude Code:
Press Esc on first launch to skip login. After starting, check the top info bar — confirming that API Usage Billing (❶) is displayed means you are billed through api.tokenhot.ai:
PixPin_2026-05-15_12-59-56.png
If the above information is confirmed, the configuration is successful.

4. Using Other Models#

Through api.tokenhotAI, you can use non-Claude models in Claude Code (such as Qwen, GLM, DeepSeek, etc.). Simply filter for compatible models in the model plaza, then configure the model mapping.

Step 1: Filter Compatible Models#

Go to the tokenhot Model Plaza, and under API Protocol on the left, select Anthropic to filter for models that support the Anthropic protocol.
PixPin_2026-05-15_13-01-26.png

Step 2: Copy Model Name#

Click the target model card — there is a copy button next to the model name to copy the model ID with one click (e.g., claude-opus-4.7).
PixPin_2026-05-15_13-02-06.png

Step 3: Configure Model Mapping#

Return to CC Switch and find the Model Mapping section in the provider configuration. Fill the copied model name into the corresponding model slot. Visit the tokenhot Model Plaza to browse available models:
Mapping SlotDescription
Primary ModelDefault model used by Claude Code
Thinking ModelModel used for deep reasoning
Haiku Default ModelLightweight task model
Sonnet Default ModelMedium-complexity task model
Opus Default ModelHigh-complexity task model

Troubleshooting#

When encountering issues, run /status in the Claude Code terminal to check the configuration:
/status
Confirm the following key fields:
❶ Anthropic base URL is https://api.api.tokenhot.ai/anthropic
❷ Model shows the currently used model
PixPin_2026-05-15_13-04-02.png
Q: "Authentication error"
Confirm that Anthropic base URL is correct and check whether the API Key is valid.
Q: Connection timeout
Confirm the request URL is https://api.api.tokenhot.ai without a trailing slash.
Q: Streaming response lag
api.tokenhotAI has built-in global acceleration — this is usually a local network issue. Check your local connection and retry.
Modified at 2026-05-29 02:58:02
Previous
Install Claude Code
Next
CCometixLine Status Bar Plugin
Built with