Claudex
在熟悉的 Claude Code 中使用通过 ChatGPT 登录授权的模型。
Claudex 是 macOS 菜单栏应用和本地网关。它将 Claude Code 的 Anthropic-compatible Messages 请求转换成 OpenAI Responses 请求。Claude Code 保留界面、权限、工具执行与代理流程;Claudex 负责本机连接、账号授权、模型路由和协议转换。
功能
- 应用自己的 ChatGPT 登录:在浏览器完成授权,不导入 Codex 凭据。
- 账号模型路由:将 Claude 模型映射到账号实际提供的上游模型和推理强度。
- 独立 Advisor:配置独立 Model 与 Effort,在被调用时提供建议。
- 菜单栏快速操作:启动或暂停网关,查看活跃请求和近期实际流量。
- Activity:查看测量得到的耗时、错误与提供方报告的 token 使用量;这些数据不代表剩余订阅额度。
- 本地工具续接:保存回放记录以支持会话中的工具续接。请阅读隐私政策了解本地数据与保留限制。
开始使用
需要 macOS 15.7 或更新版本、单独安装的 Claude Code,以及有资格授权 Claudex 的 ChatGPT 账号。连接 ChatGPT,保存模型配置,启动网关,再把 Claudex 提供的连接 exports 放入启动 Claude Code 的终端。
模型资格、用量规则和可支持的功能取决于账号、服务与客户端版本;不保证所有 Claude Code 功能兼容,也不承诺免费、无限用量或特定订阅额度。
English — A local gateway for Claude Code
Use ChatGPT-authorized models through the familiar Claude Code interface. Claudex is a macOS menu bar app and loopback gateway that translates Anthropic-compatible Messages requests into OpenAI Responses requests. Claude Code owns the interface, permissions, tool execution and agent loop; Claudex handles local connectivity, app-owned authorization, routing and protocol translation.
- App-owned ChatGPT sign-in: browser authorization without importing Codex credentials.
- Account-based routing: map Claude models to advertised upstream models and supported reasoning efforts.
- Independent Advisor: configure its own Model and Effort for advice when invoked.
- Menu bar controls: start/pause the gateway and inspect active requests and measured recent traffic.
- Activity: measured latency, errors and provider-reported token usage, not remaining subscription quota.
- Tool continuation: local replay records support continued conversations. Read the privacy policy for storage and retention details.
Requires macOS 15.7 or later, a separately installed Claude Code client, and a ChatGPT account eligible to authorize Claudex. Connect ChatGPT, save routes, start the gateway, then copy the connection exports into the shell that launches Claude Code.
Eligibility, usage rules and feature support vary by account, service and client version. Claudex does not promise complete Claude Code compatibility, free or unlimited usage, or a specific subscription allowance.
帮助与支持 / Support · 隐私政策 / Privacy · 开发者 / Developer
© 2026 Zhijie Zhang