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

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.2-py3-none-win_amd64.whl (6.6 MB view details)

Uploaded Python 3Windows x86-64

coderouter-0.2.2-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.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.4 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

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

Uploaded Python 3macOS 11.0+ ARM64

coderouter-0.2.2-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.2-py3-none-win_amd64.whl.

File metadata

  • Download URL: coderouter-0.2.2-py3-none-win_amd64.whl
  • Upload date:
  • Size: 6.6 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.2-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 8a3d5fcdfab106a565643dff4ce14a35bf671d371bf2ca6c0925a9ca3e6e468a
MD5 f2a7d2a598b7cb626f8f55e380d34e3b
BLAKE2b-256 db57c118d4db717401ac2ceeb7f5fc5e87b32c56a239907810701ef52fae58f4

See more details on using hashes here.

Provenance

The following attestation bundles were made for coderouter-0.2.2-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.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl.

File metadata

File hashes

Hashes for coderouter-0.2.2-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 859b50d88d7f206441842f6e328625880ec80cb3c83377e0fa9a699e0e442e6c
MD5 612027e05efe257afa0054d18dba65ae
BLAKE2b-256 3f34d31dee4f2a2862b41fca39d0927bcf21b55c9889e031fd92180747f9a681

See more details on using hashes here.

Provenance

The following attestation bundles were made for coderouter-0.2.2-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.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl.

File metadata

File hashes

Hashes for coderouter-0.2.2-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 a0159cb6bd5e9b5854584a801d7b0702da7d3ae2cd90e4a46e1ab6ae45e1e941
MD5 f8c8c87a66f23088c7ebe7c316f8fe45
BLAKE2b-256 e001e48393bb8992ee231b2639cf633f83ddbdfc096167fd5b3081c44eded864

See more details on using hashes here.

Provenance

The following attestation bundles were made for coderouter-0.2.2-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.2-py3-none-macosx_11_0_arm64.whl.

File metadata

File hashes

Hashes for coderouter-0.2.2-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 054e9e50d16611676423b9a1e0e6c212dd855675e96c14d2718e8442b3c2a4ca
MD5 f6647dcb1bfd96893ac11311e2a20fcc
BLAKE2b-256 84cd88bee7bf025971cc7e53650d7916e38eece15b0c8cb19a0924c2425a547c

See more details on using hashes here.

Provenance

The following attestation bundles were made for coderouter-0.2.2-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.2-py3-none-macosx_10_12_x86_64.whl.

File metadata

File hashes

Hashes for coderouter-0.2.2-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 e56c715860fb5a34bda4d11f9e528e5e5cdfe58b75e0aa4a92b2ab8c0ce09575
MD5 e53096748d63defd3189ba7f29637cc4
BLAKE2b-256 1ffabc4775d0613235906d84a1380acc614d09ec989eb190f4ddb3d60ae45efe

See more details on using hashes here.

Provenance

The following attestation bundles were made for coderouter-0.2.2-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

0.2.3

5 files

This release

0.2.2 This release

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