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

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.4
File
coderouter-0.3.4-py3-none-win_amd64.whl Python 3 none Windows x86-64 Details
coderouter-0.3.4-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl Python 3 none Linux glibc 2.17+ x86-64 Details
coderouter-0.3.4-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64 Details
coderouter-0.3.4-py3-none-macosx_11_0_arm64.whl Python 3 none macOS 11.0+ ARM64 Details
coderouter-0.3.4-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.4-py3-none-win_amd64.whl

Download URL coderouter-0.3.4-py3-none-win_amd64.whl
Size 4.5 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
42c2abfb333b7a1cf6150124bd6b7bcb7d6a2ea6528c7a7beb57a74a1f2ef5fa
BLAKE2b-256 checksum
How to use checksums
78897a28163d116d71e5564ef8536ae8c091621408c3f21aaecbb11b25837631
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

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

Download URL coderouter-0.3.4-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
3587490ef082314d86447882ac2041abdf636e34f30b495b59dd179d9db0883e
BLAKE2b-256 checksum
How to use checksums
63422f9847c86dd1ebdc3fb3f0cdb3eb2c2c4754620ae3b0535f0c2dcc9f80e9
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

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

Download URL coderouter-0.3.4-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
d15d8a517f933eaaa3b50a56946ea7496b2e2d3c2feaf5c89bdc65cb730b6d44
BLAKE2b-256 checksum
How to use checksums
63c4e8c20e3352c85e875f3d60b1a73ff1cc75b445464facb5bacff3f499ed45
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

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

Download URL coderouter-0.3.4-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
f42fa733fe542d6a03510d2d1f854f9f006fb4d82f2e8d3277f5443a762c9107
BLAKE2b-256 checksum
How to use checksums
05ef0775ce7a6642461a9c48e42ccd962447780bf8b21b02488472472fd43642
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

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

Download URL coderouter-0.3.4-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
b70410299e7869ead8db218e77d4bfd202ac6d03fbd583cf1f0cf13ab90cc538
BLAKE2b-256 checksum
How to use checksums
ca06a49977af69eb0f6ea645dc3bdbd3c1900d9f4c87f40a8fcd706798e5dcb9
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

Release history Release notifications | RSS feed

0.3.11

5 release files

This release

0.3.4 This release

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