Skip to main content

claude-acc-manager (cam)

Linux-only CLI/TUI to manage, measure, and swap Claude Code OAuth subscription accounts.

cam keeps a registry of Claude Code logins, measures each account's quota usage against Anthropic's OAuth usage endpoint, and swaps the live claude login to the account with the most headroom — on demand, or unattended via a polling loop. Credentials live as 0600/0700 files under XDG paths with atomic writes and proper-lockfile-compatible mkdir locks.

Install

Requires Python ≥3.11. Runtime deps: rich, textual.

uv tool install .
# or
pipx install .

Commands

Command Does
cam add <name> register an account via an isolated claude login
cam remove <name> unregister an account and delete its login dir
cam list [--json] list registered accounts
cam status [--json] show the account the live claude slot uses
cam usage <name> [--json] show one account's quota usage
cam switch [name] [--strategy best|next-available] [--dry-run] [--json] move the live login to another account; omit name to rotate by strategy
cam enable <name> / cam disable <name> include/exclude an account from automatic switching
cam auto [--once] [--interval S] [--threshold PCT] [--cooldown S] [--strategy S] [--dry-run] [--json] auto-switch loop; --once reports the outcome via exit code (0 switched, 1 error, 2 no action, 3 blocked)
cam tui interactive quota dashboard
cam doctor diagnose cam's claude interop setup (paths, locks, env, contract band)
cam watch interactive live monitor
cam config [list|get|set|unset|path] view or edit persisted settings (settings.json)
cam --version print the installed cam version

cam with no subcommand opens the TUI on an interactive terminal, prints usage otherwise. --json output is schema-v1 stable; human output degrades gracefully under NO_COLOR, TERM=dumb, or a pipe.

Docs

User documentation — install, guides, CLI/JSON/settings/env reference — lives at https://dmenezesgabriel.github.io/claude-acc-manager/.

  • docs/architecture.md — why the system is shaped this way (arc42).
  • docs/adr/ — durable decisions (MADR).
  • AGENTS.md — repo conventions and the docs map.

Acknowledgments

Design informed by claude-swap and ai-usagebar — both MIT. See NOTICE.

Metadata

Release files for claude-acc-manager 1.2.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for claude-acc-manager 1.2.1
File Size Uploaded Provenance Actions
claude_acc_manager-1.2.1.tar.gz 570.3 kB With provenance Details for claude_acc_manager-1.2.1.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for claude-acc-manager 1.2.1
File Interpreter ABI Platform Actions
claude_acc_manager-1.2.1-py3-none-any.whl Python 3 none any Details for claude_acc_manager-1.2.1-py3-none-any.whl

Total release size: 797.6 kB

Release files / claude_acc_manager-1.2.1.tar.gz

Download URL claude_acc_manager-1.2.1.tar.gz
Size 570.3 kB
Tags Source
SHA-256 checksum
How to use checksums
41060bd7e2d8d06a8a442a90bc7bc0d18c41844be80fb7205d8995a9e447e237
BLAKE2b-256 checksum
How to use checksums
710c59a7b119ca8b558d977f89fc7251c702145901a34b5a9d79fe9fbf1c1892
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 14, 2026.

Transparency log

Release files / claude_acc_manager-1.2.1-py3-none-any.whl

Download URL claude_acc_manager-1.2.1-py3-none-any.whl
Size 227.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
db2687532ad275e37a42d82f531677e81d3de770c8df49b55ae262417b49a158
BLAKE2b-256 checksum
How to use checksums
f17a8e314412887077689a5eb533b112a6f6bf501fd59039b00b5f4c33c89574
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

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 14, 2026.

Transparency log

Security for claude-acc-manager 1.2.1

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.

Full provenance

All 2 files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for claude_acc_manager-1.2.1.tar.gz

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 14, 2026.

Transparency log

A note on package security

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.

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