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

It is recommended to use CC Switch to complete the configuration — an open-source provider management tool with a visual interface, so there is no need to manually edit JSON or environment variables.

1. Install CC Switch#

macOS#

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

Windows#

Go to Releases to download the .msi installer.

Linux#

2. Add the 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 the Configuration#

Fill in the fields as shown below, then click + Add to complete.
PixPin_2026-05-15_12-51-30.png
PixPin_2026-05-15_12-53-55.png
Config ItemValueDescription
❶ Provider Nameapi.tokenhot.ai-claudeCustom
❷ Official WebsiteProvider official website
❸ API KeyYour api.tokenhotAI API KeyGet it from api.tokenhot.ai
❹ Request URLDo not add a trailing slash
❺ API Format / Auth FieldAnthropic Messages (Native) / ANTHROPIC_AUTH_TOKEN (Default)Keep the default
❻ Model ConfigurationLeave blankLeave blank to use the default Claude model
❼ OptionsCheck "Hide AI Signature" and "Teammates Mode"Check as needed
❽ Write to General Configuration✅ CheckedWrite to the global configuration so it takes effect for all projects

Step 3: Enable the Provider#

After adding it, go back to the list, select api.tokenhot.ai-claude, and click the Use button. When you see the "Switched successfully" message, the setup is complete.
PixPin_2026-05-15_12-58-19.png

3. Verify the Configuration#

Enter the project directory and start Claude Code:
On first launch, press Esc to skip login. After startup, check the top information bar and confirm that API Usage Billing (❶) is displayed, which means billing is going through api.tokenhot.ai:
PixPin_2026-05-15_12-59-56.png
If all of the above information is correct, the configuration is successful.

4. Use Other Models#

Through api.tokenhotAI, you can use non-Claude models in Claude Code (such as Qwen, GLM, DeepSeek, etc.). You only need to filter compatible models in the model marketplace and then configure model mapping.

Step 1: Filter Compatible Models#

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

Step 2: Copy the Model Name#

Click the target model card. There is a copy button next to the model name, which lets you copy the model ID with one click (for example, claude-opus-4.7).
PixPin_2026-05-15_13-02-06.png

Step 3: Configure Model Mapping#

Go back to CC Switch and find the Model Mapping section in the provider configuration. Fill the copied model name into the corresponding model slot. You can browse available models in the tokenhot Model Marketplace:
Mapping SlotDescription
Primary ModelThe model Claude Code uses by default
Thinking ModelThe model used for deep reasoning
Default Haiku ModelThe model for lightweight tasks
Default Sonnet ModelThe model for medium-complexity tasks
Default Opus ModelThe model for high-complexity tasks

Troubleshooting#

If you encounter 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 model currently in use
PixPin_2026-05-15_13-04-02.png
Q: It says "Authentication error"
Confirm that the Anthropic base URL is correct and check whether the API Key is valid.
Q: Connection timeout
Confirm that the request URL is set to https://api.api.tokenhot.ai without a trailing slash.
Q: Streaming response is lagging
api.tokenhotAI already includes global acceleration. This is usually a local network issue, so check your local connection and try again.
Modified at 2026-06-22 09:55:45
Previous
Install Claude Code
Next
CCometixLine Status Bar Plugin
Built with