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

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.2
File Size Uploaded Provenance Actions
claude_acc_manager-1.2.2.tar.gz 570.8 kB With provenance Details for claude_acc_manager-1.2.2.tar.gz

Built distribution (wheel)

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

Total release size: 798.1 kB

Release files / claude_acc_manager-1.2.2.tar.gz

Download URL claude_acc_manager-1.2.2.tar.gz
Size 570.8 kB
Tags Source
SHA-256 checksum
How to use checksums
e8cc303a370ffafb966b4fa5bbf2d474d0a73864dac7b734b85dc36f8126729c
BLAKE2b-256 checksum
How to use checksums
d315d8d253fdd500539c3526fe926f03be455468e140f30fa567d65a205f6e3e
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.2-py3-none-any.whl

Download URL claude_acc_manager-1.2.2-py3-none-any.whl
Size 227.2 kB
Tags Python 3
SHA-256 checksum
How to use checksums
3edacd47de60e98ea89b7c0d2b9711f4677981f818c7c27e5694d763570b6b9d
BLAKE2b-256 checksum
How to use checksums
a41e88ade161d4305afcc40062f56ea9860b682d53517a7a84dd03cc98dd3209
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.2

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