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 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. 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.

Privacy-safe analytics

Signed-in CLI commands send a short, best-effort lifecycle event to the authenticated CodeRouter server. The closed schema contains only coarse command/agent/mode/outcome/failure/exit/duration/context categories and the CLI version. It never includes command arguments, prompts, output, credentials, tokens, account/team/user identifiers, names, labels, email, paths, URLs, or free-form errors. Delivery cannot fail a command and uses a 200 ms deadline.

Disable CLI analytics with either:

export DO_NOT_TRACK=1
# or
export CODEROUTER_TELEMETRY_DISABLED=1

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

Uploaded Python 3Windows x86-64

coderouter-0.3.1-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.3.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl (4.5 MB view details)

Uploaded Python 3manylinux: glibc 2.17+ ARM64

coderouter-0.3.1-py3-none-macosx_11_0_arm64.whl (4.1 MB view details)

Uploaded Python 3macOS 11.0+ ARM64

coderouter-0.3.1-py3-none-macosx_10_12_x86_64.whl (4.4 MB view details)

Uploaded Python 3macOS 10.12+ x86-64

File details

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

File metadata

  • Download URL: coderouter-0.3.1-py3-none-win_amd64.whl
  • Upload date:
  • Size: 4.4 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.3.1-py3-none-win_amd64.whl
Algorithm Hash digest
SHA256 9d174ce9dd731aacf2526f61e509b76051438efad1e0adae931b7d905bc25f79
MD5 5b340acca224466a8caa6c63727f8452
BLAKE2b-256 1319c1dda359cafa83a2c4c430864fb4f6a9244bbcf4d1b7689375582352be72

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for coderouter-0.3.1-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Algorithm Hash digest
SHA256 9587028e88fd8653e8fb9e5c82fe2f889c62e8c4419833a476eed4e694bbe08e
MD5 c81716897df190c496414d37357cd5e8
BLAKE2b-256 2b9cf91a50cedc075eed61c3dd7d5dc18409a2e1a8d8e732c94f5242a5df3c95

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for coderouter-0.3.1-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Algorithm Hash digest
SHA256 8a3264c8646c5396982654e92cf2e7773d5e9530041c8a24e01b11849e57dd2a
MD5 d81c2c56ca97a5b453d45c6b5feb4c2f
BLAKE2b-256 cc5a8b608c41b1239894b7fa72cc108cd94955d5ef7c07477f309bf16a48f3a0

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for coderouter-0.3.1-py3-none-macosx_11_0_arm64.whl
Algorithm Hash digest
SHA256 1a62e2156305591f734df79108536ac5c61e2bcd042a7f718fd0842139701df8
MD5 ab7b6422db486d955b71608a55af86ca
BLAKE2b-256 76fa87457b893c844dce8aa737e71da9805fdaf2748fe61de445b435c22ebbed

See more details on using hashes here.

Provenance

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

File metadata

File hashes

Hashes for coderouter-0.3.1-py3-none-macosx_10_12_x86_64.whl
Algorithm Hash digest
SHA256 204a48e5362b0d26bd016d1b8268ca185152628443785e4325a6e23a0af0117e
MD5 9cf75f00ba7ccaaf12428911e9cc5140
BLAKE2b-256 24f105ea33b0ee324988960d2b3d6877356774bc214411bcb076775eeda6afb7

See more details on using hashes here.

Provenance

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

This release

0.3.1 This release

5 files

0.3.0

5 files

0.2.3

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