CC Switch
CC Switch is a tool for switching between different API providers for Claude Code. This guide shows you how to configure it to use KiosAPI.Prerequisites
- Claude Code installed and configured
- A KiosAPI API key (starts with
sk-) - Node.js 18+
Installation
Install CC Switch globally:Configuration
1. Add KiosAPI as a provider
Create or edit the CC Switch configuration file:sk-xxx with your actual KiosAPI key.
Set
"baseUrl" to https://kiosapi.com (without /v1). Claude Code appends the API path automatically.2. Set environment variables (alternative)
You can also configure CC Switch by setting environment variables directly: Windows (PowerShell):~/.bashrc or ~/.zshrc:
Usage
Switch to KiosAPI
Switch back to another provider
Show current provider
List available providers
Verify Your Setup
After switching to KiosAPI, test the configuration:Troubleshooting
Provider not found
- Verify the provider name in
cc-switch use <name>matches a key inconfig.json - Check the config file is at the correct path for your platform
Authentication Error after switching
- Ensure the
apiKeyin the config is correct and starts withsk- - Verify
baseUrlishttps://kiosapi.com(no trailing slash, no/v1)
Invalid Beta Flag
If you see a400 error about beta flags, ensure "disableBetas": true is set in the provider config. This adds CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 to the environment.
