一个Codex cli 账号管理与切换工具。为 Codex cli提供本地网关转发。
开发工具Rust · TypeScriptGitHub @qxcnm自行安装运营者未确认
试用过了吗? 点一下就好,无需登录。
制作者的介绍仅有上面的一句话。 更多详情请阅读仓库 README。 仓库 README ↗
正在加载完整 README。
查看完整 README ↗CodexManager manages Codex CLI account pools and provides a local OpenAI-compatible gateway, with a desktop app and a browser-based Service edition.
Interface language: New installations default to Auto-detect, following the language reported by the desktop WebView or browser. Chinese, English, Russian, and Korean are supported; unsupported or unavailable language information falls back to English. You can choose a fixed language in the header or Settings, and saved choices are preserved.
CodexManager has joined the Xuanwu Community, a Rust technical community incubated and operated by the OpenAtom Foundation.
This project is open to sponsorship partnerships, with pricing negotiable. Sponsors may display their brand logo, introduction, and official link in the README and in-project sponsor areas. Exact wording, placement, display period, and launch time are agreed upon by both parties. Partnerships should be relevant to developers or the AI tooling ecosystem and comply with applicable laws and regulations.
Partnership contact: Reach out via WeChat, Telegram, or email at [email protected]; when adding on WeChat, please note “Sponsorship”.
Thanks to the following friends and partners for supporting CodexManager.
Thanks to PatewayAI for sponsoring this project!
PatewayAI focuses on high-quality official model API relay services, with full support for Claude and Codex series models, transparent billing, and enterprise-grade service.
Economy mode starts as low as 5% of standard rates. Register through this link to receive trial credits, join occasional promotions for free credits, and earn up to $150 in two-way referral rewards.
Other supporters: 呆头呆脑, Wonderdch, suxinwl, Hermit, Suifeng023, HK-hub
If this project has helped you, donations are welcome!
| What you want to do | Go directly to |
|---|---|
| First launch, deployment, Docker, or macOS allowlisting | Runtime and Deployment Guide |
Configure Codex CLI / ccswitch, auth.json, and config.toml | Runtime and Deployment Guide |
Import an account from ChatGPT /api/auth/session without logging in through Codex | Chinese guide: Import ChatGPT auth session |
| Configure ports, proxy, database, Web password, and environment variables | Environment and Runtime Configuration |
| Troubleshoot account routing, import failures, challenge interception, or request errors | FAQ and Account Routing Rules |
| Understand why background jobs skip, disable, or deactivate accounts | Background Task Account Skip Notes |
| Manage models, pricing, routes, instructions policy, and Codex model catalogs | Chinese guide: Model Catalog V2 Management and Billing |
| Minimal plugin center integration and quick onboarding | Plugin Center Minimal Integration |
chatgpt.com browser OAuth and Device Code login; browser OAuth also supports manually pasting the callback URL.model_catalog_json.gpt-6.1-sol, gpt-6-astra, gpt-6-sol, gpt-6-luna, the three GPT-5.6 models, gpt-5.5, gpt-image-2, and the two Image 2.5 variants make up the 11 models visible by default; only codex-auto-review is hidden.gpt-5.4 and gpt-5.4-mini retired from Codex with ChatGPT sign-in on August 31, 2026, and gpt-5.2 is also deprecated for that sign-in path; the general API model is not removed by this cleanup. Revision 9 removes their untouched built-ins, while user edits, price tiers, non-default routes, and permission/API-key associations are preserved as custom models. API-key users can also add the same slugs explicitly as custom models./plugins/ supports built-in curated, enterprise private, and custom source marketplace modes, plus manifests, tasks, logs, and Rhai interfaces.chatgpt.com.codexmanager.db.%APPDATA%\\com.codexmanager.desktop\\codexmanager.db~/Library/Application Support/com.codexmanager.desktop/codexmanager.db~/.local/share/com.codexmanager.desktop/codexmanager.dbcodexmanager.db.pre-<version>.bak snapshot is retained in the same directory; retries for the same version do not overwrite it.CodexManager.exe --debug (CodexManager --debug on macOS/Linux). Startup failures display the reason and write startup-error.log to the shown log directory.TZ=Asia/Shanghai; Compose inherits the deployment TZ or falls back to Asia/Shanghai. Use the appropriate IANA time zone elsewhere.auth.json to switch accounts. Aggregate API and gateway connections preserve auth.json and update only config.toml; the provider field experimental_bearer_token holds the selected aggregate API key for direct aggregate connections or the CodexManager platform key for gateway connections. Direct aggregate-API connections bypass the local gateway and do not appear in gateway request logs.~/.codex/models_cache.json; direct accounts follow the official catalog, while the local gateway uses an independent managed catalog./plugins/ provides marketplace switching, installation, enable/disable, tasks, logs, and Rhai integration./skills/ separates Skills and Codex plugins, with repository/skills.sh install, ZIP/directory import, safe uninstall, native Marketplace flow, and read-only system Skills.auth_mode = "chatgpt" or "apikey") without requiring a particular sign-in method. Gateway setup updates only config.toml, preserves any existing auth.json byte for byte, and does not create an auth file or require ChatGPT login tokens. The cm provider always uses name = "cm" and requires_openai_auth = true, with the platform key in experimental_bearer_token.codexmanager-service: local OpenAI-compatible gateway.codexmanager-web: browser management page plus /api/runtime and /api/rpc proxies.codexmanager-start: starts service + web together.| Page | Contents |
|---|---|
| Runtime and Deployment Guide | First launch, Docker, Service edition, and macOS allowlisting |
| Environment and Runtime Configuration | Application settings, proxy, listen address, database, and Web security |
| FAQ and Account Routing Rules | Account routing, challenge interception, import/export, and common errors |
| Chinese guide: Import ChatGPT auth session | Copy ChatGPT session JSON and batch-import it into the account pool |
| Background Task Account Skip Notes | Background filtering, disabled accounts, and workspace deactivation |
| Minimal Troubleshooting Guide | Service startup, request forwarding, and model refresh failures |
| Plugin Center Integration and Interfaces | Routes, marketplace modes, Tauri/RPC interfaces, manifest fields, and Rhai functions |
| Build, Release, and Script Guide | Local builds, Tauri packaging, workflows, and script parameters |
| Release and Artifacts |
.
├─ apps/ # Frontend and Tauri desktop app
│ ├─ src/
│ ├─ src-tauri/
│ └─ out/
├─ crates/ # Rust core/service
│ ├─ core
│ ├─ service
│ ├─ start # Starts service + web
│ └─ web # Service Web UI and /api/rpc proxy
├─ docs/ # Official documentation
├─ scripts/ # Build and release scripts
└─ README.md
ProsperGao to join the group and state your purpose| Integrate with the plugin center, view interfaces, marketplace modes, and Rhai APIs | Plugin Center Integration and Interfaces |
| View every internal integration interface | System Internal Interface Inventory |
| Build, package, release, or call scripts locally | Build, Release, and Script Guide |
/skills/ separates Skills Installation from Codex Plugin Installation. Skills support built-in and custom GitHub repositories, repository refresh, individual Skill installation, skills.sh search and installation, ZIP/directory import, and installed-item management. Codex plugins retain the full native Marketplace installation flow; .system Skills remain read-only.resume selector in a new terminal with the local CodexManager profile.CODEXMANAGER_SSE_KEEPALIVE_ENABLED=0 (or false). Experimental upstream WebSocket is disabled by default; enable it with CODEXMANAGER_USE_WEBSOCKET_UPSTREAM=1./v1/responses, SSE, tools, MCP, skills, and request/stream timeouts.image_generation tool for /v1/responses by default, passes explicitly provided tools through, and provides /v1/images/generations and /v1/images/edits; the Images API compatibility main model defaults to gpt-6-luna, while the injected image tool remains gpt-image-2 and the two Image 2.5 variants are available for explicit selection.| Platform artifacts, naming, and pre-release behavior |
| Script and Release Responsibility Matrix | Script responsibilities and usage scenarios |
| Gateway vs Codex Headers and Params | Gateway forwarding compared with Codex headers and parameters |
| System Internal Interface Inventory | Desktop, service, and plugin-center interfaces |
| CHANGELOG.md | Releases, unreleased changes, and full history |