qxcnm/Codex-Manager

一个Codex cli 账号管理与切换工具。为 Codex cli提供本地网关转发。

CodexManager is a tool for managing multiple Codex CLI accounts in one place. It runs as a local desktop app or a browser-based service, and it also provides a local gateway that speaks the OpenAI API format — meaning other tools can talk to it as if it were an OpenAI-compatible server.

What it does:

  • Account pool management — Organize accounts with groups, tags, ordering, and notes. It can recognize banned accounts and filter them out.
  • Batch import/export — Import many accounts at once (including multi-file and recursive folder imports on desktop) and export accounts individually.
  • Usage tracking — Shows standard 5-hour + 7-day usage windows, plus special buckets like Code Review or Spark. Refresh to see remaining percentages and reset times.
  • Quota reset warmup — After an exhausted 5-hour window resets, it can automatically send a short warmup message to reduce waiting time. Enabled by default, can be toggled per account or in bulk.
  • Account authorization — Supports browser OAuth login via chatgpt.com and Device Code login. Browser OAuth also lets you paste a callback URL manually.
  • Platform keys — Generate random or custom fixed API keys with options for model binding, reasoning tier, and service tier (Standard / Fast / Ultrafast / Flex). Keys can be restricted to specific account groups.
  • Model management — A Model Catalog V2 acts as the single source of truth for models. Supports built-in and custom models, pricing tiers, routing rules, and instructions policy. The catalog currently has 12 built-in rows; 11 are visible by default and one (codex-auto-review) is hidden. Some older models (like gpt-5.4 and gpt-5.2) were retired from Codex with ChatGPT sign-in but remain available as custom models if you add them explicitly.
  • Aggregate API — Manage minimal third-party upstream connections, test connectivity, and optionally run background model synchronization (off by default) to add missing models while preserving existing config.
  • Plugin center — Supports built-in curated, enterprise private, and custom source marketplace modes, plus manifests, tasks, logs, and Rhai scripting interfaces.
  • Skills and plugins — Separates Skills installation from Codex Plugin installation. Skills can come from GitHub repos, skills.sh, or ZIP/directory imports. Codex plugins keep the native Marketplace flow. Some skills are read-only (like those in the service user's ~/.agents/skills).
  • Desktop project launcher — Bookmark local directories and open them in the ChatGPT Codex App (Windows/macOS), or open a session resume selector in a new terminal.

Language support: New installs default to auto-detecting the language from the desktop WebView or browser. Chinese, English, Russian, and Korean are supported; anything else falls back to English. You can also set a fixed language in the header or Settings.

Important caveats:

  • The project was built mostly with AI assistance (Codex ~98%, Gemini ~2%). Only the Windows desktop build is guaranteed to work. Other platforms should be tested thoroughly before reporting issues.
  • The README explicitly states this is for learning and development only. Users must comply with the terms of service of platforms like OpenAI and Anthropic. The author does not provide accounts, API keys, or proxy services, and the tool should not be used to circumvent rate limits or service restrictions.
  • The project has joined the Xuanwu Community, a Rust technical community run by the OpenAtom Foundation.

Sponsorship: The project accepts sponsors, who can display their brand in the README and in-app sponsor areas. One current sponsor is PatewayAI, an API relay service for Claude and Codex models. Other sponsors include Daitou AI (Chinese LLM APIs), AIXiamo (ChatGPT top-ups), and Xing Si Yan Gateway (relay services for Claude Code and Codex). Sponsorship slots are open — contact via email at 18272669457@163.com.

Documentation: The README links to detailed guides covering deployment, Docker setup, macOS allowlisting, configuration of ports/proxy/database, FAQ and account routing rules, service health dashboards, plugin integration, and build/release scripts.

Related

  • Project
  • Project
  • Project
  • Project
  • Project