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

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.1.0
File Size Uploaded Provenance Actions
claude_acc_manager-1.1.0.tar.gz 507.2 kB With provenance Details for claude_acc_manager-1.1.0.tar.gz

Built distribution (wheel)

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

Total release size: 705.3 kB

Release files / claude_acc_manager-1.1.0.tar.gz

Download URL claude_acc_manager-1.1.0.tar.gz
Size 507.2 kB
Tags Source
SHA-256 checksum
How to use checksums
4c325b22d2985a9d3b976df67024fbb77515dd09c702ec394bbbc756b5c8cb4f
BLAKE2b-256 checksum
How to use checksums
f2d19005c5530dc9e728fa33cd0daa5f449406ff1c5596f738a542d7727679bf
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 9, 2026.

Transparency log

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

Download URL claude_acc_manager-1.1.0-py3-none-any.whl
Size 198.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
8a708676b6059728a0fd10f45f105d6abe9f680c1ae5abbc8eb010108e983627
BLAKE2b-256 checksum
How to use checksums
286ad3ea9035a8b70f815081b6523f43940a7d5cd6d3487771aa9f7206f346f8
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 9, 2026.

Transparency log

Security for claude-acc-manager 1.1.0

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.1.0.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 9, 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