1 line
9.9 KiB
JSON
1 line
9.9 KiB
JSON
{"repo": "2404589803/deepseek-cc", "files": {"README.md": {"2cf9969f452a2982b8413e6749a5e6fb54f2235a": {"t": 1785746491.7384007, "n": 4698, "h": "fb52fa44ae06671a", "c": "# DeepSeek CC\n\n**English** | [中文](README-zh.md)\n\nUse DeepSeek's latest models to power your Claude Code at low cost.\n\n## Features\n\n- 🚀 **Automatic Setup**: Installs Node.js v22 and Claude Code automatically\n- 🔑 **API Key Configuration**: Securely prompts for and stores your DeepSeek API key\n- 🔧 **Environment Variables**: Configures Claude Code to use DeepSeek API instead of Anthropic's\n- 🐚 **Multi-shell Support**: Automatically detects and configures bash, zsh, fish, or default profile\n- ✅ **Onboarding Skip**: Automatically configures Claude Code to skip the onboarding process\n- 💰 **Cost Effective**: Use DeepSeek's affordable API pricing with Claude Code interface\n\n## Prerequisites\n\n- Unix/Linux/macOS operating system\n- curl (for downloading nvm and making API calls)\n- A DeepSeek API key (get one at [platform.deepseek.com](https://platform.deepseek.com/api_keys))\n\n## Quick Installation\n\n1. **Get your DeepSeek API key**:\n - Visit [DeepSeek Open Platform](https://platform.deepseek.com/api_keys)\n - Go to User Center (top right) → API Key Management → Create New API Key\n\n2. **Run the installation script**:\n ```bash\n bash -c \"$(curl -fsSL https://raw.githubusercontent.com/2404589803/deepseek-cc/main/install-deepseek.sh)\"\n ```\n\n3. **Enter your API key when prompted**\n\n4. **Restart your terminal** or run:\n ```bash\n source ~/.bashrc # or ~/.zshrc, ~/.profile, etc.\n ```\n\n5. **Start using Claude Code with DeepSeek**:\n ```bash\n claude\n ```\n\n## Environment Variables\n\nThe script configures the following environment variables to redirect Claude Code to use DeepSeek API:\n\n- `ANTHROPIC_BASE_URL`: https://api.deepseek.com\n- `ANTHROPIC_API_KEY`: Your DeepSeek API key\n- `DEEPSEEK_BASE_URL`: https://api.deepseek.com\n- `DEEPSEEK_API_KEY`: Your DeepSeek API key\n- `OPENAI_BASE_URL`: https://api.deepseek.com (for OpenAI SDK compatibility)\n- `OPENAI_API_KEY`: Your DeepSeek API key\n\n## Available Models\n\n- **deepseek-chat**: DeepSeek-V3-0324 (General chat model)\n- **deepseek-reasoner**: DeepSeek-R1-0528 (Reasoning model)\n\n## How It Works\n\nDeepSeek CC works by:\n1. Installing Claude Code (Anthropic's official CLI tool)\n2. Configuring environment variables to redirect API calls from Anthropic to DeepSeek\n3. Since DeepSeek uses OpenAI-compatible API format, Claude Code works seamlessly\n4. All your conversations are processed through DeepSeek's models at DeepSeek's pricing\n\n## Usage\n\nAfter installation, simply use Claude Code as normal:\n\n```bash\nclaude\n```\n\nClaude Code will now use DeepSeek's API instead of Anthropic's, giving you:\n- Access to DeepSeek's powerful models\n- Lower costs compared to Anthropic's pricing\n- Same Claude Code interface and features\n- All Claude Code commands and functionality\n\n## Manual API Usage\n\nYou can also use the DeepSeek API directly:\n\n### Using curl\n\n```bash\ncurl https://api.deepseek.com/chat/completions \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $DEEPSEEK_API_KEY\" \\\n -d '{\n \"model\": \"deepseek-chat\",\n \"messages\": [\n {\"role\": \"system\", \"content\": \"You are a helpful assistant.\"},\n {\"role\": \"user\", \"content\": \"Hello!\"}\n ],\n \"stream\": false\n }'\n```\n\n### Using Node.js with OpenAI SDK\n\n```javascript\nimport OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: process.env.OPENAI_API_KEY,\n baseURL: process.env.OPENAI_BASE_URL\n});\n\nconst completion = await client.chat.completions.create({\n model: 'deepseek-chat',\n messages: [\n { role: 'system', content: 'You are a helpful assistant.' },\n { role: 'user', content: 'Hello!' }\n ]\n});\n\nconsole.log(completion.choices[0].message.content);\n```\n\n## Troubleshooting\n\n### Claude Code Not Working\n- Make sure you restarted your terminal after installation\n- Check that environment variables are set: `echo $ANTHROPIC_API_KEY`\n- Verify your DeepSeek API key is valid\n\n### Node.js Installation Issues\n- Ensure curl is installed and working\n- Check your internet connection\n- Make sure you have write permissions to your home directory\n\n### Environment Variables Not Working\n- Restart your terminal after running the script\n- Check that the variables were added to the correct shell configuration file\n- Verify the API key is valid at [platform.deepseek.com](https://platform.deepseek.com/api_keys)\n\n## Documentation\n\n- [DeepSeek API Documentation](https://platform.deepseek.com/docs)\n- [DeepSeek API Keys Management](https://platform.deepseek.com/api_keys)\n- [Claude Code Documentation](https://github.com/anthropics/claude-code)\n\n## License\n\nThis project is licensed under the Apache License 2.0 - see the [LICENSE](LICENSE) file for details.\n\n## Contributing\n\nFeel free to submit issues and enhancement requests! "}, "d60905210f51389ac1ad35fe93ae00daae01a8be": {"t": 1785764902.1181855, "n": 4691, "h": "41b98234b4851679", "c": "# DeepSeek CC\n\n**English** | [中文](README-zh.md)\n\nUse DeepSeek's latest models to power your Claude Code at low cost.\n\n## Features\n\n- 🚀 **Automatic Setup**: Installs Node.js v22 and Claude Code automatically\n- 🔑 **API Key Configuration**: Securely prompts for and stores your DeepSeek API key\n- 🔧 **Environment Variables**: Configures Claude Code to use DeepSeek API instead of Anthropic's\n- 🐚 **Multi-shell Support**: Automatically detects and configures bash, zsh, fish, or default profile\n- ✅ **Onboarding Skip**: Automatically configures Claude Code to skip the onboarding process\n- 💰 **Cost Effective**: Use DeepSeek's affordable API pricing with Claude Code interface\n\n## Prerequisites\n\n- Unix/Linux/macOS operating system\n- curl (for downloading nvm and making API calls)\n- A DeepSeek API key (get one at [platform.deepseek.com](https://platform.deepseek.com/api_keys))\n\n## Quick Installation\n\n1. **Get your DeepSeek API key**:\n - Visit [DeepSeek Open Platform](https://platform.deepseek.com/api_keys)\n - Go to User Center (top right) → API Key Management → Create New API Key\n\n2. **Run the installation script**:\n ```bash\n bash -c \"$(curl -fsSL https://raw.githubusercontent.com/2404589803/deepseek-cc/main/install-deepseek.sh)\"\n ```\n\n3. **Enter your API key when prompted**\n\n4. **Restart your terminal** or run:\n ```bash\n source ~/.bashrc # or ~/.zshrc, ~/.profile, etc.\n ```\n\n5. **Start using Claude Code with DeepSeek**:\n ```bash\n claude\n ```\n\n## Environment Variables\n\nThe script configures the following environment variables to redirect Claude Code to use DeepSeek API:\n\n- `ANTHROPIC_BASE_URL`: https://api.deepseek.com\n- `ANTHROPIC_API_KEY`: Your DeepSeek API key\n- `DEEPSEEK_BASE_URL`: https://api.deepseek.com\n- `DEEPSEEK_API_KEY`: Your DeepSeek API key\n- `OPENAI_BASE_URL`: https://api.deepseek.com (for OpenAI SDK compatibility)\n- `OPENAI_API_KEY`: Your DeepSeek API key\n\n## Available Models\n\n- **deepseek-chat**: DeepSeek-V3-0324 (General chat model)\n- **deepseek-reasoner**: DeepSeek-R1-0528 (Reasoning model)\n\n## How It Works\n\nDeepSeek CC works by:\n1. Installing Claude Code (Anthropic's official CLI tool)\n2. Configuring environment variables to redirect API calls from Anthropic to DeepSeek\n3. Since DeepSeek uses OpenAI-compatible API format, Claude Code works seamlessly\n4. All your conversations are processed through DeepSeek's models at DeepSeek's pricing\n\n## Usage\n\nAfter installation, simply use Claude Code as normal:\n\n```bash\nclaude\n```\n\nClaude Code will now use DeepSeek's API instead of Anthropic's, giving you:\n- Access to DeepSeek's powerful models\n- Lower costs compared to Anthropic's pricing\n- Same Claude Code interface and features\n- All Claude Code commands and functionality\n\n## Manual API Usage\n\nYou can also use the DeepSeek API directly:\n\n### Using curl\n\n```bash\ncurl https://api.deepseek.com/chat/completions \\\n -H \"Content-Type: application/json\" \\\n -H \"Authorization: Bearer $DEEPSEEK_API_KEY\" \\\n -d '{\n \"model\": \"deepseek-chat\",\n \"messages\": [\n {\"role\": \"system\", \"content\": \"You are a helpful assistant.\"},\n {\"role\": \"user\", \"content\": \"Hello!\"}\n ],\n \"stream\": false\n }'\n```\n\n### Using Node.js with OpenAI SDK\n\n```javascript\nimport OpenAI from 'openai';\n\nconst client = new OpenAI({\n apiKey: process.env.OPENAI_API_KEY,\n baseURL: process.env.OPENAI_BASE_URL\n});\n\nconst completion = await client.chat.completions.create({\n model: 'deepseek-chat',\n messages: [\n { role: 'system', content: 'You are a helpful assistant.' },\n { role: 'user', content: 'Hello!' }\n ]\n});\n\nconsole.log(completion.choices[0].message.content);\n```\n\n## Troubleshooting\n\n### Claude Code Not Working\n- Make sure you restarted your terminal after installation\n- Check that environment variables are set: `echo $ANTHROPIC_API_KEY`\n- Verify your DeepSeek API key is valid\n\n### Node.js Installation Issues\n- Ensure curl is installed and working\n- Check your internet connection\n- Make sure you have write permissions to your home directory\n\n### Environment Variables Not Working\n- Restart your terminal after running the script\n- Check that the variables were added to the correct shell configuration file\n- Verify the API key is valid at [platform.deepseek.com](https://platform.deepseek.com/api_keys)\n\n## Documentation\n\n- [DeepSeek API Documentation](https://platform.deepseek.com/docs)\n- [DeepSeek API Keys Management](https://platform.deepseek.com/api_keys)\n- [Claude Code Documentation](https://github.com/anthropics/claude-code)\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Contributing\n\nFeel free to submit issues and enhancement requests! "}}}} |