AboAI API Integration with Claude Code
This tutorial is applicable to:
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:
2. cc switch#
cc switch is a configuration switching tool for Claude Code. It allows you to easily switch between:OpenAI-compatible interfaces
Third-party Claude channels
2. Prerequisites#
What You Need to Prepare#
| Item | Description |
|---|
| Node.js | v18 recommended |
| Git | Official CLI |
| Claude Code | Official CLI |
| cc switch | Configuration switching tool |
| AboAI API | AboAI URL + AboAI 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)"
Install Node.js#
Verify the Installation#
3.2 Install Git (if not already installed)#
It is recommended to install Git using Homebrew.
Verify the Installation#
3.3 Install Claude Code#
Official Installation Command#
npm install -g @anthropic-ai/claude-code
Verify the Installation#
3.4 Install cc switch#
Open the GitHub Releases Download Page#
Verify the Installation#
4. Windows Installation Guide#
4.1 Install Node.js#
Download Node.js#
Go to the official Node.js website to download the LTS version.Make sure to check the Add to PATH option during installation.
Verify the Installation#
Open your preferred terminal:
4.2 Install Git#
Keep the default options during installation and click Next all the way through.
Verify the Installation#
4.3 Install Claude Code#
npm install -g @anthropic-ai/claude-code
Verify the Installation#
4.4 Install cc switch#
Open the GitHub Releases Download Page#
Go to the AboAI Open Platform to apply for your secret key (sk).Obtain the following details:| Configuration Item | Example |
|---|
| Base URL | https://api.aboai.ai |
| API Key | sk-xxxx |
| Model | Claude Opus 4.6 / GPT 5.2 ... |
Visit the AboAI documentation page:
6.1 Open cc switch#
6.2 Add a New Configuration (Using Anthropic as an example)#
The system will prompt you to enter the following:| Configuration Item | Example | Description |
|---|
| Name | aboai-Anthropic | Provider name |
| Base URL | https://api.aboai.ai | AboAI API request path |
| API Key | sk-xxxx | AboAI secret key |
| Model | claude-Opus 4.7 | Optional / non-mandatory |
Add Anthropic ConfigurationSelect Claude Provider - Custom Configuration
Scroll down, fill in the AboAI configuration parameters based on your details, and save.6.3 Switch Configuration#
Select the AboAI configuration to launch.6.4 Verification and Testing#
Open your terminal and type:
Install the official Claude extension in VS Code.
Open the Claude extension view.It should now be fully operational and ready to use.Modified at 2026-06-16 12:35:22