Claude Code model router
Chat2claude
Local ChatGPT/Codex session adapter for Claude Code, OpenAI-compatible APIs and GPT Image, with a browser admin console.
Install
git clone https://github.com/mingzitaichangduozaishuhoumian/chat2claude.gitFrom the README
chatgpt-to-claude 中文 | English 最新发布版:0.3.2 · 下载 · 安装与升级 · 更新记录 v0.3.2 同步开源网关的隐藏停止按钮修复,补齐 Codex 限额错误识别,并更新 Undici 与 Windows 包内 Node.js 安全版本。网页仍默认关闭,需手动启用;自动模式默认优先 Codex,管理台可检查网页连接并显示失败原因。安装包继续包含普通 Chat 网页接入、手动/自动选择、可见上下文接续、模型分类和九项图片目录(五个基础型号、四个本地 2K/4K 尺寸别名)。网页网关需独立部署并登录。发布包无需编译;源码启动步骤见下文,改动详见更新记录。 chatgpt-to-claude 是一个 TypeScript + Hono 实现的本地兼容层:对外提供 Claude Messages、OpenAI Chat Completions、OpenAI Responses、Images、Models API 等接口,对内连接 mock、ChatGPT/Codex session 或独立部署的 ChatGPT 网页网关。 本项目面向使用本人控制或已获明确授权的 ChatGPT/Codex 账号的个人本地/私有场景。它不是订阅聚合、流量转售、多租户共享网关或公共代理服务;不要把个人订阅流量公开转售,或面向不特定第三方大规模共享。 下载与安装 这些包已包含编译后的服务与生产依赖,无需 pnpm 或自行构建。启动后打开 http://127.0.0.1:3000/admin,完成账号授权。通用包推荐 Node.js 24 LTS;GitHub 的 Source code 下载项需要按下方源码步骤安装。 SHA-256 校验文件 · 配置、数据迁移与升级 · 使用讨论 · 报告问题 我们的项目不一样在哪里 chatgpt-to-claude 的定位很明确:它是一个 本地轻量的 ChatGPT/Codex 到 Claude/OpenAI 兼容 API 适配器。它把你本机可控的 ChatGPT/Codex 账号会话整理成 Claude Code、Anthropic SDK、OpenAI SDK 以及 OpenAI 兼容客户端能直接使用的接口。 它不是大型 all-in-one 代理网关,也不追求成为“最大、最全”的代理 hub。它选择的是另一条路线:默认跑在个人电脑或私有环境里,默认监听 127.0.0.1,用尽量少的运维负担解决本地开发和个人工具接入问题。 它解决的是这类实际问题: - 你有自己控制或已获授权的 ChatGPT/Codex 账号,但常用客户端只认识 Claude 或 OpenAI 风格 API。 - 你希望 Claude Code、Anthropic SDK、OpenAI SDK、Continue、Cherry Studio 等客户端共用同一个本地服务。 - 你不想把 OAuth、token、cookie、模型发现、alias 绑定和 Runtime API Key 分散塞进不同工具配置里。 - 你需要一个本机 /admin 集中完成授权、模型发现、alias 绑定和 Runtime API Key 创建,而不是维护一套重型网关基础设施。 设计取舍: - 本地/个人使用优先:默认监听 127.0.0.1,默认面向个人机器或私有网络;不面向公共代理、订阅转售、流量聚合或多租户计费场景。 - 轻量运维:推荐路径是 Node.js + pnpm + 本机 /admin。不要求数据库、Redis、Kubernetes、服务网格或重型 API gateway 才能启动。 - 配置集中在 /admin:账号 OAuth、模型 discovery、alias 绑定、Runtime API Key 创建和基础诊断都集中在本地管理台完成,减少手改配置和跨工具复制 secret。 - 客户端友好:一个本地服务同时提供 Claude Messages、OpenAI Chat Completions、OpenAI Responses、Images 和 Models API,方便 Claude Code、Anthropic SDK、OpenAI SDK 以及 OpenAI…
Details
- Repository
- mingzitaichangduozaishuhoumian/chat2claude
- Language
- TypeScript
- License
- MIT
- Last updated
- 28 October 2026
- Topics
- anthropicapi-proxychatgptclaudeclaude-codecodexhonoimage-generationlocal-firstopenaiopenai-compatiblesse
FAQ
What is Chat2claude?
Local ChatGPT/Codex session adapter for Claude Code, OpenAI-compatible APIs and GPT Image, with a browser admin console. It is a model router for Claude Code, from mingzitaichangduozaishuhoumian/chat2claude on GitHub.
How do I install Chat2claude?
Clone mingzitaichangduozaishuhoumian/chat2claude from GitHub and follow the setup steps in its README.
Is Chat2claude popular?
mingzitaichangduozaishuhoumian/chat2claude has 41 GitHub stars and 9 forks. It was last updated on 28 October 2026.
More model routers & proxies
CC Proxy Detector
47zxc123aa/cc-proxy-detector
Detect Claude Code proxy backend origin (Anthropic / Bedrock Kiro / Vertex AI) | 检测 Claude Code 中转站真实后端来源,多维指纹 + ratelimit 动态验证 + 防伪装识别
Claude Slim
44iops-leo/claude-slim
Audit and shrink your Claude Code startup context. Measures what every skill, plugin, agent, and memory file costs in the system prompt, then reversibly disables the dead weight. No proxy, no compression.
Claude Code Proxy
39nielspeter/claude-code-proxy
Lightweight HTTP proxy enabling Claude Code to work with OpenRouter (200+ models), OpenAI Direct (GPT-5), and Ollama (local inference). Full tool support, streaming, thinking blocks.
AIonDemandCluster
42jhammant/AIonDemandCluster
Spin up any open LLM on rented GPUs (vast.ai/RunPod), serve it with vLLM or llama.cpp, and drive it from Claude Code via Claude Code Router. Pay by the hour.
Open Code Go Tools
46ethan-blue/open-code-go-tools
主要为 OpenCode Go 套餐打造的桌面客户端与本地代理:把 Claude Code 和 Codex 接到 OpenCode Go 并查看额度,也支持其他 OpenAI/Anthropic 兼容上游(Anthropic ↔ OpenAI Chat Completions / Responses 协议互转)。
Ampcode Connector
38nghyane/ampcode-connector
Lightweight proxy that routes AmpCode requests through local OAuth credentials (Claude Code, Codex CLI, Gemini CLI, Antigravity)
Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.