Skip to content

cc-switch ​

cc-switch switches between different Claude Code configurations. You can add DDTokens as one of its profiles.

Use Cases ​

When you use Anthropic directly alongside DDTokens or other gateways, cc-switch helps you switch environment variables quickly.

DDTokens Profile ​

If your DDTokens account supports Claude models or an Anthropic-compatible route, create a profile containing:

bash
ANTHROPIC_BASE_URL=https://apiddt.com
ANTHROPIC_API_KEY=sk-your-key-here
ANTHROPIC_MODEL=claude-3-5-sonnet

Use the model name shown in the DDTokens dashboard.

Verify ​

After switching to the DDTokens profile, run:

bash
claude "Reply with the current model name if available."

If the request fails, return to the Claude Code page and check the environment variables and model permissions.

Security Recommendations ​

  • Do not commit a configuration file containing a complete API key to Git.
  • If you synchronize cc-switch configuration across devices, use a system secret manager or encrypted synchronization.

© 2026 DDTokens