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 or OpenCode Go interactively
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 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. Direct Codex authentication has an explicit portable-PTY fallback through the official CLI. 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.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distributions

No source distribution files available for this release.See tutorial on generating distribution archives.

Built Distributions

If you're not sure about the file name format, learn more about wheel file names.

coderouter-0.2.3-py3-none-win_amd64.whl (6.7 MB view details)

Uploaded Python 3Windows x86-64

coderouter-0.2.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl (4.7 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ x86-64

coderouter-0.2.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.4 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

coderouter-0.2.3-py3-none-macosx_11_0_arm64.whl (4.3 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

coderouter-0.2.3-py3-none-macosx_10_12_x86_64.whl (4.5 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

Details for the file coderouter-0.2.3-py3-none-win_amd64.whl.

File metadata

  • Download URL: coderouter-0.2.3-py3-none-win_amd64.whl
  • Upload date:
  • Size: 6.7 MB
  • Tags: Python 3, Windows x86-64
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.13

File hashes

Hashes for coderouter-0.2.3-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 01e8d70d6d9adee424fe1428e5e6982581bb0ec010c114b3b9b143b5173a2c33
MD5 b6c4f6c5e621c2c173cf07664fce677c
BLAKE2b-256 c3ae01060510e137a6785cb1813edac5e95cf4c1b2f4abd232be3eb26367ffbb

See more details on using hashes here.

Provenance

The following attestation bundles were made for coderouter-0.2.3-py3-none-win_amd64.whl:

Publisher: publish-pypi.yml on manaflow-ai/coderouter-releases

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file coderouter-0.2.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for coderouter-0.2.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 ab0aa9adea805ff316b6282538415f39351c2848feea490759b8972c1fab0cf2
MD5 5972667fa6101c89b6719a1ba8c7e5a3
BLAKE2b-256 d4317944d539b59d6391fd1c3458093179870bfec0cde11190a5985372bb1548

See more details on using hashes here.

Provenance

The following attestation bundles were made for coderouter-0.2.3-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl:

Publisher: publish-pypi.yml on manaflow-ai/coderouter-releases

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file coderouter-0.2.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for coderouter-0.2.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 98750d1666ae36ac86d78fea95c78a73bcebc68d5a8d66e569a21951bec8d792
MD5 515572b57e11cea39986c648a2989b6b
BLAKE2b-256 433cf356a356e84982f72c887437de527dccf49168a278688b6853573d20133e

See more details on using hashes here.

Provenance

The following attestation bundles were made for coderouter-0.2.3-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl:

Publisher: publish-pypi.yml on manaflow-ai/coderouter-releases

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file coderouter-0.2.3-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for coderouter-0.2.3-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 bc3e88771dd79d0923333028361c4adad640e0caa276e266407ddd709c243795
MD5 21f7f914ccb04747faa34937d0c32053
BLAKE2b-256 89886c43dd80ce0640068061adb5a13a1701d1c141d79e91c12e07eea0bd7d54

See more details on using hashes here.

Provenance

The following attestation bundles were made for coderouter-0.2.3-py3-none-macosx_11_0_arm64.whl:

Publisher: publish-pypi.yml on manaflow-ai/coderouter-releases

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file coderouter-0.2.3-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for coderouter-0.2.3-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 399eb49d3efb4a0d28ed4304c7abbecd3e81b489e8fcff23a45d3c1287f40a6d
MD5 c1b9271ed7b475b3cba3ee2ccc0520dc
BLAKE2b-256 ace2d784dd91e131bf4261e19a096d12741f53f21385087a24a64ea279a6e7cf

See more details on using hashes here.

Provenance

The following attestation bundles were made for coderouter-0.2.3-py3-none-macosx_10_12_x86_64.whl:

Publisher: publish-pypi.yml on manaflow-ai/coderouter-releases

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.3.1

5 files

0.3.0

5 files

This release

0.2.3 This release

5 files

0.2.2

5 files

0.1.0

2 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