1. AI application
PeakkAI-Doc
English
  • 中文
  • English
  • 首页
  • English
    • Home Page
    • PeakkAI-API
      • Model
        • Native OpenAI Format
        • Native Gemini Format
      • Chat
        • Native OpenAI Format
        • Native Gemini Format
        • Native Claude Format
        • Responses Request (openai)
      • Audio
        • Native OpenAI Format TTS
        • Native Gemini Format TTS
      • Images
        • Native OpenAI Format Image Editing (JSON)
        • Native OpenAI Format Image Generation
        • Native OpenAI Format Image Editing (Multipart)
        • Native Gemini Format Image Generation
      • Video
        • Seedance2.0 format
          • Create Video Generation Task
          • Query Video Generation Task Status
      • Vector
        • Embeddings
          • Create Embedding
      • Translation
        • Speech Translation
    • AI application
      • PeakkAI API Integration with Claude Code
      • PeakkAI API Integration with Cursor
      • PeakkAI API Integration with Codex-cli
      • PeakkAI API Integration with Codex Desktop
      • PeakkAI API Integration with Hermes Agent
  1. AI application

PeakkAI API Integration with Claude Code

This tutorial is applicable to:
Claude Code
cc switch
Connecting PeakkAI API
macOS / Windows

1. What are Claude Code and cc switch#

1. Claude Code#

Claude Code is a command-line AI programming tool released by Anthropic. It allows you to perform the following actions directly within your terminal:
Code generation
Code modification
Project analysis
Shell operations
Git operations
File editing
Common usage commands:
claude
或者:
claude code

2. cc switch#

cc switch is a configuration switching tool for Claude Code. It allows you to easily switch between:
Official APIs
Third-party APIs
Different models
Different Base URLs
Multiple API Keys
It is suitable for:
OpenAI-compatible interfaces
Azure
Third-party Claude channels
Self-hosted proxies

2. Prerequisites#

What You Need to Prepare#

ItemDescription
Node.jsv18 recommended
GitOfficial CLI
Claude CodeOfficial CLI
cc switchConfiguration switching tool
PeakkAI APIPeakkAI URL + PeakkAI API Key

3. macOS Installation Guide#

3.1 Install Node.js#

It is recommended to install Node.js using Homebrew.

Install Homebrew (if not already installed)#

/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"
image-20260514114120264.png

Install Node.js#

brew install node

Verify the Installation#

node -v
npm -v
image-20260514114350856.png

3.2 Install Git (if not already installed)#

It is recommended to install Git using Homebrew.
brew install git

Verify the Installation#

git -v
image-20260514135054181.png

3.3 Install Claude Code#

Official Installation Command#

npm install -g @anthropic-ai/claude-code

Verify the Installation#

claude --version

image-20260514114458610.png#

3.4 Install cc switch#

Open the GitHub Releases Download Page#

Github releases
image-20260514115012003.png

Verify the Installation#

image-20260514115627402.png#

4. Windows Installation Guide#

4.1 Install Node.js#

Download Node.js#

Go to the official Node.js website to download the LTS version.
Node.js
Recommendations:
Choose the LTS version.
Make sure to check the Add to PATH option during installation.

Verify the Installation#

Open your preferred terminal:
CMD
PowerShell
Windows Terminal
Then execute:
node -v
npm -v

4.2 Install Git#

Download link:
Git for Windows
58f8586d-7c06-4955-bba8-6b8588725241_600x469.png
Keep the default options during installation and click Next all the way through.

Verify the Installation#

git -v

4.3 Install Claude Code#

npm install -g @anthropic-ai/claude-code

Verify the Installation#

claude --version

4.4 Install cc switch#

Open the GitHub Releases Download Page#

Github releases

image-20260514140016706.png#

5. Get PeakkAI API Information#

Go to the PeakkAI Open Platform to apply for your secret key (sk).
peakk 开放平台
image-20260514140602533.png
image-20260514140819323.png
Obtain the following details:
Configuration ItemExample
Base URLhttps://api.peakk.ai
API Keysk-xxxx
ModelClaude Opus 4.6 / GPT 5.2 ...

Common Third-Party Interface Formats#

Visit the PeakkAI documentation page:
PeakkAI documentation

6. Configure cc switch to Integrate with PeakkAI API#

6.1 Open cc switch#

image-20260514141707868.png

6.2 Add a New Configuration (Using Anthropic as an example)#

The system will prompt you to enter the following:
Configuration ItemExampleDescription
Namepeakk-AnthropicProvider name
Base URLhttps://api.peakk.aiPeakkAI API request path
API Keysk-xxxxPeakkAI secret key
Modelclaude-Opus 4.7Optional / non-mandatory

Add Anthropic Configuration
image-20260514142646625.png
Select Claude Provider - Custom Configuration
image-20260514142754949.png

Scroll down, fill in the PeakkAI configuration parameters based on your details, and save.
image.png

6.3 Switch Configuration#

Select the PeakkAI configuration to launch.
image-20260514143252804.png

6.4 Verification and Testing#

CLI Claude Code Test
Open your terminal and type:
claude
image-20260514143738525.png

VS Code Extension Test
Install the official Claude extension in VS Code.
image-20260514144003902.png
Open the Claude extension view.
image-20260514144746839.png
It should now be fully operational and ready to use.
image-20260514145040078.png
修改于 2026-11-02 09:46:29
上一页
Speech Translation
下一页
PeakkAI API Integration with Cursor
Built with