Skip to main content

coderouter CLI

coderouter - route Codex/Claude Code traffic across multiple ChatGPT Pro/Claude Max/OpenCode subscriptions and API keys.

cr add
cr codex
cr pi
cr naked

coderouter and cr are equivalent executable names. With no command, they show the account and usage summary. Agent routing is always explicit.

Commands

cr                           account and usage summary
cr codex [arguments...]       Codex through coderouter
cr opencode [arguments...]    OpenCode through coderouter
cr pi [arguments...]          Pi through coderouter (experimental)
cr naked [arguments...]       ordinary Codex, with coderouter bypassed
cr direct [arguments...]      alias for naked
cr add                        add Codex, Claude, or OpenCode Go interactively
cr add claude [--label NAME]  add a Claude Max or Pro setup token
cr remove [account] [--yes]   remove a subscription
cr accounts                   list available subscriptions
cr list / cr ls                aliases for accounts
cr usage                      show quota state
cr doctor                     diagnose login and the Vercel data plane
cr login / cr logout          manage this machine's coderouter session
cr login --device-auth        copy a code into coderouter.dev/authorize
cr capabilities --json        report credential-free CLI capabilities
cr org current                show the active organization
cr org list                   list authorized coderouter organizations
cr org switch <name-or-id>    switch organization and routing credentials
cr upgrade                    open cmux Pro and Team pricing

Organization switching is fail-closed. The server returns only organizations where the signed-in user can use or manage coderouter, and the CLI persists the new scope only after receiving a new organization-scoped route token.

The Ratatui add flow supports direct Codex OAuth/PKCE and OpenCode Go device authorization. Claude account setup runs the official claude setup-token flow, then accepts the token in a hidden prompt. Automation can use CLAUDE_CODE_OAUTH_TOKEN or --stdin. Tokens are never accepted in argv or included in coderouter output. The official Claude CLI can display the token as part of its setup flow. Normal agent credentials are untouched.

The production control plane is https://coderouter.dev. coderouter uses a separate session config and never overwrites normal agent configuration. CODEROUTER_API_URL can override the origin for staging and loopback tests.

Routing

The CLI routes directly to the Vercel data plane at coderouter.dev. It does not install Subrouter, a local daemon, Go code, or GCP tooling.

cr pi creates an ephemeral Pi provider extension for the current process. It captures the route token during extension startup and immediately removes it from Pi's process environment before tools can inherit it. It never writes the token to Pi config and leaves normal providers, settings, extensions, and sessions untouched.

Metadata

Release files for coderouter 0.3.11

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Built distributions (wheels)

Table of built distributions (wheels) for coderouter 0.3.11
File
coderouter-0.3.11-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
coderouter-0.3.11-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
coderouter-0.3.11-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
coderouter-0.3.11-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
coderouter-0.3.11-py3-none-macosx_10_12_x86_64.whl Python 3 none macOS 10.12+ x86-64 Details

Total release size: 28.9 MB

Release files / coderouter-0.3.11-py3-none-win_amd64.whl

Download URL coderouter-0.3.11-py3-none-win_amd64.whl
Size 5.8 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
f96fcccec49caff06284289e8a35d47dbab08f2e6543b8532d14b67ce9065b43
BLAKE2b-256 checksum
How to use checksums
e472907aeb62e98b92f36e9e62cab0788996fb95be4deda7f8584bbd44dee4f5
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

Release files / coderouter-0.3.11-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl

Download URL coderouter-0.3.11-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 6.1 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
3cdf612e71cec2efd264d05df8bfbce867a0181061f2a217d3bc62eac3b897df
BLAKE2b-256 checksum
How to use checksums
c7a00a3d0ba0447b2f79756784e9fc7ea8263144070a33c908dc46c3abdbc5b7
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

Release files / coderouter-0.3.11-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl

Download URL coderouter-0.3.11-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 5.8 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
60a30e01b4d70f0886650b712db1567e0fde4b16c8534466f523819c247a2218
BLAKE2b-256 checksum
How to use checksums
38d842fca77bae742a9896f866c0d64a2882324f84a043e423b6dfd445af8247
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

Release files / coderouter-0.3.11-py3-none-macosx_11_0_arm64.whl

Download URL coderouter-0.3.11-py3-none-macosx_11_0_arm64.whl
Size 5.3 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
3e54dcc5b30ef860a7bbbd7b9fe61cfb4d1e240f0cf07ffb3cbc3b7b21aed183
BLAKE2b-256 checksum
How to use checksums
b8b049a4aee79abea84fc62a7b0381aab782c825b2b17594a045b5f6973f942a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

Release files / coderouter-0.3.11-py3-none-macosx_10_12_x86_64.whl

Download URL coderouter-0.3.11-py3-none-macosx_10_12_x86_64.whl
Size 5.8 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
ae0c9238448fcfde28ea2702f81f057eda7bb4c58fea0812562c8512f17234fd
BLAKE2b-256 checksum
How to use checksums
51d8bb4d860c3e3837c6d20d854144ec8324fdc911982ef3f0442d868296760e
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.13.13

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Sep 15, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.11 This release

5 release files

0.3.4

5 release files

0.3.3

5 release files

0.3.2

5 release files

0.3.1

5 release files

0.3.0

5 release files

0.2.3

5 release files

0.2.2

5 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page