Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.siliconflow.com/llms.txt

Use this file to discover all available pages before exploring further.

Use SiliconFlow as your AI provider, across Claude Code, Gemini CLI, Codex, OpenCode, OpenClaw, and Hermes Agent — managed from a single interface powered by CC Switch.

What is CC Switch?

CC Switch is a cross-platform desktop application (Windows / macOS / Linux) designed for the centralized management of supplier configurations for six major AI coding CLI tools: Claude Code, Gemini CLI, Codex, OpenCode, OpenClaw, and Hermes Agent If you’ve used these tools, you’re likely familiar with the tedious process of manually editing configuration files like settings.json, auth.json, and .env. Just select SiliconFlow preset, input your API key, and enable configurations with a single click.

Key Features

FeatureDescription
Provider management50+ built-in presets, one-click switching from main UI or system tray
MCP managementManage MCP server configs across 4 apps — edit once, sync everywhere
Prompt managementMarkdown editor synced to CLAUDE.md / AGENTS.md / GEMINI.md
Skills managementBrowse GitHub repos, install skill extensions with one click
Usage statsToken consumption tracking, cost monitoring, trend charts
Local routing + failoverAuto-failover, circuit breaker, request throttling
Session managementBrowse and search conversation history across apps
Cloud syncSync configurations across devices via WebDAV
💡 CC Switch is open source. If you find it useful, consider giving it a ⭐️ on GitHub.
This guide will walk you through connecting SiliconFlow to CC Switch and powering your agentic workflows with 200+ frontier models in just a few steps.

Step 1: Prerequisites

Get Your SiliconFlow API Key

Before you begin, ensure you have a valid SiliconFlow account:
  • Register a SiliconFlow account at https://cloud.siliconflow.com/. You can sign up with Google or GitHub.
  • Log in and navigate to API Keys in the dashboard.
  • Click 🔑Create API Key and add a name to your key to help you identify it later, then confirm to create it.
  • Click the API key to copy it automatically.
⚠️ Note: Keep your API key secure; you will need it for the configuration in Step 3.
C2ec260a431d4b06ef78eed72055928f

Step 2: Install CC Switch

Visit GitHub Releases to download the latest version of CC Switch.

macOS

  • Option 1: Homebrew (Recommended)
brew tap farion1231/ccswitch
brew install --cask cc-switch
  • Option 2: Manual Installation
    • Download CC-Switch-v{version}-macOS.dmg (Recommended). Open the DMG and drag CC Switch.app into your Applications folder.
    • Alternatively, download CC-Switch-v{version}-macOS.zip and extract it to use.

Windows

  • Option 1: MSI Installer
    • Download CC-Switch-v{version}-Windows.msi and run the installer.
  • Option 2: Portable Version (No Installation Required)
    • DownloadCC-Switch-v{version}-Windows-Portable.zip, extract, and run CC-Switch.exe.

Linux

  • Arch Linux
paru -S cc-switch-bin
  • Debian / Ubuntu
sudo dpkg -i CC-Switch-v{version}-Linux.deb
  • AppImage (Universal)
chmod +x CC-Switch-v{version}-Linux.AppImage
./CC-Switch-v{version}-Linux.AppImage

Step 3: Configure SiliconFlow APIs

  1. Select your CLI tool
Open CC Switch and select the CLI tool you want to configure from the top selector (e.g., Claude Code).
Choosecli
  1. Add SiliconFlow as a provider
Click Add Provider and select SiliconFlow en from the preset list.
Siliconflowen
  1. Paste your API key
Enter your SiliconFlow API key in the API Key field.
The API Format and Auth Field settings do not need to be changed — the preset handles this automatically.
Apikey
  1. Fetch the latest models
Click Fetch Models to load the current SiliconFlow model library.
By default, CC Switch maps all model slots (Haiku, Sonnet, and Opus) to a single model. After adding SiliconFlow, you can manually edit the configuration to assign specific models to each slot based on your use case. See Choose the Right Model for recommendations.
Notchanged
  1. Save and enable
Click Save, then return to the main page and toggle SiliconFlow on as your active provider. Once enabled, you can see your remaining SiliconFlow balance directly in CC Switch.
Enable
Insue

Step 4: Verify Your Setup

CC Switch supports hot reload — no terminal restart required after switching providers. Changes take effect immediately. Open your terminal, run claude, and enter a test prompt:
claude
> Hello, give me a brief introduction about yourself
Claude
A successful response confirms your setup is working.
📌 Note: If Claude Code prompts you to log in or displays an onboarding flow on first launch, go to CC Switch → Settings → General and enable “Skip Claude Code initial setup confirmation”, then restart Claude Code.

Choose the Right Model

Not sure which model to use? Here’s a quick reference by use case.
ModelBest forKey highlights
DeepSeek-V4-FlashFast, cost-effective coding chat / large codebase1M context · 3 reasoning modes · best value in the V4 series
DeepSeek-V4-ProComplex reasoning / large codebase1M context · #1 open-source on math, STEM & competitive coding · approaches Opus 4.6
GLM-5.1Long-horizon agentic tasks58.4 on SWE-Bench Pro · long-horizon execution · iterative self-improvement
Kimi-K2.6Long-horizon tasks / Frontend generation / multi-agentAgent swarm architecture · long-horizon coding · prompt-to-frontend generation
MiniMax M2.5Coding / agentic workflow / office workSOTA Coding Tied Claude & agentic tool use · trained across 200k+ real-world environments
Qwen3.6-27Befficient, context-aware coding experiences.Flagship-level agentic coding performance
Browse the full model library: siliconflow.com/models

Already Using OpenRouter?

Bring Your Own Key

If you already have an OpenRouter account, you can connect your SiliconFlow API key via BYOK. Once connected:
  • Requests draw from your SiliconFlow balance first
  • Billing and rate limits stay in your SiliconFlow account
  • OpenRouter’s fallback routing still works to improve reliability
Bonus: OpenRouter waives platform fees on your first 1M BYOK requests per month.
Byok

Cache More, Spend Less

SiliconFlow consistently delivers high cache hit rates across models — for example, according to OpenRouter’s provider performance data, SiliconFlow achieves the highest cache hit rate among all GLM-5.1 providers at 88.6%, significantly ahead of the competition. For you as a developer, this translates directly to faster response times and lower inference costs on repeated contexts. Looking for more models? Browse the full model library at SiliconFlow Models or stay up to date with the latest releases on the SiliconFlow Blog.
Cacherate

Resources

CC Switch

OpenRouter

SiliconFlow