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 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.3
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distributions (wheels)
| File | Reset | |||
|---|---|---|---|---|
| coderouter-0.3.3-py3-none-win_amd64.whl | Python 3 | none | Windows x86-64 | Details |
| coderouter-0.3.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl | Python 3 | none | Linux glibc 2.17+ x86-64 | Details |
| coderouter-0.3.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl | Python 3 | none | Linux glibc 2.17+ ARM64 | Details |
| coderouter-0.3.3-py3-none-macosx_11_0_arm64.whl | Python 3 | none | macOS 11.0+ ARM64 | Details |
| coderouter-0.3.3-py3-none-macosx_10_12_x86_64.whl | Python 3 | none | macOS 10.12+ x86-64 | Details |
Total release size: 22.3 MB
Release files / coderouter-0.3.3-py3-none-win_amd64.whl
| Download URL | coderouter-0.3.3-py3-none-win_amd64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | Python 3 Windows x86-64 |
|
SHA-256 checksum How to use checksums |
f4c5b7c7702fbf7b2b7bfed517e050136512be0d841dbf623af846b72e046c79
|
|
BLAKE2b-256 checksum How to use checksums |
ec72a12d9fd3606895fe8719b9258d8395b141fa60a35673e0502018bc4dfc4b
|
| 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 4, 2026.
Transparency logRelease files / coderouter-0.3.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
| Download URL | coderouter-0.3.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl |
|---|---|
| Size | 4.7 MB |
| Tags | Linux glibc 2.17+ x86-64 Python 3 |
|
SHA-256 checksum How to use checksums |
ecb6e913f0eb2c955f22cb5be864f38acb801708e053eb6c7edc2a6838a1bf2d
|
|
BLAKE2b-256 checksum How to use checksums |
3dd955f881c708e75e6f9b392cc806a1ff9378e69d5f526dd4fba388b8ebf845
|
| 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 4, 2026.
Transparency logRelease files / coderouter-0.3.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
| Download URL | coderouter-0.3.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | Linux glibc 2.17+ ARM64 Python 3 |
|
SHA-256 checksum How to use checksums |
1fd7b971d15a4ad9d99d5592b3eeef85cfe496404fb3f8408bde25328f71a33b
|
|
BLAKE2b-256 checksum How to use checksums |
fb147b6cbc7e0c3ee3df960cb9bdf44744a2434fc253c2f3c7aee28e0fc8aaa2
|
| 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 4, 2026.
Transparency logRelease files / coderouter-0.3.3-py3-none-macosx_11_0_arm64.whl
| Download URL | coderouter-0.3.3-py3-none-macosx_11_0_arm64.whl |
|---|---|
| Size | 4.1 MB |
| Tags | Python 3 macOS 11.0+ ARM64 |
|
SHA-256 checksum How to use checksums |
8d93df03c548af4f8be85dd356f957e6f3416df2d430d0b657109c4b535859a4
|
|
BLAKE2b-256 checksum How to use checksums |
dfa282e381e9508c5d07d811a46632b095ae0ce16e9e57d12b06d6d24e783551
|
| 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 4, 2026.
Transparency logRelease files / coderouter-0.3.3-py3-none-macosx_10_12_x86_64.whl
| Download URL | coderouter-0.3.3-py3-none-macosx_10_12_x86_64.whl |
|---|---|
| Size | 4.5 MB |
| Tags | Python 3 macOS 10.12+ x86-64 |
|
SHA-256 checksum How to use checksums |
6208431e11a1a144a2b8ad882dd2fe3907677c46f7a42a23accb17e00519a979
|
|
BLAKE2b-256 checksum How to use checksums |
57da83d62491d0e377d7d399071dcb2b0f6dc05fa07f508e030155e9c22d7cbf
|
| 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 4, 2026.
Transparency log