HomeTokenhotAPI DocumentTools
language
language
  • 中文
  • English
HomeTokenhotAPI DocumentTools
language
language
  • 中文
  • English
  1. Codex
  • 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. Codex

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-18_14-42-08.png

Step 2: Fill in Configuration#

Fill in as shown below and click + Add to complete.
PixPin_2026-05-18_14-52-40.png
Configuration ItemValueDescription
❶ Provider Namemy CodexCustom
❷ Website URLProvider website
❸ API KeyYour tokenhot API KeyObtain at api.tokenhot.ai
❹ Request URLDo not add a trailing slash
❺ API FormatOPenAI CompatibleOpenAI-compatible format
❽ Write to Global Config✅ CheckedWrite to global configuration, effective for all projects

Step 3: Enable the Provider#

After adding, return to the list, select My codex, and click the Use button. A "Switch Successful" notification confirms it's done. Ensure Write to Global Config is checked — the configuration will be automatically written to config.toml.
PixPin_2026-05-18_15-01-31.png

3. Verify Configuration#

PixPin_2026-05-18_15-03-25.png
A normal AI response indicates successful configuration.

4. Specify a Model#

For recommended models, please refer to the Tokenhot Model Plaza.

Troubleshooting#

Q: "Authentication error"
Confirm the API Key is correctly filled in and check that the request URL has no trailing slash.
Q: Connection timeout
Confirm the request URL is https://api.tokenhot.ai without a trailing slash.
Modified at 2026-05-29 02:58:02
Previous
Codex CLI Installation
Built with