- 社区热度
- 17.2k Stars
- GitHub 收藏
- 最近活跃
- 2026/10/10
- 近 30 天还在更新
- 授权协议
- MIT
- 宽松协议
为什么值得关注
不是看 Star 排名,而是看它解决了什么问题、实际有没有用,以及方法为什么值得关注。
解决的问题
解决了特定 AI 开发工具(如 Claude Code、Codex)强制绑定特定模型供应商的问题,允许用户自由切换至其他 LLM。
实际价值
通过本地代理将多种模型 API 转换为目标工具可识别的格式,并支持 ChatGPT 账号池管理与负载均衡。
创新 / 差异化
实现了对复杂协议(如流式传输、工具调用、推理标记)的实时翻译,并支持在 Claude Desktop 等环境中进行模型路由。
扩展潜力
作为中间件,能够直接扩展现有开发工具的功能,无需修改工具本身代码,且支持通过 Web 仪表盘进行配置。
为什么是现在
在 AI 编码代理工具(Agentic Coding Tools)快速普及且用户对模型选择权需求增加的背景下,具有很高的实用价值。
社区活跃度
近 90 天新增 1532 个 Issue、5203 个 PR;窗口内抽取的 Issue/PR 样本中有 60 位 Issue 发起者、23 位 PR 贡献者,并发布 至少 50 个版本。
维护者响应
窗口内 98 个 Issue 样本关闭率 100%,84 个 PR 样本合并率 39%。维护者评论样本仅覆盖该 Issue 样本的 15%,不足以可靠判断首次响应率与响应速度。
核心亮点
- 将 Codex、Claude Code、Claude Desktop 与 Grok Build 连接至 40 多个不同的 LLM 提供商
- 管理 ChatGPT 账号池,支持配额跟踪、会话亲和性与自动路由
- 支持组合模型,提供多提供商故障转移与加权轮询
快速开始
安装方式、上手难度、开始步骤。
装在哪
本地运行
难不难
中等,需要一点配置
- 01使用 npm 全局安装 OpenCodex。
- 02运行
ocx start启动本地代理服务。 - 03访问 http://localhost:10100 配置模型提供商与账号。
- 04运行
ocx init将开发工具连接至代理。
更适合谁
- 希望数据放在自己服务器上的团队
- 想在本机直接跑起来试用的开发者
- 习惯用 Docker 部署的人
更多介绍
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.82.0
来源: GitHub 官方接口 · latest_release=v2.82.0 · 2026/10/10
许可证
已核验MIT
来源: GitHub 官方接口 · license.spdx_id=MIT · 2026/10/10
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
已核验是
来源: 仓库文件 · dockerfile=true; compose=true · 2026/10/10
supports local
已核验是
来源: admin_cms · cms editor · 2026/8/20
supports self host
已核验是
来源: admin_cms · cms editor · 2026/8/20
相关项目
根据分类、能力和适用角色匹配的其他已核验项目。
WSL
Windows 子系统 Linux 版,允许在 Windows 上直接运行 Linux 命令行工具和应用程序,无需传统虚拟机。
cli-printing-press
通过读取 API 文档或抓取网页流量,自动生成专为 AI 代理优化的 Go 命令行工具和 MCP 服务器。
agentdock
为 AI 助手提供安全、受控的访问权限,以操作您运行的每台机器。
deja-vu
一个本地运行的编码代理记忆层,可自动索引并检索历史会话中的决策与代码修改。
omni
通过智能去重与上下文压缩技术,显著减少 AI Agent 在重复读取文件或执行命令时的输入 Token 消耗。
Flare
面向智能体编程的图优先 IDE,提供实时代码库拓扑图、内置终端与 MCP 任务协作面板。

