by KroMiose
Claude API Proxy platform - Seamlessly forward Claude Code requests to any OpenAI-compatible API service with smart model mapping, streaming support, deployed on Cloudflare Worker.
# Add to your Claude Code skills
git clone https://github.com/KroMiose/claude-code-nexusEnglish | 中文版
🤖 一个 Claude API 代理服务平台 - 让 Claude Code CLI 无缝兼容任何 OpenAI API 服务
Claude Code Nexus 是一个部署在 Cloudflare 上的高性能 AI 代理服务平台。它专为 Claude Code CLI 设计,通过一个兼容层,让你可以将 Claude Code 的请求无缝转发到任何 OpenAI 兼容的 API 服务,例如 OneAPI、Azure OpenAI、本地的 Ollama,或是其他任何遵循 OpenAI 规范的 LLM 服务。
claude-3-haiku 映射到 gpt-4o-mini),Claude Code CLI 无需任何改动。No comments yet. Be the first to share your thoughts!
访问 https://claude.nekro.ai/,使用你的 GitHub 账户登录。系统会自动为你生成一个专属的 API Key。
在控制台中,配置你的 OpenAI 兼容 API 服务。你需要提供:
https://api.oneapi.com)在你的终端中设置以下环境变量:
# 1. 设置你的专属 API Key
export ANTHROPIC_API_KEY="ak-your-nexus-key"
# 2. 设置代理服务地址
export ANTHROPIC_BASE_URL="https://claude.nekro.ai"
# 3. 正常使用 Claude Code!
claude
🎉 完成! 现在你的 Claude Code CLI 已经通过 Claude Code Nexus 代理,使用你自己的后端服务了。
我们提供了完整的项目需求和实现细节文档:
如果您正在寻找一款高扩展性的 AI Agent 框架,我们推荐您关注我们的另一个项目:
Nekro Agent - 一个集代码执行能力与高度可扩展性为一体的多人跨平台聊天机器人框架。支持沙盒驱动、可视化界面、高扩展性插件系统,原生支持 QQ、Discord、Minecraft、B站直播等多种平台。如果您需要构建智能聊天机器人或自动化 Agent 系统,Nekro Agent 将是您的理想选择。
欢迎通过以下方式参与项目:
本项目基于 ...