ops-accounts

GitHub

多提供商AI账户管理器,支持Claude、Grok等。提供状态查询、OAuth设置、令牌刷新、轮换及配额监控功能,是旧版rotate命令的标准化替代方案。

claude-ops/skills/ops-accounts/SKILL.md Lifecycle-Innovations-Limited/claude-ops

Trigger Scenarios

管理多个AI服务提供商的账户状态 执行账户认证、令牌刷新或轮换操作 查询各平台的配额使用情况

Install

npx skills add Lifecycle-Innovations-Limited/claude-ops --skill ops-accounts -g -y
More Options

Non-standard path

npx skills add https://github.com/Lifecycle-Innovations-Limited/claude-ops/tree/main/claude-ops/skills/ops-accounts -g -y

Use without installing

npx skills use Lifecycle-Innovations-Limited/claude-ops@ops-accounts

指定 Agent (Claude Code)

npx skills add Lifecycle-Innovations-Limited/claude-ops --skill ops-accounts -a claude-code -g -y

安装 repo 全部 skill

npx skills add Lifecycle-Innovations-Limited/claude-ops --all -g -y

预览 repo 内 skill

npx skills add Lifecycle-Innovations-Limited/claude-ops --list

SKILL.md

Frontmatter
{
    "name": "ops-accounts",
    "effort": "medium",
    "maxTurns": 40,
    "description": "Multi-provider AI account manager (Claude, Grok\/xAI, OpenAI\/Codex, Factory, Cursor). Status, setup, switch, refresh, reauth, util, optional CRS\/LB. Canonical replacement for \/ops:rotate and \/ops:rotate-setup (those remain aliases).",
    "allowed-tools": [
        "Bash",
        "Read",
        "Write",
        "Edit",
        "AskUserQuestion"
    ],
    "argument-hint": "[status|list|setup|switch|refresh|reauth|util|rotate-now|crs|crs-tick|help] [provider] [args…]"
}

OPS ► ACCOUNTS

Canonical multi-provider seat manager. Same layers Anthropic has for Claude — for every provider:

Layer Verbs
Status / list status, list
Setup / OAuth capture setup
Switch active seat switch, rotate-now (Claude)
Refresh tokens refresh
Unattended reauth reauth
Utilization / quota util
Optional Claude LB (CRS or future gateway) crs, crs-tick

Aliases (compat): /ops:rotate → this skill (Claude-focused shortcuts).
/ops:rotate-setupsetup (wizard). /ops:account → same as this skill.

Providers

Provider Engine Reauth Util
Claude scripts/account-rotation/rotate.mjs + staged enrollment signed stage/activate only 5h/7d
Grok slots + grok-cli-auth-proxy (+ optional CRS hop) device-code + Google (dcli); residential egress cascade weekly / 429
OpenAI / Codex codex-rotate when present OAuth bridge usage best-effort
Factory adapter TBD / quota-feed seeds native quota-feed patterns
Cursor adapter TBD browser/device OAuth plan limits if available

CRS is optional. For Grok, CRS is only a thin hop to the SuperGrok OAuth proxy — multi-seat RR lives on the proxy, not a CRS account table. See docs/ops/OPS-ACCOUNTS-VISION.md (CRS cherry-pick / no-CRS path).

Router (bin/ops-accounts)

Always prefer:

PLUGIN_ROOT="${CLAUDE_PLUGIN_ROOT:-$(ls -d "$HOME/.claude/plugins/cache/ops-marketplace/ops"/*/ 2>/dev/null | sort -V | tail -1)}"
"$PLUGIN_ROOT/bin/ops-accounts" <cmd> …
Command Action
status / list All configured providers (no secrets)
util [claude|grok|all] Quota / utilization best-effort
switch claude / rotate-now Claude keychain rotate (force-rotate / rotate.mjs)
switch grok Next SuperGrok seat (grok-rotate switch)
refresh [all|claude|grok] Keepalive / RT refresh
reauth claude <email> Fails closed with staged-enrollment handoff
reauth grok <email> Device reauth with residential cascade env
setup / setup claude Claude direct auth is disabled; staged enrollment required
setup grok Add/reauth SuperGrok seat
crs / crs-tick Optional Claude CRS pool status / one tick
seats Local multi-provider seat-state (no CRS)

Claude setup / OAuth

When $ARGUMENTS is setup, setup claude, or this skill is invoked via ops-rotate-setup alias: follow the full wizard in skills/ops-rotate-setup/SKILL.md (Steps 1–5, CRS optional 4.4–4.7). That file remains the detailed Claude setup procedure; this skill is the entrypoint.

Claude day-2 ops (status/rotate-now/list/reauth/crs) also match skills/ops-rotate/SKILL.md — treat that as Claude detail appendix.

Local seat-state (no CRS)

"$PLUGIN_ROOT/bin/ops-accounts" seats status
"$PLUGIN_ROOT/bin/ops-accounts" seats import-claude-config
node "$PLUGIN_ROOT/scripts/account-rotation/seat-state.mjs" toggle claude <email> false

File: $CLAUDE_PLUGIN_DATA_DIR/account-rotation/seat-state.json (or OPS_ACCOUNTS_STATE_PATH).

Grok notes

  1. CLI models often use base_url → CRS /grok/v1host OAuth proxy → SuperGrok seats.
  2. grok-rotate / auth.json is the SuperGrok seat set; keep auth-slots in sync after reauth.
  3. Reauth egress: EFG SOCKS (GROK_REAUTH_SOCKS) → Bright Data tiers via
    scripts/account-rotation/grok-reauth-egress.sh (residential cascade).
  4. Proxy RR status: curl -sS http://127.0.0.1:31845/accounts (no tokens).

Rules

  1. Never print tokens, cookies, OTP codes, or vault dumps.
  2. Never write real emails into committed files.
  3. Prefer bin/ops-accounts over ad-hoc host paths.
  4. Missing CRS is not a failure.
  5. Dead RT → reauth, not “install CRS.”
  6. Background long OAuth (Rule 4).

Phase map

0 contract + this skill · 1 Claude parity · 2 CRS optional · 3 Grok complete ·
4 Codex+Factory · 5 Cursor · 6 companions · 7 host cutover · 8 gateway (no CRS)

Version History

  • 64bad13 Current 2026-08-12 08:59

Same Skill Collection

claude-ops/skills/boss/SKILL.md
claude-ops/skills/flow/SKILL.md
claude-ops/skills/ledger/SKILL.md
claude-ops/skills/ops-ar/SKILL.md
claude-ops/skills/ops-aws-audit/SKILL.md
claude-ops/skills/ops-comms/SKILL.md
claude-ops/skills/ops-competitors/SKILL.md
claude-ops/skills/ops-credentials/SKILL.md
claude-ops/skills/ops-daemon/SKILL.md
claude-ops/skills/ops-dash/SKILL.md
claude-ops/skills/ops-deploy-fix/SKILL.md
claude-ops/skills/ops-deploy/SKILL.md
claude-ops/skills/ops-desktop/SKILL.md
claude-ops/skills/ops-doctor/SKILL.md
claude-ops/skills/ops-ecom/SKILL.md
claude-ops/skills/ops-feature-dev/SKILL.md
claude-ops/skills/ops-fires/SKILL.md
claude-ops/skills/ops-fleet/SKILL.md
claude-ops/skills/ops-go/SKILL.md
claude-ops/skills/ops-gtm/SKILL.md
claude-ops/skills/ops-home/SKILL.md
claude-ops/skills/ops-inbox/SKILL.md
claude-ops/skills/ops-integrate/SKILL.md
claude-ops/skills/ops-leadgen/SKILL.md
claude-ops/skills/ops-linear/SKILL.md
claude-ops/skills/ops-mac/SKILL.md
claude-ops/skills/ops-marketing/SKILL.md
claude-ops/skills/ops-mcp/SKILL.md
claude-ops/skills/ops-merge/SKILL.md
claude-ops/skills/ops-monitor/SKILL.md
claude-ops/skills/ops-next/SKILL.md
claude-ops/skills/ops-orchestrate/SKILL.md
claude-ops/skills/ops-package/SKILL.md
claude-ops/skills/ops-pocket/SKILL.md
claude-ops/skills/ops-projects/SKILL.md
claude-ops/skills/ops-recap/SKILL.md
claude-ops/skills/ops-release/SKILL.md
claude-ops/skills/ops-resume/SKILL.md
claude-ops/skills/ops-revenue/SKILL.md
claude-ops/skills/ops-rotate-setup/SKILL.md
claude-ops/skills/ops-rotate/SKILL.md
claude-ops/skills/ops-secret-sync/SKILL.md
claude-ops/skills/ops-settings/SKILL.md
claude-ops/skills/ops-ship/SKILL.md
claude-ops/skills/ops-speedup/SKILL.md
claude-ops/skills/ops-status/SKILL.md
claude-ops/skills/ops-triage/SKILL.md
claude-ops/skills/ops-unifi/SKILL.md
claude-ops/skills/ops-update/SKILL.md

Metadata

Files
0
Version
2dbf8cb
Hash
826f81ce
Indexed
2026-08-12 08:59

ホーム - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-12 22:34
浙ICP备14020137号-1 $お客様$