Skip to main content

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:
Verify the installation:

Configuration

1. Add KiosAPI as a provider

Create or edit the CC Switch configuration file:
Replace 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):
macOS / Linux: Add to ~/.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:
If Claude responds, CC Switch is correctly routing through KiosAPI.
Use the Claude-Kiro token group on KiosAPI for the best pricing when using Claude Code.

Troubleshooting

Provider not found

  • Verify the provider name in cc-switch use <name> matches a key in config.json
  • Check the config file is at the correct path for your platform

Authentication Error after switching

  • Ensure the apiKey in the config is correct and starts with sk-
  • Verify baseUrl is https://kiosapi.com (no trailing slash, no /v1)

Invalid Beta Flag

If you see a 400 error about beta flags, ensure "disableBetas": true is set in the provider config. This adds CLAUDE_CODE_DISABLE_EXPERIMENTAL_BETAS=1 to the environment.

Need Help?