coding_agent_account_manager
Sub-100ms auth switching for AI coding CLIs (Claude Code, Codex, Gemini, Grok, Cursor, and more): swap subscription accounts instantly when you hit usage limits
What is coding_agent_account_manager?
Sub-100ms auth switching for AI coding CLIs (Claude Code, Codex, Gemini, Grok, Cursor, and more): swap subscription accounts instantly when you hit usage limits
Overview of coding_agent_account_manager
What it is
caam (Coding Agent Account Manager) is a command-line tool for AI coding CLIs with fixed-cost subscription plans. It backs up and restores OAuth token files to switch between subscription accounts in under 100 milliseconds, avoiding the 30–60 second browser OAuth flow when usage limits are hit. It supports Claude Code, Codex, Gemini, Grok, Cursor, and other tools that store OAuth tokens in plain files on disk. The tool uses an embedded SQLite database and does not require a daemon (an optional background service is available). It works by copying authentication files between the live CLI config locations and a local vault at ~/.local/share/caam/vault/. Profile detection uses SHA-256 content hashing of current auth files compared against all vault profiles, so no hidden state files are needed and detection works after reboots or manual switches.
Key features
- Sub-100ms account switching by swapping OAuth token files in place.
- Three operating modes: vault profiles (sequential switching), isolated profiles (parallel sessions with full directory isolation), and shallow profiles (concurrent multi-account multiplexing with private auth files and symlinked development tools).
- Profile detection via SHA-256 content hashing of auth files.
- Robot commands for agent contexts that output JSON on stdout, diagnostics on stderr, and use exit codes for success/failure.
- Supports backup, activate, list, status, profile management, and exec commands.
Use cases
- Switching between multiple paid AI coding subscriptions (e.g., Claude Max, GPT Pro, Gemini Ultra) when one account hits its usage limit.
- Running multiple accounts simultaneously in different terminals for parallel agent sessions.
- Automating account switching in CI/CD or orchestration pipelines using JSON output and exit codes.
- Managing multiple work and personal accounts for the same AI coding CLI.
Getting started
bash curl -fsSL 'https://raw.githubusercontent.com/Dicklesworthstone/coding_agent_account_manager/main/install.sh?$(date +%s)' | bash Usage: bash caam backup claude [email protected] # Save current auth caam activate claude [email protected] # Switch instantly
License and pricing
The license is not stated in the provided metadata or README. The project is listed as open source with pricing type open_source and license NOASSERTION.
Based on the project's public README and repository metadata.