
Codex 的外部型号路由器,支持引导的 Kimi OAuth/API、DeepSeek、安全迁移和回滚。
概览
这就是完整的安装过程。它会询问你想要哪些供应商,并且在私密本地提示中保留凭证录入。 1. 完全退出并重新打开Codex。2. 开始新任务并选择已路由的模型。3. 打开使用控制中心。 在macOS上,从Spotlight或~/应用程序打开;关闭控制中心时,其图标仍留在菜单栏。桌面小部件已包含在内:可从菜单栏应用中选择显示。它是可移动的Codex Router面板,而非macOS画廊中的项目。 macOS 目前还没有公开的.dmg;上述命令会在本地构建并安装应用。如果需要 Xcode 命令行工具,请执行 xcode-select --install 并重复该命令。 在Codex应用和CLI中使用Anthropic、Kimi、DeepSeek、xAI、GitHub Copilot及其他外部模型。一个本地安装还可以支持DeepSeek Harness和Gemini CLI,以及Cursor Agent和Cursor App、Claude Code和OpenClaw。你的提供者凭证会保留在你的电脑上。
概述(AI 翻译)
安装所有内容(推荐)
这是默认设置:引导式提供者设置 + Electron 控制中心 + 托盘/菜单栏应用 + macOS 桌面小部件。
macOS 还是 Linux
将此内容复制粘贴到终端:
Windows
复制粘贴到PowerShell里:
这就是完整的安装。它会询问你想要哪些供应商并保留 私密本地提示中的凭证录入。
结束时:
- 完全退出并重新打开Codex。
- 启动新任务并选择路由模型。
- 打开Codex Router以使用控制中心。
在macOS上,从Spotlight或~/Applications打开Codex Router;其图标
关闭控制中心时,仍留在菜单栏。桌面控件是
已包含:选择动态岛→设置→桌面
菜单栏应用可以显示它。它是一个可移动的Codex Router面板,而不是一个物品
在macOS的编辑小部件画廊中。
macOS 尚未有公开的 .dmg;上述命令用于构建和安装
本地应用。那个版本需要完整的Xcode应用,而不仅仅是独立版本
命令行工具,因为它包含 SwiftUI 宏和 WidgetKit 目标。该
本页由 AI 翻译,技术细节请以原文为准。
README
以下为原文 README 节选,完整内容请查看原文。
Codex Router
Use external models in Codex and other coding clients through one local router. Store provider credentials locally, share one installation across clients, and keep native GPT access when you have a valid ChatGPT login.
Install · First use · Providers · Commands · Documentation
What it supports
| Client | Integration |
|---|---|
| Codex App and CLI | Native and external models in the model picker; Linux support covers the CLI |
| DeepSeek Harness | Managed provider routes in its settings |
| Gemini CLI | Managed endpoint, key, and default-model environment block |
| Cursor Agent / Cursor App | Local Agent launcher / separately keyed public HTTPS edge for App BYOK |
| Claude Code | Separate claude-router launcher using the local Messages adapter |
| OpenClaw | Managed Responses provider |
| opencode, pi, omp, Command Code, Hermes Agent | Provider configuration published into the existing client |
The Control Center manages connections, model visibility, usage, and service health. macOS uses a native menu-bar host with an embedded Electron window; Windows and Linux use an Electron window and tray.
Image, search, and subagent capabilities depend on the selected model route. Some features use additional provider requests and quota. See the Codex guide and client guide for limitations.
Install
Requirements
- Codex App or CLI for the default Codex setup; install another supported client when using its integration.
- Node.js 22.19+; a maintained Node.js 24 LTS release is recommended.
- Git for managed checkout installation, updates, and rollback.
uvor Python 3.10+ withvenvfor the default compatibility-enabled source installation. An explicit compatibility-layer opt-out skips Python installation and probes. Source dependency setup follows the stored compatibility policy. Homebrew installs the formula’s Python dependencies.- On Windows, PowerShell must run in
FullLanguagemode and policy must allowAdd-Type. - To build the macOS desktop companion locally, the full Xcode app is required.
Choose one installation method. Setup asks which providers to enable and uses private local prompts for credentials. Live inference tests run only when explicitly requested and consume the selected provider’s quota.
Guided source installation
macOS / Linux — Terminal
curl -fsSL https://raw.githubusercontent.com/duolahypercho/codex-router/main/install.sh \
| sh -s -- --target codex --guided --with-tray
Windows — PowerShell
$installer = Join-Path $env:TEMP "codex-router-install.ps1"
Invoke-WebRequest https://raw.githubusercontent.com/duolahypercho/codex-router/main/install.ps1 -OutFile $installer
推荐工具
换一个关键词,或者移除筛选条件。
安装
npx skillfish add duolahypercho/codex-router