通过 opencodex 提供者代理路由 Codex 和 Claude 代码
Run a local proxy that lets Codex and Claude Code use configured LLM providers, routed models, and account pools while keeping the normal coding-agent workflow.
Prerequisites
Node.js 18+, @bitkyc08/opencodex, Codex CLI/App/SDK or Claude Code, provider credentials or OAuth
Installation
Use the upstream install or setup path that matches your environment:
- npm install -g @bitkyc08/opencodex
- npm install -g --allow-scripts=bun @bitkyc08/opencodex # no --ignore-scripts, no --omit=optional
- npm's own warning suggests an abbreviated command without the package name —
- npm uninstall -g @bitkyc08/opencodex
Requirements and caveats from upstream:
- <img src="https://img.shields.io/node/v/@bitkyc08/opencodex?logo=node.js&label=node" alt="node version">
- Requires Node 18+. The Bun runtime is bundled automatically on npm install — no separate Bun install needed. All three platforms work natively (no WSL needed on Windows).
- opencodex bundles the Bun runtime as a dependency and runs it via a Node
Basic usage or getting-started notes:
- lowest-usage healthy account. Existing Codex threads stay pinned to the account that started them,
- quota --> pick[Pick lowest-usage<br/>healthy account]
- ocx init
- Source: https://github.com/1991513ccie-png/skills
- Extracted from upstream docs: https://raw.githubusercontent.com/lidge-jun/opencodex/HEAD/README.md
Documentation
- https://lidge-jun.github.io/opencodex/