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 codex [--team ID]      add a personal or team ChatGPT workspace
cr add claude [--label NAME] [--team ID]  add a Claude Max or Pro setup token
cr add opencode [--team ID]   add OpenCode Go
cr remove [account] [--yes]   remove a subscription
cr transfer [account] [--to <team>] [--yes]
                              move a subscription to another team after a y/N prompt
cr accounts                   list available subscriptions
cr accounts --json --team ID  list one team's subscriptions without switching scope
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.

cr transfer moves one subscription from the active organization to another organization you manage. The account is an ID or exact label, and --to is a team ID or case-insensitive team name; either one opens a picker when omitted. Before sending, the CLI prints the account, provider, source team, destination team, and the consequence (the source team's members and Cloud machines stop using it; it keeps its current sharing in the destination), then asks Transfer? [y/N]. --yes (-y) skips the prompt. Without a terminal the command refuses to run unless --yes is present. Claude subscriptions cannot be transferred yet; remove and re-add them in the destination team.

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

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

Total release size: 29.7 MB

Release files / coderouter-0.3.16-py3-none-win_amd64.whl

Download URL coderouter-0.3.16-py3-none-win_amd64.whl
Size 6.0 MB
Tags Python 3 Windows x86-64
SHA-256 checksum
How to use checksums
36c8f7aea8271f6ff8d57e2b19af2284f6a456a6ba431762b6ded332e0f82259
BLAKE2b-256 checksum
How to use checksums
aa854fede732b711778ed2cec5fd8094e24d98d7baba4f90b8187760e1963e30
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 Oct 7, 2026.

Transparency log

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

Download URL coderouter-0.3.16-py3-none-manylinux_2_17_x86_64.manylinux2014_x86_64.whl
Size 6.3 MB
Tags Linux glibc 2.17+ x86-64 Python 3
SHA-256 checksum
How to use checksums
0435e587e05c0eb78af05081629dcc5a46235a528345d64451c41adde103ccf3
BLAKE2b-256 checksum
How to use checksums
c1b6ed424d52567dce6510b1ce8828cd2648810ffa6b4ddb5dae6f96b9ef071d
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 Oct 7, 2026.

Transparency log

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

Download URL coderouter-0.3.16-py3-none-manylinux_2_17_aarch64.manylinux2014_aarch64.whl
Size 6.0 MB
Tags Linux glibc 2.17+ ARM64 Python 3
SHA-256 checksum
How to use checksums
2b6f2efcff26dbc887ffbf6902461481db69e648213ffcafe732a9b7622fffe8
BLAKE2b-256 checksum
How to use checksums
52697f55ef66209b35e01fdd3440b3136f0c8ae0e1d85a7f2a4a22cfc885b71a
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 Oct 7, 2026.

Transparency log

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

Download URL coderouter-0.3.16-py3-none-macosx_11_0_arm64.whl
Size 5.5 MB
Tags Python 3 macOS 11.0+ ARM64
SHA-256 checksum
How to use checksums
517bdd9c4deb2f0be9fbff4bb8f115a8de6b2e5db15632cf24554468b163229f
BLAKE2b-256 checksum
How to use checksums
c92a602576994b3a10ac5b47f0d0547236edf0730c022f26f0df8101c017f4dc
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 Oct 7, 2026.

Transparency log

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

Download URL coderouter-0.3.16-py3-none-macosx_10_12_x86_64.whl
Size 5.9 MB
Tags Python 3 macOS 10.12+ x86-64
SHA-256 checksum
How to use checksums
506846dc19826b0eb6ed3e6bf71af75806311322caacc6466c85ef15386e18a3
BLAKE2b-256 checksum
How to use checksums
83c9eff24b5db24d69cc6f7d4cc393bc0fa5a5e2fc4bb9c747f2fe9f9b4597ff
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 Oct 7, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.3.16 This release

5 release files

0.3.11

5 release files

0.3.4

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