agentleFS
AlphaSaleAidanAlphaSaleAidan/pierce-skill-kit/skills/claude-accounts/SKILL.md

claude-accounts

Skill0 starsChanged 30 days agoMITView on GitHub

Pick the right one of your separate Claude Code accounts (e.g. personal vs work vs a client's) for a session, project tab or headless job, and read each account's usage. Use when starting background/headless claude jobs (cron, scripts, `claude -p`), opening a project tab that belongs to a specific account, when someone asks which account to use or how much usage is left, or when adding an account to the machine.

The file

We split this skill into the rules it gives an agent

2 rules. About 0 are common, 1 is distinctive, and 1 is very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈1

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If two accounts show the same login email, the second /login never happened: open that account and sign in.

    line 38
  2. Distinctive:

    Never print token or credential values.

    line 39

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Claude accounts

Thin rules on top of the kit's claude-acct tool (full docs: docs/accounts.md). Each account lives in its own config dir (~/.claude = main, ~/.claude-<name> for the rest) with its own login; skills, CLAUDE.md, settings and memory are shared by symlink.

Each account must be its own legitimately owned/paid account; check Anthropic's terms for your plan. Accounts are for keeping separate purposes apart (personal / work / a client who pays for their own seat), not for stretching usage limits. There is no automatic switching when an account hits a limit, and this skill never adds one.

NeedCommand
See every account's last 5-hour / weekly %claude-acct list
Start Claude on a specific accountclaude-acct run <name> [claude args] (main = ~/.claude)
A project tab on a specific accountclaude-tab <dir> -n <Project> -a <name>
A headless job on a specific accountclaude-acct run <name> -p "..."
Add an accountclaude-acct add <name>, then /login in the Claude that opens

Rules

  • Pick by purpose, not by headroom. A job runs on the account whose work it is: client-a's repo on the account client-a pays for, personal projects on yours. Put the mapping in your CLAUDE.md once (e.g. "client-a/* → account client-a") so cron jobs and tabs follow it.
  • New cron/scripted jobs name their account explicitly (claude-acct run <name> -p), never a bare claude that silently lands on whatever account the shell happens to point at.
  • Usage numbers come only from Claude Code's own rate_limits (saved by the kit statusline). Never read login tokens or call undocumented endpoints to get them. "no data yet" just means that account hasn't drawn a status line since the statusline mod was installed.
  • An account near its limit: tell the human and wait, or move to work that doesn't need it. Don't re-route that account's work onto another account.
  • Subagents run on the parent session's account. Work that belongs to another account is a separate session on that account, not a subagent.
  • If two accounts show the same login email, the second /login never happened: open that account and sign in.
  • Never print token or credential values; compare logins by email only.

Needs: this kit (claude-acct, claude-tab), the statusline mod for usage numbers, jq.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.