Use multiple AI subscriptions like one.
Per-session, token-free, agent-aware.
fairshare runs Claude Code as one assistant across the subscriptions you already have: every account shares the same history, memory, settings and skills.
The aim is to use every account fully before its weekly reset. It is a heuristic, not a guarantee.
Status: early (0.x). Claude Code on Pro, Max and Ultra plans is the first supported provider. Runs on macOS and Linux; Windows is not supported.
Terms. Whether spreading work across several subscriptions fits a provider's terms is for you to check. docs/terms-and-limits.md says what fairshare deliberately never does and what is left for you to decide.
pipx install fairshare-cli # the command is `fairshare` fairshare setup fairshare From source: git clone https://github.com/Dongli99/fairshare && pipx install ./fairshare. Installing needs network access once, to fetch the build tool; fairshare itself has no dependencies.
fairshare setup builds the hub: one folder (default ~/.local/share/fairshare/hub) that holds a Claude Code config folder per account, all linked to one shared set of history, transcripts, memory, settings, CLAUDE.md and skills. Before you run it, know that:
Every command, message and setting is in docs/usage.md.
score = capacity × (100 − weekly used %) ÷ hours until the weekly reset The score is the share of the week's budget it must burn per hour to use it all; the highest score wins. That sends work to the account whose reset is nearest and whose budget is least used. Capacity is the plan's size (Pro = 1).
Usage comes from Claude Code's own local /usage command, asked for every account at each launch (no model call, nothing spent), and from its status line during a session. The rule is one pure function in src/fairshare/policy.py.
fairshare uninstall # changes nothing; says where everything is pipx uninstall fairshare-cli uninstall lists the config, the state folder (usage snapshots, session records, checkpoint notes) and the hub, and gives you a prompt for your own agent to merge the hub's history back into your own folders. They all stay until you delete them. The hub's accounts stay signed in; fairshare leave --logout ID signs one out before you delete the hub.
ccm shares state between Claude Code accounts in a similar way. fairshare borrowed several of its ideas, reimplemented in its own code: ignoring stale statusLine redraws, reading claude auth status, warning about login-override variables, and merging a stray folder into the shared one with the clashing file renamed.
See CONTRIBUTING.md. New providers and plans are welcome; the policy never changes for them.
Both files in this release have provenance metadata.
claude-code cli routing subscriptions usage
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
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 verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 21, 2026.
Both files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.
Nov 21, 2026 2 release files Full provenance
Nov 20, 2026 2 release files Full provenance
Nov 19, 2026 2 release files Full provenance
Nov 18, 2026 2 release files Full provenance
Nov 17, 2026 2 release files Full provenance




