AI-Routing-Research-Institute

Codex Provider Hub — Development skill for Claude Code

Development community

Codex 与 Claude Code 本地多供应商路由中枢:集成 CC Switch,支持即时切换、自动重试、Token 统计、健康监控与兼容传输.

How to install Codex Provider Hub

This entry records only its repository, not the path inside it, so there is no exact command to give. Open AI-Routing-Research-Institute/codex-provider-hub and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Codex Provider Hub does

Codex 与 Claude Code 本地多供应商路由中枢:集成 CC Switch,支持即时切换、自动重试、Token 统计、健康监控与兼容传输。 Local provider hub for Codex and Claude Code.

Alternatives in Development

  • Claude Usage — A local dashboard for tracking your Claude Code token usage, costs, and session history 864 ★
  • Devteam — Run a team of local coding agents in your terminal 264 ★
  • Codex Switch — Codex Switch 是一个 macOS 工具,一键配置 Codex 的自定义 API,同时保留官方 OpenAI 登录 68 ★

README

Codex Provider Hub

[简体中文](README.md) | [English](README.en.md)

在一个本地程序中管理 Codex 与 Claude Code 的多个 API 供应商,支持网页切换、失败重试、请求记录、Token 统计和远程健康监控。

![Python](https://img.shields.io/badge/Python-3.11%2B-3776ab?style=flat-square) ![FastAPI](https://img.shields.io/badge/FastAPI-0.115%2B-009688?style=flat-square) ![Platform](https://img.shields.io/badge/Platform-Windows%20%7C%20macOS%20%7C%20Linux-4b5563?style=flat-square) [![License](https://img.shields.io/badge/License-AGPL--3.0--or--later-663399?style=flat-square)](LICENSE) [![Release](https://img.shields.io/github/v/release/AI-Routing-Research-Institute/codex-provider-hub?style=flat-square)](https://github.com/AI-Routing-Research-Institute/codex-provider-hub/releases/latest)

目录

适合谁

Codex Provider Hub 适合以下用户:

  • 同时使用多个 Codex API 或 Claude Code API 中转,希望在网页中即时切换。
  • 已经使用 CC Switch 管理供应商,希望 Codex 与 Claude Code 共用一个本地程序。
  • 需要输出前自动重试、请求记录、Token 统计、供应商监控和故障诊断。
  • 部分供应商会拒绝普通 Python HTTP 客户端,需要单独启用 curl_cffi 兼容传输。

它不是 API 供应商,不提供 API Key,也不是用于公网多租户部署的通用网关。你需要准备自己的合法供应商地址和凭据。

程序默认只监听 `127.0.0.1:17890`。同一个进程提供两套独立控制台:

Codex       http://127.0.0.1:17890/control/codex/
Claude Code http://127.0.0.1:17890/control/claude/

五分钟快速开始

1. 准备 CC Switch

推荐先安装并配置 CC Switch,至少添加一个 Codex 或 Claude Code 供应商。默认数据库位置为:

~/.cc-switch/cc-switch.db

当前统一程序会同时构建 Codex 和 Claude Code 控制台,因此启动前应保证该数据库存在且可以读取。

2. 下载程序

Windows x64: