Back to Blogs

Using PP API to Launch Claude Code (with Claude Code Router)

Using PP API to Launch Claude Code (with Claude Code Router)
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 Claude Code Router.

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 Claude Code Router

3.1 Installation

Claude Code Router is available on GitHub at https://github.com/musistudio/claude-code-router. Install it globally with npm:

Code
npm install -g @musistudio/claude-code-router

3.2 Configure API Provider

Launch the Claude Code Router WebUI by running:

Code
ccr ui

In the WebUI, click "Add Provider" to add a new provider. Fill in the API Full URL and the key you created earlier.

API Full URL: • Anthropic Version: https://app.ppapi.ai/v1/messages • OpenAI Version: https://app.ppapi.ai/v1/chat/completions 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.

Claude Code Router — Add Provider dialogClaude Code Router — Edit Provider dialog

Select the appropriate transformer for your provider. For example, if you are using the Anthropic API version, choose "Anthropic" as the Provider Transformer.

Claude Code Router — Select Transformer

3.3 Configure Models

In the Claude Code Router WebUI, configure which model to use for different scenarios such as Background, Think, Long Context, Web Search, and Image processing.

Claude Code Router — Router configuration

4. Start Using Claude Code

Once everything is configured, simply run the following command to start Claude Code through the router:

Code
ccr code

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

Claude Code running via PP API