claude-code-nexus

作者 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.

253
Stars
44
Forks
TypeScript
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

本 Skill 为第三方开源软件,独立托管于 GitHub。SkillTip 仅为信息目录,不控制或维护底层仓库。所显示的安全检查为自动化且范围有限,安装前请自行审查源码。

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/KroMiose/claude-code-nexus

快速入门

使用 claude-code-nexus 等 Skills 的指南。

安全报告

已验证

上次扫描:—

{
  "status": "PASSED",
  "issues": []
}

README.md

Claude Code Nexus

English | 中文版

🤖 一个 Claude API 代理服务平台 - 让 Claude Code CLI 无缝兼容任何 OpenAI API 服务

部署状态 License QQ群1 QQ群2 Discord

Claude Code Nexus 是一个部署在 Cloudflare 上的高性能 AI 代理服务平台。它专为 Claude Code CLI 设计,通过一个兼容层,让你可以将 Claude Code 的请求无缝转发到任何 OpenAI 兼容的 API 服务,例如 OneAPI、Azure OpenAI、本地的 Ollama,或是其他任何遵循 OpenAI 规范的 LLM 服务。

✨ 核心价值

  • 🔓 供应商解锁: 不再被锁定在单一的 AI 服务提供商。你可以自由选择性价比最高、性能最好的服务。

  • 🔌 无缝兼容: 兼容 Claude Messages API,包括流式响应 (SSE)、工具使用 (Tool Use) 和多模态输入。

  • 🎯 智能模型映射: 在网页上轻松配置模型映射规则(例如,将 claude-3-haiku 映射到 gpt-4o-mini),Claude Code CLI 无需任何改动。

  • 🔐 安全可靠: API Key 在数据库中加密存储,用户数据严格隔离。

  • 🚀 全球加速: 基于 Cloudflare 的全球网络,为你的 AI 应用提供低延迟、高可用的访问体验。

  • 🌍 开源可控: 项目完全开源,你可以自行部署、修改和扩展,数据和服务完全由你掌控。

🚀 快速开始 (3步)

1. 登录 & 获取 API Key

访问 https://claude.nekro.ai/,使用你的 GitHub 账户登录。系统会自动为你生成一个专属的 API Key。

2. 配置你的后端服务

在控制台中,配置你的 OpenAI 兼容 API 服务。你需要提供:

  • Base URL: 你的 API 服务地址 (例如: https://api.oneapi.com)

  • API Key: 你的 API 服务密钥

3. 在 Claude Code 中使用

在你的终端中设置以下环境变量:

# 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 将是您的理想选择。

🤝 参与贡献

欢迎通过以下方式参与项目:

📄 许可证

本项目基于 MIT License 开源。

⭐ Star 趋势

Star History Chart

常见问题

What is claude-code-nexus?

claude-code-nexus is an open-source api integration skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built 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. It has 253 GitHub stars.

Is claude-code-nexus safe to use?

claude-code-nexus returned warnings in SkillsLLM's automated security scan. It has no critical vulnerabilities, but review the flagged issues in the Security Report section before adding it to your workflow.

How do I install claude-code-nexus?

Clone the repository with "git clone https://github.com/KroMiose/claude-code-nexus" and add it to your Claude Code skills directory (see the Installation section above).

What programming language is claude-code-nexus written in?

claude-code-nexus is primarily written in TypeScript. It is open-source under KroMiose on GitHub, so you can review or fork the full source.

Are there alternatives to claude-code-nexus?

Yes. SkillsLLM lists many other API Integration skills you can browse and compare side by side. Open the API Integration category from the badge at the top of this page, or use the Related Skills and comparison links further down to weigh claude-code-nexus against similar tools.

评论 (0)

暂无评论,成为第一个分享想法的人!

CLIProxyAPI

by router-for-me

Wrap Antigravity, ChatGPT Codex, Claude Code, Grok Build as an OpenAI/Gemini/Claude/Codex compatible API service, allowing you to enjoy the free Gemini 3.1 Pro, GPT 5.6 Series, Grok 4.5, Claude model through API

48,3767,452Go
API Integration
查看详情

sub2api

by Wei-Shaw

Sub2API 一站式开源中转服务,让 Claude、Openai 、Gemini、Grok订阅统一接入,支持拼车共享,更高效分摊成本,原生工具无缝使用。

38,8308,041Go
API Integration
查看详情

claude-code-hub

by ding113

一个现代化的 Claude Code & Codex API 代理服务,提供智能负载均衡、用户管理和使用统计功能。

3,328387TypeScript
API Integration
查看详情

cc-gateway

by motiful

AI API identity gateway — reverse proxy that normalizes device fingerprints and telemetry for privacy-preserving API proxying

3,013501TypeScript
API Integration
查看详情

octopus

by bestruirui

One Hub All LLMs For You | 为个人打造的 LLM API 聚合网关

2,483394TypeScript
API Integration
查看详情

开发者还喜欢

基于喜欢此 Skill 的开发者投票和收藏

ECC

by affaan-m

10

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

242,21936,702JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情
15

An agentic skills framework & software development methodology that works.

234,96620,863Shell
AI 智能体ai-agentsbrainstorming
查看详情

hermes-agent

by NousResearch

10

The agent that grows with you

234,43747,175Python
AI 智能体ai-agentsagent-orchestration
查看详情

n8n

by n8n-io

12

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

201,88160,308TypeScript
MCP 服务器apisai-tools
查看详情

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.

185,94028,768JavaScript
AI 智能体ai-agentsanthropicclaude-code
查看详情

cc-switch

by farion1231

3

A cross-platform desktop All-in-One assistant for Claude Code, Codex, OpenCode, OpenClaw, Grok Build & Hermes Agent. Only official website: ccswitch.io

128,8688,826Rust
AI 智能体claude-codeai-tools
查看详情