ccNexus

作者 lich0821已验证

Intelligent API gateway for Claude Code and Codex CLI - rotate endpoints, monitor usage, and seamlessly integrate OpenAI, Gemini, and other platforms.

977
Stars
130
Forks
Go
语言
2026/8/23
添加时间

⚠️ 第三方软件声明

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

阅读服务条款

安装

添加到你的 Claude Code skills 目录:

# Add to your Claude Code skills
git clone https://github.com/lich0821/ccNexus

快速入门

使用 ccNexus 等 Skills 的指南。

安全报告

已验证

上次扫描:—

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

README.md

功能特性

  • 多端点轮换:自动故障转移,一个失败自动切换下一个
  • API 格式转换:支持 Claude、OpenAI、Gemini 格式互转
  • Codex Token Pool:支持批量导入 access_token/refresh_token,自动轮换、自动刷新、失效隔离与状态管理
  • Token Pool 使用统计:单条凭证请求/错误/Token 统计,支持快捷查看
  • 模型列表 API:提供 /v1/models,支持缓存与按需刷新
  • 服务端鉴权:headless/server 模式支持 Basic Auth
  • 实时统计:事件驱动的零延迟统计更新,支持今日/昨日/本周/本月四周期快速切换
  • 端点筛选:按类型、可用性、启用状态多选筛选,快速定位端点
  • 端点克隆:一键复制现有端点配置,快速创建相似端点
  • WebDAV 同步:多设备间同步配置和数据
  • 跨平台:Windows、macOS、Linux
  • Docker:纯后端 HTTP 服务,并提供容器化运行
明亮主题暗黑主题

快速开始

1. 下载安装

下载最新版本

  • Windows: 解压后运行 ccNexus.exe
  • macOS: 移动到「应用程序」,首次运行右键点击 → 打开
  • Linux: tar -xzf ccNexus-linux-amd64.tar.gz && ./ccNexus

2. 添加端点

点击「添加端点」,填写 API 地址、密钥,选择转换器(Claude / OpenAI Chat / OpenAI Responses / Gemini)。

  • 如果端点填写了模型,会覆盖客户端请求里的模型
  • 如果端点不填写模型,则透传客户端原请求模型

如需使用 Codex Token Pool:

  • 认证方式选择 Codex Token Pool
  • 在 Token Pool 页面导入一批 token JSON(支持 access_token + refresh_token
  • 系统会自动进行 token 轮换、401 后刷新与状态管理(active/expiring/need_refresh/invalid 等)

3. 配置 CC

Claude Code

~/.claude/settings.json

{
  "env": {
    "ANTHROPIC_AUTH_TOKEN": "随便写,不重要",
    "ANTHROPIC_BASE_URL": "http://127.0.0.1:3000",
    "CLAUDE_CODE_MAX_OUTPUT_TOKENS": "64000", // 有些模型可能不支持 64k
  }
  // 其他配置
}

Codex CLI

只需要配置 ~/.codex/config.toml

model_provider = "ccNexus"
model = "gpt-5-codex"
preferred_auth_method = "apikey"

[model_providers.ccNexus]
name = "ccNexus"
base_url = "http://localhost:3000/v1"
wire_api = "responses"  # 或 "chat"

# 其他配置

~/.codex/auth.json 可以忽略了。

运行提示

  • ccNexus 默认监听 3000 端口,可通过 CLI 参数 -port 或环境变量 CCNEXUS_PORT 覆盖。
  • 如果启用了 Basic Auth,首次启动且未设置密码时会自动生成随机密码并打印到日志。
  • /v1/models 默认走缓存;如需强制刷新,可使用启用的 refresh 参数能力。
  • headless 模式下建议仅在可信内网使用,或通过反向代理加 TLS 和访问控制。

获取帮助

微信群公众号个人微信
问题反馈请加群公众号群过期请加好友

文档

许可证

MIT

常见问题

What is ccNexus?

ccNexus is an open-source cli tools skill for AI coding assistants such as Claude Code, Codex CLI, and ChatGPT, built by lich0821. Intelligent API gateway for Claude Code and Codex CLI - rotate endpoints, monitor usage, and seamlessly integrate OpenAI, Gemini, and other platforms. It has 977 GitHub stars.

Is ccNexus safe to use?

Yes. ccNexus passed SkillsLLM's automated security scan — a dependency vulnerability audit plus prompt-injection heuristics — with no high-severity issues. You can read the full report in the Security Report section on this page.

How do I install ccNexus?

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

What programming language is ccNexus written in?

ccNexus is primarily written in Go. It is open-source under lich0821 on GitHub, so you can review or fork the full source.

Are there alternatives to ccNexus?

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

评论 (0)

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

ui-ux-pro-max-skill

by nextlevelbuilder

12

An AI skill that provides design intelligence for building professional UI/UX across multiple platforms.

119,92012,870Python
CLI 工具ai-skillsantigravity
查看详情

happy

by slopus

Mobile and Web client for Codex and Claude Code, with realtime voice, encryption and fully featured

23,4501,980TypeScript
CLI 工具
查看详情

claudecodeui

by siteboon

Use Claude Code, OpenCode, Cursor CLI, and Codex on mobile and web with CloudCLI (aka Claude Code UI). CloudCLI is a free open source webui/GUI that helps you manage your Claude Code session and projects remotely.

13,3941,866TypeScript
CLI 工具
查看详情

CRS-自建Claude Code镜像,一站式开源中转服务,让 Claude、OpenAI、Gemini、Droid 订阅统一接入,支持拼车共享,更高效分摊成本,原生工具无缝使用。

12,5471,869JavaScript
CLI 工具
查看详情

ccstatusline

by sirmalloc

🚀 Beautiful highly customizable statusline for Claude Code CLI with powerline support, themes, and more.

12,508545TypeScript
CLI 工具
查看详情

开发者还喜欢

基于喜欢此 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
查看详情