CC-Switch · Claude Code Setup
Use CC-Switch to connect Claude Code to Tianshu graphically, without editing settings.json by hand.
Before starting, complete the Common Steps: download and install CC-Switch, and finish the environment check and Claude Code install.
Configuration steps
- Open CC-Switch and switch to Claude in the group bar at the top.
- Click Add Provider / New Config and create a custom provider:
- Name:
天枢(custom) - Base URL:
https://tian-shu.org - API Key: a token created in the Console
- Name:
- About the token group:
- Only using Claude Code → choose a token in the
claude-cconlygroup. - Want to use it in other clients too → choose the
claude-max/claude-kirogroup.
- Only using Claude Code → choose a token in the
- After saving, find the provider you just configured on the main screen, click Enable on the right, and "In use" means it's done.
- We recommend going to CC-Switch's Settings → General and ticking "Skip the Claude Code first-run install confirmation".
Test
Run in a terminal:
bash
claudeWhen you see the chat interface and get a normal reply, the configuration succeeded.
About the claude-cconly group
The claude-cconly group supports Claude Code connections only and does not support third-party access, so you can't do a full "test call" within CC-Switch. To confirm whether such a config works, rely directly on the actual conversation result inside Claude Code.
Can't connect?
If claude reports it can't connect to Anthropic services, or keeps asking you to log in, see FAQ · Claude Code.
