diff --git a/README.md b/README.md index 4bd6366..f622c9c 100644 --- a/README.md +++ b/README.md @@ -2,25 +2,59 @@ **中文** | [English](README_EN.md) | [日本語](README_JA.md) | [한국어](README_KO.md) | [Français](README_FR.md) | [Deutsch](README_DE.md) | [Español](README_ES.md) | [Русский](README_RU.md) -使用Kimi的最新模型(kimi-k2-0711-preview)驱动您的Claude Code。 +使用多个AI服务商的Kimi模型驱动您的Claude Code,支持低成本、高质量的AI编程体验。 -## 快速安装 +## 🚀 支持的AI服务商 -1. 前往Kimi开放平台申请API Key。 +本项目支持以下三个AI服务商,您可以根据需求选择: -点击前往:[Kimi开放平台](https://platform.moonshot.cn/) +### 1. **Moonshot AI (原月之暗面)** +- **模型**: kimi-k2-0711-preview +- **API获取**: [Kimi开放平台](https://platform.moonshot.cn/) +- **特点**: 官方服务,稳定可靠 -右上角用户中心 -> API Key 管理 -> 新建 API Key +### 2. **硅基流动 (SiliconFlow)** +- **模型**: moonshotai/Kimi-K2-Instruct +- **API获取**: [硅基流动控制台](https://cloud.siliconflow.cn/account/ak) +- **特点**: 高性价比,快速响应 +### 3. **无问芯穹 (InfiniAI)** +- **模型**: mo-dbiof4b73ofzda2r (kimi-k2-instruct) +- **API获取**: [无问芯穹平台](https://cloud.infini-ai.com/) +- **特点**: 企业级服务,高并发支持 -2. 快速安装,会要求您输入 API Key,最终回车即可。 +## 🔧 快速安装 + +### 步骤1:获取API Key +根据您选择的服务商,前往对应平台申请API Key: +- **Moonshot AI**: 右上角用户中心 → API Key 管理 → 新建 API Key +- **硅基流动**: 控制台 → 账户管理 → API密钥 +- **无问芯穹**: 平台控制台 → API密钥管理 + +### 步骤2:一键安装 +运行安装脚本,会提示您选择服务商并输入对应的API Key: ```shell -bash -c "$(curl -fsSL https://raw.githubusercontent.com/LLM-Red-Team/kimi-cc/refs/heads/main/install.sh)" +bash -c "$(curl -fsSL https://raw.githubusercontent.com/jiangye1314/kimi-cc/refs/heads/main/install.sh)" ``` -3. 开始低成本使用 Claude Code。 +### 步骤3:开始使用 +安装完成后,即可开始低成本使用Claude Code: ```shell claude ``` + +## 💡 使用说明 + +1. **交互式选择**: 安装时会提示您选择服务商(1-3) +2. **安全输入**: API Key输入过程完全隐藏,确保安全 +3. **自动配置**: 脚本会自动配置对应的环境变量 +4. **即开即用**: 配置完成后立即可以使用Claude Code + +## 🌟 特色功能 + +- **多服务商支持**: 三个优质AI服务商任您选择 +- **成本优化**: 根据需求选择最具性价比的服务 +- **简单易用**: 一键安装,无需复杂配置 +- **兼容性强**: 完全兼容原有Claude Code功能 diff --git a/README_DE.md b/README_DE.md index 4eb202e..6d54933 100644 --- a/README_DE.md +++ b/README_DE.md @@ -15,7 +15,7 @@ Rechts oben Benutzerzentrum -> API-Schlüssel-Verwaltung -> Neuen API-Schlüssel 2. Schnelle Installation - Sie werden aufgefordert, Ihren API-Schlüssel einzugeben, dann drücken Sie Enter zum Abschluss. ```shell -bash -c "$(curl -fsSL https://raw.githubusercontent.com/LLM-Red-Team/kimi-cc/refs/heads/main/install.sh)" +bash -c "$(curl -fsSL https://raw.githubusercontent.com/jiangye1314/kimi-cc/refs/heads/main/install.sh)" ``` 3. Beginnen Sie mit der kostengünstigen Nutzung von Claude Code. diff --git a/README_EN.md b/README_EN.md index 57ff3dd..5b3c8c0 100644 --- a/README_EN.md +++ b/README_EN.md @@ -2,53 +2,59 @@ [中文](README.md) | **English** | [日本語](README_JA.md) | [한국어](README_KO.md) | [Français](README_FR.md) | [Deutsch](README_DE.md) | [Español](README_ES.md) | [Русский](README_RU.md) -Use Kimi's latest model (kimi-k2-0711-preview) to power your Claude Code. +Power your Claude Code with Kimi models from multiple AI service providers, offering low-cost, high-quality AI programming experience. -## Quick Installation +## 🚀 Supported AI Service Providers -1. Go to Kimi Open Platform to apply for an API Key. +This project supports three AI service providers for you to choose from: -Click to visit: [Kimi Open Platform](https://platform.moonshot.cn/) +### 1. **Moonshot AI** +- **Model**: kimi-k2-0711-preview +- **API Access**: [Kimi Open Platform](https://platform.moonshot.cn/) +- **Features**: Official service, stable and reliable -Top right corner User Center -> API Key Management -> Create New API Key +### 2. **SiliconFlow** +- **Model**: moonshotai/Kimi-K2-Instruct +- **API Access**: [SiliconFlow Console](https://cloud.siliconflow.cn/account/ak) +- **Features**: High cost-effectiveness, fast response -2. Quick installation - you will be prompted to enter your API Key, then press Enter to complete. +### 3. **InfiniAI** +- **Model**: mo-dbiof4b73ofzda2r (kimi-k2-instruct) +- **API Access**: [InfiniAI Platform](https://cloud.infini-ai.com/) +- **Features**: Enterprise-grade service, high concurrency support + +## 🔧 Quick Installation + +### Step 1: Get API Key +According to your chosen service provider, go to the corresponding platform to apply for an API Key: +- **Moonshot AI**: Top right User Center → API Key Management → Create New API Key +- **SiliconFlow**: Console → Account Management → API Keys +- **InfiniAI**: Platform Console → API Key Management + +### Step 2: One-Click Installation +Run the installation script, which will prompt you to select a service provider and enter the corresponding API Key: ```shell -bash -c "$(curl -fsSL https://raw.githubusercontent.com/LLM-Red-Team/kimi-cc/refs/heads/main/install.sh)" +bash -c "$(curl -fsSL https://raw.githubusercontent.com/jiangye1314/kimi-cc/refs/heads/main/install.sh)" ``` -3. Start using Claude Code at low cost. +### Step 3: Start Using +After installation, you can start using Claude Code at low cost: ```shell claude ``` -## Features - -- **Cost-effective**: Use Kimi's competitive pricing instead of direct Anthropic API -- **Easy setup**: One-command installation with automatic configuration -- **Seamless integration**: Works with existing Claude Code workflows -- **Latest model**: Powered by Kimi's kimi-k2-0711-preview model - -## What the installer does +## 💡 Usage Instructions -The installation script automatically: -1. Checks and installs Node.js (v18+) if needed -2. Installs Claude Code globally via npm -3. Configures Claude Code to skip onboarding -4. Prompts for your Moonshot API key -5. Sets up environment variables to redirect API calls to Kimi's servers - -## Manual Configuration - -If you prefer to configure manually, set these environment variables: - -```bash -export ANTHROPIC_BASE_URL=https://api.moonshot.cn/anthropic/ -export ANTHROPIC_API_KEY=your_moonshot_api_key_here -``` +1. **Interactive Selection**: Installation will prompt you to choose a service provider (1-3) +2. **Secure Input**: API Key input process is completely hidden for security +3. **Automatic Configuration**: Script automatically configures corresponding environment variables +4. **Ready to Use**: Immediately usable after configuration -## Support +## 🌟 Key Features -For issues or questions, please visit the [Kimi Open Platform](https://platform.moonshot.cn/) or check the original Claude Code documentation. \ No newline at end of file +- **Multi-Provider Support**: Choose from three premium AI service providers +- **Cost Optimization**: Select the most cost-effective service based on your needs +- **Easy to Use**: One-click installation with no complex configuration +- **High Compatibility**: Fully compatible with original Claude Code functionality \ No newline at end of file diff --git a/README_ES.md b/README_ES.md index 3bf8f7c..cb1a326 100644 --- a/README_ES.md +++ b/README_ES.md @@ -15,7 +15,7 @@ Esquina superior derecha Centro de usuario -> Gestión de claves API -> Crear nu 2. Instalación rápida - se te pedirá que ingreses tu clave API, luego presiona Enter para completar. ```shell -bash -c "$(curl -fsSL https://raw.githubusercontent.com/LLM-Red-Team/kimi-cc/refs/heads/main/install.sh)" +bash -c "$(curl -fsSL https://raw.githubusercontent.com/jiangye1314/kimi-cc/refs/heads/main/install.sh)" ``` 3. Comienza a usar Claude Code a bajo costo. diff --git a/README_FR.md b/README_FR.md index 96b7dcb..7650a6b 100644 --- a/README_FR.md +++ b/README_FR.md @@ -15,7 +15,7 @@ Coin supérieur droit Centre utilisateur -> Gestion des clés API -> Créer une 2. Installation rapide - vous serez invité à saisir votre clé API, puis appuyez sur Entrée pour terminer. ```shell -bash -c "$(curl -fsSL https://raw.githubusercontent.com/LLM-Red-Team/kimi-cc/refs/heads/main/install.sh)" +bash -c "$(curl -fsSL https://raw.githubusercontent.com/jiangye1314/kimi-cc/refs/heads/main/install.sh)" ``` 3. Commencez à utiliser Claude Code à faible coût. diff --git a/README_JA.md b/README_JA.md index 76ad2ed..e4e56b0 100644 --- a/README_JA.md +++ b/README_JA.md @@ -15,7 +15,7 @@ Kimiの最新モデル(kimi-k2-0711-preview)を使用してClaude Codeを駆 2. クイックインストール - API Keyの入力を求められますので、最後にEnterを押してください。 ```shell -bash -c "$(curl -fsSL https://raw.githubusercontent.com/LLM-Red-Team/kimi-cc/refs/heads/main/install.sh)" +bash -c "$(curl -fsSL https://raw.githubusercontent.com/jiangye1314/kimi-cc/refs/heads/main/install.sh)" ``` 3. 低コストでClaude Codeの使用を開始します。 diff --git a/README_KO.md b/README_KO.md index fc68002..520da6f 100644 --- a/README_KO.md +++ b/README_KO.md @@ -15,7 +15,7 @@ Kimi의 최신 모델(kimi-k2-0711-preview)을 사용하여 Claude Code를 구 2. 빠른 설치 - API Key 입력을 요청하며, 마지막에 Enter를 눌러주세요. ```shell -bash -c "$(curl -fsSL https://raw.githubusercontent.com/LLM-Red-Team/kimi-cc/refs/heads/main/install.sh)" +bash -c "$(curl -fsSL https://raw.githubusercontent.com/jiangye1314/kimi-cc/refs/heads/main/install.sh)" ``` 3. 저렴한 비용으로 Claude Code 사용을 시작하세요. diff --git a/README_RU.md b/README_RU.md index cdf8eff..851eca2 100644 --- a/README_RU.md +++ b/README_RU.md @@ -15,7 +15,7 @@ 2. Быстрая установка - вам будет предложено ввести ваш API ключ, затем нажмите Enter для завершения. ```shell -bash -c "$(curl -fsSL https://raw.githubusercontent.com/LLM-Red-Team/kimi-cc/refs/heads/main/install.sh)" +bash -c "$(curl -fsSL https://raw.githubusercontent.com/jiangye1314/kimi-cc/refs/heads/main/install.sh)" ``` 3. Начните использовать Claude Code с низкими затратами. diff --git a/install.sh b/install.sh index 780f1d3..92b2d26 100644 --- a/install.sh +++ b/install.sh @@ -68,9 +68,43 @@ node --eval ' fs.writeFileSync(filePath,JSON.stringify({ hasCompletedOnboarding: true }), "utf-8"); }' -# Prompt user for API key -echo "🔑 Please enter your Moonshot API key:" -echo " You can get your API key from: https://platform.moonshot.cn/console/api-keys" +# Prompt user to select API provider +echo "🔧 Please select your API provider:" +echo " 1) Moonshot AI (原月之暗面)" +echo " 2) 硅基流动 (SiliconFlow)" +echo " 3) 无问芯穹 (InfiniAI)" +echo "" +echo -n "Please enter your choice (1, 2, or 3): " +read provider_choice +echo "" + +case "$provider_choice" in + 1) + echo "📡 Selected: Moonshot AI" + base_url="https://api.moonshot.cn/anthropic/" + echo "🔑 Please enter your Moonshot API key:" + echo " You can get your API key from: https://platform.moonshot.cn/console/api-keys" + ;; + 2) + echo "📡 Selected: 硅基流动 (SiliconFlow)" + base_url="https://api.siliconflow.cn/v1/chat/completions" + echo "🔑 Please enter your SiliconFlow API key:" + echo " You can get your API key from: https://cloud.siliconflow.cn/account/ak" + echo " Model: moonshotai/Kimi-K2-Instruct" + ;; + 3) + echo "📡 Selected: 无问芯穹 (InfiniAI)" + base_url="https://cloud.infini-ai.com/maas/v1/chat/completions" + echo "🔑 Please enter your InfiniAI API key:" + echo " You can get your API key from: https://cloud.infini-ai.com/" + echo " Model: mo-dbiof4b73ofzda2r (kimi-k2-instruct)" + ;; + *) + echo "⚠️ Invalid choice. Please run the script again and select 1, 2, or 3." + exit 1 + ;; +esac + echo " Note: The input is hidden for security. Please paste your API key directly." echo "" read -s api_key @@ -109,7 +143,7 @@ else # Append new entries echo "" >> "$rc_file" echo "# Claude Code environment variables" >> "$rc_file" - echo "export ANTHROPIC_BASE_URL=https://api.moonshot.cn/anthropic/" >> "$rc_file" + echo "export ANTHROPIC_BASE_URL=$base_url" >> "$rc_file" echo "export ANTHROPIC_API_KEY=$api_key" >> "$rc_file" echo "✅ Environment variables added to $rc_file" fi