- 社区热度
- 11.0k Stars
- GitHub 收藏
- 最近活跃
- 2026/8/18
- 近 30 天还在更新
- 授权协议
- MIT
- 宽松协议
为什么值得关注
不是看 Star 排名,而是看它解决了什么问题、实际有没有用,以及方法为什么值得关注。
解决的问题
解决了特定 AI 开发工具(如 Claude Code、Codex)强制绑定特定模型供应商的问题,允许用户自由切换至其他 LLM。
实际价值
通过本地代理将多种模型 API 转换为目标工具可识别的格式,并支持 ChatGPT 账号池管理与负载均衡。
创新 / 差异化
实现了对复杂协议(如流式传输、工具调用、推理标记)的实时翻译,并支持在 Claude Desktop 等环境中进行模型路由。
扩展潜力
作为中间件,能够直接扩展现有开发工具的功能,无需修改工具本身代码,且支持通过 Web 仪表盘进行配置。
为什么是现在
在 AI 编码代理工具(Agentic Coding Tools)快速普及且用户对模型选择权需求增加的背景下,具有很高的实用价值。
社区活跃度
近 90 天新增 657 个 Issue、1395 个 PR;窗口内抽取的 Issue/PR 样本中有 59 位 Issue 发起者、16 位 PR 贡献者,并发布 至少 50 个版本。
维护者响应
窗口内 100 个 Issue 样本关闭率 98%,100 个 PR 样本合并率 53%。维护者响应统计覆盖该 Issue 样本的 30%,响应率 73%,首次响应中位数 3.8 小时。
核心亮点
- 将 Codex、Claude Code、Claude Desktop 与 Grok Build 连接至 40 多个不同的 LLM 提供商
- 管理 ChatGPT 账号池,支持配额跟踪、会话亲和性与自动路由
- 支持组合模型,提供多提供商故障转移与加权轮询
快速开始
安装方式、上手难度、开始步骤。
装在哪
本地运行
难不难
中等,需要一点配置
- 01使用 npm 全局安装 OpenCodex。
- 02运行
ocx start启动本地代理服务。 - 03访问 http://localhost:10100 配置模型提供商与账号。
- 04运行
ocx init将开发工具连接至代理。
更适合谁
- 希望数据放在自己服务器上的团队
- 想在本机直接跑起来试用的开发者
更多介绍
OpenCodex 是一个轻量级的本地代理工具,能够将 OpenAI Codex 的请求格式转换为多种大语言模型支持的协议。它支持将 Claude、Gemini、Grok、DeepSeek 以及 Ollama 等各种模型接入 Codex CLI、Claude Code、Claude Desktop 和 Grok Build 中,并能双向处理流式传输、工具调用和推理标记等内容。
该工具内置了 ChatGPT 账号池管理功能,支持在网页端仪表盘中添加多个账号、刷新配额,并根据使用量自动将新会话路由至健康的账号,同时保持现有对话的账号绑定。此外,它还提供虚拟模型组合(Combos)和子代理路由等机制,并支持 OAuth 登录、网页搜索及视觉辅助等扩展特性。
信息来源
每条信息都标注了状态与出处,可展开查看。
15 条 · 展开
信息来源
每条信息都标注了状态与出处,可展开查看。
capability tags
已核验automation、productivity
来源: admin_cms · cms editor · 2026/8/20
editor note
已核验{"en":"This tool intercepts and translates API requests, allowing development tools locked to specific models to utilize over 40 alternative LLMs. Its account pool management is particularly useful for power users requiring automated ChatGPT account rotation.","zh":"该工具通过拦截并转换 API 请求,使原本绑定特定模型的开发工具能够调用 40 多种第三方模型。其账号池管理功能特别适合需要轮询或自动切换 ChatGPT 账号的重度用户。"}
来源: admin_cms · cms editor · 2026/8/20
how to use
已核验{"steps":[{"en":"Install OpenCodex globally using npm.","zh":"使用 npm 全局安装 OpenCodex。"},{"en":"Run `ocx start` to launch the local proxy service.","zh":"运行 `ocx start` 启动本地代理服务。"},{"en":"Access http://localhost:10100 to configure your model providers and accounts.","zh":"访问 http://localhost:10100 配置模型提供商与账号。"},{"en":"Run `ocx init` to wire your development tools to the proxy.","zh":"运行 `ocx init` 将开发工具连接至代理。"}],"installAt":"local","difficulty":"medium"}
来源: admin_cms · cms editor · 2026/8/20
intro
已核验{"en":"OpenCodex is a lightweight local proxy that translates the Codex Responses API to match the protocols used by various large language models. It allows users to route models like Claude, Gemini, Grok, DeepSeek, and Ollama into Codex CLI, Claude Code, Claude Desktop, and Grok Build, handling streaming, tool calls, and reasoning tokens in both directions.\n\nThe tool features a ChatGPT account pool manager for handling authentication and quotas through a web dashboard. It can automatically route new sessions to healthy accounts based on usage while keeping active threads pinned to their original accounts. Additional capabilities include virtual model combos, sub-agent routing, OAuth support, and sidecars for web search and vision.","zh":"OpenCodex 是一个轻量级的本地代理工具,能够将 OpenAI Codex 的请求格式转换为多种大语言模型支持的协议。它支持将 Claude、Gemini、Grok、DeepSeek 以及 Ollama 等各种模型接入 Codex CLI、Claude Code、Claude Desktop 和 Grok Build 中,并能双向处理流式传输、工具调用和推理标记等内容。\n\n该工具内置了 ChatGPT 账号池管理功能,支持在网页端仪表盘中添加多个账号、刷新配额,并根据使用量自动将新会话路由至健康的账号,同时保持现有对话的账号绑定。此外,它还提供虚拟模型组合(Combos)和子代理路由等机制,并支持 OAuth 登录、网页搜索及视觉辅助等扩展特性。"}
来源: admin_cms · cms editor · 2026/8/20
最新版本
已核验v2.25.0
来源: GitHub 官方接口 · latest_release=v2.25.0 · 2026/8/18
许可证
已核验MIT
来源: GitHub 官方接口 · license.spdx_id=MIT · 2026/8/18
needs api key
已核验是
来源: admin_cms · cms editor · 2026/8/20
一句话用途
已核验{"en":"A universal local proxy that enables the use of any LLM, such as Claude, Gemini, or DeepSeek, within Codex and Claude Code, while managing ChatGPT account pools.","zh":"一个通用的本地代理,允许在 Codex、Claude Code 等工具中使用任意大模型(如 Claude、Gemini、DeepSeek 等)并管理 ChatGPT 账号池。"}
来源: admin_cms · cms editor · 2026/8/20
平台
已核验macos、linux、windows
来源: admin_cms · cms editor · 2026/8/20
分类线索
根据材料推断ai-apps
来源: 项目说明文档 · hint=ai-apps · 2026/8/18
product forms
已核验cli、web
来源: admin_cms · cms editor · 2026/8/20
role tags
已核验backend、fullstack、devops
来源: admin_cms · cms editor · 2026/8/20
supports docker
已核验否
来源: admin_cms · cms editor · 2026/8/20
supports local
已核验是
来源: admin_cms · cms editor · 2026/8/20
supports self host
已核验是
来源: admin_cms · cms editor · 2026/8/20
相关项目
根据分类、能力和适用角色匹配的其他已核验项目。
spec-kit
一套遵循「规范驱动开发」流程的开源 CLI 工具包,配合 AI 编程 Agent 按照规范生成与执行代码。
CLI-Anything
为现有软件生成和管理 Agent 可调用 CLI 的工具集,包含 CLI-Hub、生成流程与 SKILL/插件接入方式。
agentdock
为 AI 助手提供安全、受控的访问权限,以操作您运行的每台机器。
microsandbox
用于运行不受信任工作负载的快速本地微型虚拟机运行时与库。
xplr
可脚本化和扩展的终端 TUI 文件浏览器,用键盘界面组织文件操作并与现有命令行工具、插件和脚本集成。
App-Store-Connect-CLI
面向 App Store Connect API 的脚本化 CLI,可在终端和 CI 中管理构建上传、TestFlight、元数据、提交审核和签名资源。

