‹ 首页

caam

@boshu2 · 收录于 1 周前

Use when switching AI coding CLI accounts quickly to recover from subscription rate limits or OAuth friction.

适合你,如果经常因订阅限制或OAuth问题中断AI编码工作流

/ 下载安装
caam.skill双击,或拖进 Claude 桌面版 / Cowork,即完成安装↓ .skill↓ .zip
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code~/.claude/skills/(项目级 .claude/skills/)
Codex CLI~/.codex/skills/
Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add boshu2/agentops/caam
/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- boshu2/agentops/caam
/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify boshu2/agentops/caam
安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
407GitHub stars
待重算上下文体积
镜像托管

怎么用

技能原文 SKILL.md作者撰写 · Apache-2.0 · bd3f0f7

<!-- TOC: Quick Start | Daily Operations | Rotation Doctrine | Flywheel Integration | References -->

CAAM — Coding Agent Account Manager

Core Problem: You hit rate limits on your $200/mo Claude Max subscription. Browser OAuth takes 30-60 seconds. CAAM swaps accounts in ~50ms.

Don't re-learn the command surface here. caam --help (and per-subcommand --help) self-describes every command and flag; the full catalog also lives in [COMMANDS.md](references/COMMANDS.md). This skill carries the operating doctrine: how to seed the vault, when to rotate vs cooldown, and how CAAM fits the agent fleet.

How It Works (why it's safe)

Each AI CLI stores OAuth tokens in plain files (e.g. ~/.claude.json, ~/.codex/auth.json, ~/.gemini/oauth_credentials.json). CAAM backs them up to a local vault and restores them on activate. No daemons, no databases, no network calls — just cp with extra steps. Vault layout: [VAULT.md](references/VAULT.md).

Supported tools: Claude Code, Codex CLI, Gemini CLI (each on its own subscription).

Quick Start — Seeding the Vault
# Install
curl -fsSL "https://raw.githubusercontent.com/Dicklesworthstone/coding_agent_account_manager/main/install.sh?$(date +%s)" | bash

# Backup current account
caam backup claude alice@gmail.com

# Clear, login with another account, backup that too
caam clear claude
claude  # /login with bob@gmail.com
caam backup claude bob@gmail.com

# Switch instantly forever
caam activate claude alice@gmail.com   # ~50ms, no browser

A profile must be backed up once before it can ever be activated. Seed every account you own up front — mid-rate-limit is the wrong time to discover an empty vault.

Daily Operations

The four moves that cover almost every session:

caam status                    # which profile is active per tool (content-hash matched)
caam activate claude --auto    # rotation picks best profile (health, recency, cooldowns)
caam cooldown set claude       # mark current profile rate-limited (60min default); rotation skips it
caam next claude               # preview what rotation would select, without switching
Zero-Friction Aliases
# Add to .bashrc/.zshrc
alias claude='caam run claude --'
alias codex='caam run codex --'
alias gemini='caam run gemini --'

# Now these auto-failover on rate limits
claude "explain this code"
Project Associations

Link profiles to directories so work and personal accounts never cross:

cd ~/projects/work-app
caam project set claude work@company.com
caam activate claude            # in this directory, auto-uses work@company.com
Rotation Doctrine
  • Hit a rate limit → caam cooldown set <tool> BEFORE switching. Rotation can only skip profiles it knows are burned. Switching without marking the cooldown sends the next --auto right back into the limited account.
  • Prefer --auto over hand-picking once ≥2 profiles exist — the default smart algorithm weighs cooldown, health, recency, and jitter. (round_robin/random exist; details in [COMMANDS.md](references/COMMANDS.md).)
  • Check caam status after any activate — content-hash matching tells you what is actually live, not what you intended.
  • The interactive dashboard is caam tui (blocks the terminal — keybindings self-described in-app). Agents should stick to the non-interactive commands above.
Flywheel Integration

| Tool | Integration | |------|-------------| | NTM | Each tmux pane uses a different account via isolated profiles — see [ISOLATED-PROFILES.md](references/ISOLATED-PROFILES.md) | | Agent Mail | Agents coordinate account switching across sessions | | CASS | Search sessions by account for usage patterns |

References

| Topic | Reference | |-------|-----------| | Complete commands | [COMMANDS.md](references/COMMANDS.md) | | Isolated profiles | [ISOLATED-PROFILES.md](references/ISOLATED-PROFILES.md) | | Vault structure | [VAULT.md](references/VAULT.md) |

Validation
caam --version                          # verify installation
caam status                             # check all profiles
caam activate claude --auto && caam status   # test switch
按 Apache-2.0 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。