{"id":29850497,"url":"https://github.com/xixu-me/claude-code-toolkit","last_synced_at":"2025-07-29T20:47:00.885Z","repository":{"id":305253647,"uuid":"1022390341","full_name":"xixu-me/Claude-Code-Toolkit","owner":"xixu-me","description":"Cross-platform toolkit for Claude Code installation \u0026 management with multi-provider API support. Features all Anthropic-compatible API, Moonshot AI (Kimi model), automated setup, provider switching \u0026 config management. | 用于安装和管理 Claude Code 的跨平台工具包，支持多提供商 API。功能包括所有与 Anthropic 兼容的 API、Moonshot AI（Kimi 模型）、自动设置、提供商切换和配置管理。","archived":false,"fork":false,"pushed_at":"2025-07-19T04:37:34.000Z","size":65,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-19T06:00:55.755Z","etag":null,"topics":["ai","ai-toolkit","anthropic","api-management","claude","claude-ai","claude-code","kimi","limux","macos","windows"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/xixu-me.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-07-19T01:27:53.000Z","updated_at":"2025-07-19T04:37:37.000Z","dependencies_parsed_at":"2025-07-19T06:01:01.115Z","dependency_job_id":"8a4afb23-72a1-4589-b22c-ccf6bd444a95","html_url":"https://github.com/xixu-me/Claude-Code-Toolkit","commit_stats":null,"previous_names":["xixu-me/claude-code-toolkit"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/xixu-me/Claude-Code-Toolkit","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xixu-me%2FClaude-Code-Toolkit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xixu-me%2FClaude-Code-Toolkit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xixu-me%2FClaude-Code-Toolkit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xixu-me%2FClaude-Code-Toolkit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/xixu-me","download_url":"https://codeload.github.com/xixu-me/Claude-Code-Toolkit/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/xixu-me%2FClaude-Code-Toolkit/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267755978,"owners_count":24139474,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-29T02:00:12.549Z","response_time":2574,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["ai","ai-toolkit","anthropic","api-management","claude","claude-ai","claude-code","kimi","limux","macos","windows"],"created_at":"2025-07-29T20:46:58.717Z","updated_at":"2025-07-29T20:47:00.851Z","avatar_url":"https://github.com/xixu-me.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Claude Code Toolkit (CCT)\n\n***[汉语](README.zh.md)***\n\n[![Linux](https://img.shields.io/badge/Linux-FCC624?style=flat\u0026logo=linux\u0026logoColor=black)](#command-syntax)\n[![macOS](https://img.shields.io/badge/macOS-000000?style=flat\u0026logo=apple\u0026logoColor=white)](#command-syntax)\n[![Windows](https://img.shields.io/badge/Windows-0078D6?style=flat\u0026logo=data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCA4OCA4OCIgd2lkdGg9Ijg4IiBoZWlnaHQ9Ijg4Ij48cmVjdCB3aWR0aD0iNDIiIGhlaWdodD0iNDIiIGZpbGw9IiMwMGFkZWYiLz48cmVjdCB4PSI0NiIgd2lkdGg9IjQyIiBoZWlnaHQ9IjQyIiBmaWxsPSIjMDBhZGVmIi8+PHJlY3QgeT0iNDYiIHdpZHRoPSI0MiIgaGVpZ2h0PSI0MiIgZmlsbD0iIzAwYWRlZiIvPjxyZWN0IHg9IjQ2IiB5PSI0NiIgd2lkdGg9IjQyIiBoZWlnaHQ9IjQyIiBmaWxsPSIjMDBhZGVmIi8+PC9zdmc+\u0026logoColor=white)](#command-syntax)\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT)\n\nA 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.\n\n## ✨ Latest Kimi Model Support\n\n🚀 **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.\n\n- **One-command setup**: Instantly configure Moonshot AI with the latest Kimi model\n- **Seamless switching**: Switch between official Anthropic API and Kimi model effortlessly\n- **Full compatibility**: All Claude Code features work seamlessly with the Kimi model\n\n## Features\n\n- **Cross-Platform Support**: Works on Linux/macOS (Bash) and Windows (PowerShell)\n- **Multiple Provider Support**: Easy switching between Anthropic, Moonshot AI (with latest Kimi models), and custom Anthropic-compatible API providers\n- **Automated Installation**: Handles Node.js, npm, and Claude Code package installation\n- **Configuration Management**: Persistent provider configurations with secure API key storage\n- **Environment Variable Management**: Automatic shell configuration for seamless provider switching\n- **Interactive Setup**: User-friendly prompts for configuration when parameters are not provided\n\n## Requirements\n\n- **Node.js** 18 or higher\n- **npm** (Node Package Manager)\n- **Bash** (Linux/macOS) or **PowerShell** (Windows)\n- Internet connection for package downloads\n\n## API Key Setup\n\nBefore using this toolkit, you'll need API keys from your chosen provider:\n\n- **Anthropic API**: Get your API key from [Anthropic Console](https://console.anthropic.com/)\n- **Moonshot AI**: Get your API key from [Moonshot AI Platform](https://platform.moonshot.cn/console)\n- **Custom Providers**: Obtain API keys from your preferred Anthropic-compatible service\n\n## Usage\n\n### Available Commands\n\n| Command | Description |\n|---------|-------------|\n| `install [provider] [api_key] [options]` | Install Claude Code and configure a provider |\n| `uninstall` | Completely remove Claude Code and all configurations |\n| `update` | Update Claude Code to the latest version |\n| `check` | Check installation status and current provider |\n| `add-provider \u003cname\u003e \u003curl\u003e \u003ckey\u003e` | Add a new API provider configuration |\n| `switch \u003cprovider\u003e` | Switch to a different configured provider |\n| `list-providers` | Display all available providers |\n\n### Command Syntax\n\nFor all commands below, use one of these patterns:\n\n**Linux/macOS (Bash):**\n\n```bash\ncurl -L https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.sh | bash -s [command] [arguments]\n```\n\n**Windows (PowerShell):**\n\n```bash\nInvoke-WebRequest -Uri \"https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.ps1\" -OutFile \"cct.ps1\"; .\\cct.ps1 [command] [arguments]\n```\n\n### Quick Start Examples\n\n#### 1. Basic Installation (Interactive Setup)\n\n```bash\n# Linux/macOS\ncurl -L https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.sh | bash -s install\n\n# Windows\nInvoke-WebRequest -Uri \"https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.ps1\" -OutFile \"cct.ps1\"; .\\cct.ps1 install\n```\n\n#### 2. Install with Anthropic (Official API)\n\n```bash\n# Linux/macOS\ncurl -L https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.sh | bash -s install Anthropic YOUR_API_KEY\n\n# Windows\nInvoke-WebRequest -Uri \"https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.ps1\" -OutFile \"cct.ps1\"; .\\cct.ps1 install Anthropic YOUR_API_KEY\n```\n\n#### 3. Install with Moonshot AI (Latest Kimi Model)\n\n```bash\n# Linux/macOS\ncurl -L https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.sh | bash -s install \"Moonshot AI\" YOUR_API_KEY\n\n# Windows\nInvoke-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\n```\n\n#### 4. Install with Custom Provider\n\n```bash\n# Linux/macOS\ncurl -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/\n\n# Windows\nInvoke-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/\n```\n\n### Common Operations\n\n#### Check Installation Status\n\n```bash\n# Linux/macOS\ncurl -L https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.sh | bash -s check\n\n# Windows\nInvoke-WebRequest -Uri \"https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.ps1\" -OutFile \"cct.ps1\"; .\\cct.ps1 check\n```\n\n#### Switch Between Providers\n\n```bash\n# Linux/macOS\ncurl -L https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.sh | bash -s switch \"Provider Name\"\n\n# Windows\nInvoke-WebRequest -Uri \"https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.ps1\" -OutFile \"cct.ps1\"; .\\cct.ps1 switch \"Provider Name\"\n```\n\n#### Add New Provider\n\n```bash\n# Linux/macOS\ncurl -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\"\n\n# Windows\nInvoke-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\"\n```\n\n#### List All Providers\n\n```bash\n# Linux/macOS\ncurl -L https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.sh | bash -s list-providers\n\n# Windows\nInvoke-WebRequest -Uri \"https://github.com/xixu-me/Claude-Code-Toolkit/raw/main/cct.ps1\" -OutFile \"cct.ps1\"; .\\cct.ps1 list-providers\n```\n\n## Supported Providers\n\n### Built-in Providers\n\n1. **Anthropic** - Official Claude API\n   - Uses default Anthropic endpoints\n   - Requires official Anthropic API key\n   - No additional configuration needed\n\n2. **Moonshot AI** - Anthropic-compatible API service with latest Kimi models\n   - Pre-configured with Moonshot endpoints\n   - **Supports the latest Kimi model (`kimi-k2-0711-preview`)**\n   - Fully compatible with Anthropic API format\n   - Requires Moonshot AI API key\n\n### Custom Anthropic-Compatible Providers\n\nYou can add any API provider that implements Anthropic-compatible endpoints by specifying:\n\n- **Provider Name**: A friendly name for identification\n- **Base URL**: The API endpoint base URL (must be Anthropic API compatible)\n- **API Key**: Your authentication key for the service\n\n## Configuration\n\n### File Locations\n\n- **Configuration Directory**: `~/.claude/` (Linux/macOS) or `%USERPROFILE%\\.claude\\` (Windows)\n- **Providers File**: `~/.claude/providers.json`\n- **Claude Config**: `~/.claude.json`\n\n### Environment Variables\n\nThe toolkit automatically manages these environment variables:\n\n- `ANTHROPIC_API_KEY`: Your API key for the current provider\n- `ANTHROPIC_BASE_URL`: Base URL for custom providers (not set for official Anthropic API)\n\n### Provider Configuration Format\n\n```json\n{\n  \"Provider Name\": {\n    \"base_url\": \"https://api.example.com/anthropic/\",\n    \"api_key\": \"your-encrypted-api-key\"\n  }\n}\n```\n\n## Troubleshooting\n\n### Common Issues\n\n#### Node.js Version Issues\n\n```bash\n# Check your Node.js version\nnode -v\n\n# The toolkit requires Node.js 18+\n# Install or update Node.js from https://nodejs.org/\n```\n\n#### npm Permission Issues (Linux/macOS)\n\n```bash\n# If you get permission errors, configure npm for global installs\nmkdir ~/.npm-global\nnpm config set prefix '~/.npm-global'\n# Add ~/.npm-global/bin to your PATH\n```\n\n#### PowerShell Execution Policy (Windows)\n\n```powershell\n# If you can't run the script, check execution policy\nGet-ExecutionPolicy\n\n# Allow script execution (run as administrator)\nSet-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser\n```\n\n### Getting Help\n\nIf you encounter issues:\n\n1. **Run the check command** to verify your installation\n2. **Check the troubleshooting section** above\n3. **Review the error messages** - they often contain helpful information\n4. **Check your internet connection** for installation issues\n\n## Inspiration and Attribution\n\nThis repository was inspired by the [LLM-Red-Team/kimi-cc](https://github.com/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 multiple Anthropic-compatible API providers with advanced configuration management, provider switching capabilities, and robust installation processes.\n\nKey enhancements over the original inspiration include:\n\n- **Cross-platform support** for both Linux/macOS (Bash) and Windows (PowerShell)\n- **Multiple provider management** with easy switching between configured providers\n- **Persistent configuration** with JSON-based provider storage\n- **Interactive setup** with user-friendly prompts and error handling\n- **Comprehensive command set** for installation, updates, provider management, and system checks\n- **Advanced environment variable management** across different shell types\n\n## Disclaimer\n\nThis toolkit is provided as-is, without any warranty or guarantee of fitness for a particular purpose. Use at your own risk. The authors and contributors are not responsible for any loss, damage, or issues arising from the use of this toolkit or any third-party API providers. Always review and comply with the terms of service and privacy policies of any API providers you use.\n\n## License\n\nThis repository is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxixu-me%2Fclaude-code-toolkit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fxixu-me%2Fclaude-code-toolkit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fxixu-me%2Fclaude-code-toolkit/lists"}