by xixu-me
Comprehensive cross-platform toolkit for Claude Code
# Add to your Claude Code skills
git clone https://github.com/xixu-me/claude-code-toolkitA comprehensive cross-platform toolkit for managing Claude Code installation, configuration, and multiple Anthropic-compatible API provider support. This toolkit simplifies the process of setting up and switching between different Anthropic-compatible API providers, including the official Anthropic API and compatible third-party services like Moonshot AI with the latest Kimi model (kimi-k2-0711-preview) that implement Anthropic's API specification.
Looking for broader model compatibility? Check out Claude Code Sugar - a lightweight local proxy tool that allows Claude Code to interact with any service compatible with the OpenAI API specification, such as ModelScope platform. With Sugar, you can seamlessly redirect claude command requests to a wider ecosystem of AI models while keeping your existing workflow unchanged.
No comments yet. Be the first to share your thoughts!
🚀 Featured: This toolkit includes built-in support for Moonshot AI's latest Kimi model (kimi-k2-0711-preview), allowing you to leverage cutting-edge AI capabilities through the familiar Claude Code interface.
Before using this toolkit, you'll need API keys from your chosen provider:
| Command | Description |
|---------|-------------|
| install [provider] [api_key] [options] | Install Claude Code and configure a provider |
| uninstall | Completely remove Claude Code and all configurations |
| update | Update Claude Code to the latest version |
| check | Check installation status and current provider |
| add-provider <name> <url> <key> | Add a new API provider configuration |
| switch <provider> | Switch to a different configured provider |
| list-providers | Display all available providers |
For all commands below, use one of these patterns:
Linux/macOS (Bash):
curl -L https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.sh | bash -s [command] [arguments]
Windows (PowerShell):
Invoke-WebRequest -Uri "https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.ps1" -OutFile "cct.ps1"; .\cct.ps1 [command] [arguments]
# Linux/macOS
curl -L https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.sh | bash -s install
# Windows
Invoke-WebRequest -Uri "https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.ps1" -OutFile "cct.ps1"; .\cct.ps1 install
# Linux/macOS
curl -L https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.sh | bash -s install Anthropic YOUR_API_KEY
# Windows
Invoke-WebRequest -Uri "https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.ps1" -OutFile "cct.ps1"; .\cct.ps1 install Anthropic YOUR_API_KEY
# Linux/macOS
curl -L https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.sh | bash -s install "Moonshot AI" YOUR_API_KEY
# Windows
Invoke-WebRequest -Uri "https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.ps1" -OutFile "cct.ps1"; .\cct.ps1 install "Moonshot AI" YOUR_API_KEY
# Linux/macOS
curl -L https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.sh | bash -s install "Custom Provider" YOUR_API_KEY --base-url https://api.example.com/v1/
# Windows
Invoke-WebRequest -Uri "https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.ps1" -OutFile "cct.ps1"; .\cct.ps1 install "Custom Provider" YOUR_API_KEY --base-url https://api.example.com/v1/
# Linux/macOS
curl -L https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.sh | bash -s check
# Windows
Invoke-WebRequest -Uri "https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.ps1" -OutFile "cct.ps1"; .\cct.ps1 check
# Linux/macOS
curl -L https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.sh | bash -s switch "Provider Name"
# Windows
Invoke-WebRequest -Uri "https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.ps1" -OutFile "cct.ps1"; .\cct.ps1 switch "Provider Name"
# Linux/macOS
curl -L https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.sh | bash -s add-provider "Provider Name" "https://api.example.com/" "your-api-key"
# Windows
Invoke-WebRequest -Uri "https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.ps1" -OutFile "cct.ps1"; .\cct.ps1 add-provider "Provider Name" "https://api.example.com/" "your-api-key"
# Linux/macOS
curl -L https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.sh | bash -s list-providers
# Windows
Invoke-WebRequest -Uri "https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.ps1" -OutFile "cct.ps1"; .\cct.ps1 list-providers
Anthropic - Official Claude API
Moonshot AI - Anthropic-compatible API service with latest Kimi models
kimi-k2-0711-preview)You can add any API provider that implements Anthropic-compatible endpoints by specifying:
~/.claude/ (Linux/macOS) or %USERPROFILE%\.claude\ (Windows)~/.claude/providers.json~/.claude.jsonThe toolkit automatically manages these environment variables:
ANTHROPIC_API_KEY: Your API key for the current providerANTHROPIC_BASE_URL: Base URL for custom providers (not set for official Anthropic API){
"Provider Name": {
"base_url": "https://api.example.com/anthropic/",
"api_key": "your-encrypted-api-key"
}
}
# Check your Node.js version
node -v
# The toolkit requires Node.js 18+
# Install or update Node.js from https://nodejs.org/
# If you get permission errors, configure npm for global installs
mkdir ~/.npm-global
npm config set prefix '~/.npm-global'
# Add ~/.npm-global/bin to your PATH
# If you can't run the script, check execution policy
Get-ExecutionPolicy
# Allow script execution (run as administrator)
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
If you encounter issues:
This repository was inspired by the LLM-Red-Team/kimi-cc repository, which provides a simple way to use Moonshot AI's latest Kimi model (kimi-k2-0711-preview) to drive Claude Code. We've expanded upon that concept to create a comprehensive cross-platform toolkit that supports