Back to Blogs

Using PP API to Launch Claude Code (with CC Switch)

Using PP API to Launch Claude Code (with CC Switch)
March 14, 2026

1. Get Your PP API Key

Visit https://www.ppapi.ai/ to sign up and create your API key. You will need this key to authenticate with the PP API service when configuring CC Switch.

2. Install Claude Code (Optional)

If you already have Claude Code installed, you can skip this step. Otherwise, follow these commands to install it from scratch.

Code
# Install homebrew
/bin/zsh -c "$(curl -fsSL https://gitee.com/cunkai/HomebrewCN/raw/master/Homebrew.sh)"

# Install npm
brew install node

# Install Claude Code
npm install -g @anthropic-ai/claude-code

3. Configure CC Switch

3.1 Installation

CC Switch is available on GitHub at https://github.com/farion1231/cc-switch. Install it via Homebrew:

Code
brew tap farion1231/ccswitch
brew install --cask cc-switch

3.2 Configure API Provider

Open the CC Switch application, then click the "+" button to add a new provider.

CC Switch — Add Provider

Fill in the API endpoint and the key you created earlier. Select "OpenAI Chat Completions" as the API Format.

API Endpoint: • http://app.ppapi.ai For the API Key, use the key from your PP API console. For Models, visit https://www.ppapi.ai/models, pick the models you want, and copy the model names.

CC Switch — Edit Provider dialog

4. Start Using Claude Code

4.1 Enable the Provider

In the CC Switch UI, click "Enable" on the provider you just created to activate it.

CC Switch — Enable Provider

4.2 Launch Claude Code

Once the provider is enabled, simply run the following command in your terminal:

Code
claude

That's it! You can now use Claude Code powered by PP API through CC Switch. Enjoy coding with AI assistance at better prices and higher availability.

Claude Code running via PP API