1. AI application
AITK-Doc
English
  • 中文
  • English
  • Home Page
  • AITK-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
    • AITK API Integration with Claude Code
    • AITK API Integration with Cursor
    • AITK API Integration with Codex-cli
    • AITK API Integration with Codex Desktop
    • AITK API Integration with Hermes Agent
  1. AI application

AITK API Integration with Claude Code

This tutorial applies to:
Claude Code
cc switch
Connecting to AITK API
macOS / Windows

I. What Is Claude Code + cc switch#

1. Claude Code#

Claude Code is a command-line AI programming tool launched by Anthropic. It can be used directly in the terminal for:
Code generation
Code modification
Project analysis
Shell operations
Git operations
File editing
Common usage:
claude
Or:
claude code

2. cc switch#

cc switch is a Claude Code configuration switching tool that makes it easy to switch between:
Official API
Third-party API
Different models
Different Base URLs
Multiple Keys
Suitable for:
OpenAI-compatible interfaces
Azure
Third-party Claude channels
Self-hosted proxies

II. Preparation#

What You Need to Prepare#

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

III. Mac Installation Tutorial#

1. Install Node.js#

It is recommended to install via Homebrew.

Install Homebrew (if not 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 Installation#

node -v
npm -v
image-20260514114350856.png

2. Install Git (if not installed)#

It is recommended to install via Homebrew.
brew install git

Verify Installation#

git -v
image-20260514135054181.png

3. Install Claude Code#

Official Installation Command#

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

Verify Installation#

claude --version

image-20260514114458610.png#

4. Install cc switch#

Open the GitHub releases download page#

Github releases
image-20260514115012003.png

Verify Installation#

image-20260514115627402.png#

IV. Windows Installation Tutorial#

1. Install Node.js#

Download Node.js#

Go to the official Node.js website to download the LTS version.
Node.js
Recommended:
Select LTS
Check Add to PATH

Verify Installation#

Open:
CMD
PowerShell
Windows Terminal
Run:
node -v
npm -v

2. Install Git#

Download address:
Git for Windows
58f8586d-7c06-4955-bba8-6b8588725241_600x469.png
During installation, keep the default options and click Next all the way through.

Verify Installation#

git -v

3. Install Claude Code#

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

Verify Installation#

claude --version

4. Install cc switch#

Open the GitHub releases download page#

Github releases

image-20260514140016706.png#

V. Obtaining AITK API Information#

Go to the AITK Open Platform to apply for an sk.
AITK Open Platform
image-20260514140602533.png
image-20260514140819323.png
Obtain the following information:
Configuration ItemExample
Base URLhttps://api.aitk.com
API Keysk-xxxx
ModelClaude Opus 5.5 / GPT 6.2 ...

Common Third-Party API Formats#

Go to AITK API documentation:
AITK API Documentation

VI. Configuring cc switch to Connect to AITK API#

1. Open cc switch#

image.png

2. Add a Configuration (Anthropic Example)#

The system will ask you to enter:
Configuration ItemExampleDescription
NameAITK-AnthropicProvider name
Base URLhttps://api.aitk.comAITK API request path
API Keysk-xxxxAITK key
Modelclaude-opus-5-5Optional

Add Anthropic configuration
image.png
Select Claude provider - Custom configuration
image-20260514142754949.png

Scroll down, fill in the AITK configuration according to the reference, and save
image.png

3. Switch Configuration#

Select the AITK configuration to start
image.png

4. Verify and Test#

CLI Claude Code Test
Open the terminal and enter:
claude
image-20260514143738525.png

VS Code Extension Test
Install the official Claude extension in VS Code.
image-20260514144003902.png
Open the Claude extension.
image-20260514144746839.png
You can then use it normally.
image-20260514145040078.png
修改于 2026-11-23 03:01:34
上一页
Speech Translation
下一页
AITK API Integration with Cursor
Built with