Documentation

Integrations / Claude Code / Model Provider

Configure Model Provider

This guide shows how to integrate AI Token商城 with Claude Code via CC Switch — an open-source provider management tool with a visual interface.

🔑 Key Configuration

Request URLhttps://ai.ccdan.live
API KeyPurchase a redemption code at ccdan.live, then redeem at ai.ccdan.live to get your API Key.

1. Install CC Switch

macOS

brew install --cask cc-switch

Or download .dmg installer from GitHub Releases.

Windows

Download the .msi installer from Releases.

Linux

# Debian / Ubuntu
sudo dpkg -i CC-Switch-*.deb

# Fedora / RHEL
sudo rpm -i CC-Switch-*.rpm

# AppImage
chmod +x CC-Switch-*.AppImage && ./CC-Switch-*.AppImage

Supported: macOS 12+, Windows 10+, Ubuntu 22.04+

2. Add Provider

Step 1: New Provider

Open CC Switch → provider management → click + in top right.

CC Switch 新建供应商

Step 2: Fill Configuration

CC Switch 配置表单
#FieldValue
Provider Nameccdan-claude
Websitehttps://ccdan.live
API KeyBuy a code on ccdan.live, redeem at ai.ccdan.live
Request URLhttps://ai.ccdan.live
API FormatAnthropic Messages (native) / ANTHROPIC_AUTH_TOKEN
Model ConfigMain model: claude-opus-4-6 or your custom model ID
Write to Global Config✅ Check (applies to all projects)
CC Switch automatically writes to ~/.claude/settings.json

Step 3: Activate

Select ccdan-claude in the list, click Use, wait for "switch successful" message.

CC Switch 激活供应商

3. Enable "Skip Initial Install Confirmation"

Open CC Switch → Settings → General, and enable "Skip Claude Code initial install confirmation" so first launch isn’t interrupted.

CC Switch 跳过初次安装确认

4. Verify Configuration

cd your-project
claude

On first launch press Esc to skip login. Confirm "API Usage Billing" appears in the top info bar.

Claude Code 启动界面

Troubleshooting

Run /status in Claude Code to check:

  • ❶ Anthropic base URL = https://ai.ccdan.live
  • Current model in use
Claude Code /status 输出

Q: Authentication error

Verify request URL and API Key validity.

Q: Connection timeout

Ensure request URL has no trailing slash.

Q: Streaming stuttering

Global acceleration is built-in; usually a local network issue.