⏳ This skill is pending AI review.
Scores will appear once the review pipeline completes.
setup-account-routing
Set up native-profile multi-account routing for Claude Code — account labels, isolated config profiles, quota-aware live handoffs, and the supervised launcher.
Choose how to use this skill
You do not need every option. Choose the path your AI client supports. The stable page stays the same; versioned files are immutable.
1. Native installer
This listing has no registered native installer command. Use the complete package or source fallback below, depending on what your client supports.
Do not guess an installer command or replace an existing version without reviewing the diff.
2. Complete package recommended
Download the ZIP when available. It includes SKILL.md plus the references, security notes and version metadata.
No complete ProSkills package is published for this listing yet.3. Prompt-only
Copy the prompt above when the agent can read the stable page or when you want to adopt the workflow without installing a skill.
Need only the instruction file?
Download SKILL.md only if your client requires a single file. The complete ZIP is safer for a full installation because it preserves the references and release context.
No path installs or executes anything by itself. Your agent still needs access to the project files. Before updating, compare the installed version and review the diff.
// RATINGS
Not yet listed on ClawHub or SkillsMP
// README
Five tools, one repo, shared data files:
- Claude Code status line (
bin/statusline.sh): the multi-line dashboard below. - Codex status line (
bin/codex-statusline,codex-top): the same idea for the Codex CLI. accounts(bin/accounts.py): native-profile account routing and a headroom board.- Token scanning (
bin/scan-tokens*): attributes every token to work/personal and to a payer. - Agent Metrics (
bin/agent-metrics): opt-in local telemetry and dashboard.
model Fable 5.ultracode
time ⏱ 2:29:20
account [email protected]
repo my-project feature/fix-the-thing (v1.2.0*)
pr #N Fix The Thing The Session Is Working On
context ●●●●●●●○○○○○○○○ 49%
session ●●●●●●●●●○○○○○○ 60.2% resets 10:00pm PDT
weekly ●●●●○○○○○○○○○○○ 31.07% resets jul 27, 12:00pm PDT
fable ●●●●○○○○○○○○○○○ 33%
usage today 5.57M · session 1.16M · lifetime 593.31M
acct 5h reset week fable reset
· Work 84% 2h15m 51% 80% 2d
· Work-Max 25% 2h25m 68% 100% 2d
* Personal 60% 3h45m 31% 33% 6d
· Side 0% — 100% 16% 2d
The Claude status line is one bash script with no dependency beyond jq.
Quick start
curl -fsSL https://raw.githubusercontent.com/AndrewTKent/statusline/main/install.sh | bash
Restart Claude Code. Requires jq and a logged-in Claude Code; gh is optional, for PR badges. On Windows, see Windows (Git Bash).
Other ways in: npx @andrewkent/claude-statusline install, or copy bin/statusline.sh to ~/.claude/statusline.sh and point statusLine at it (docs/statusline.md).
Claude Code status line
Claude Code pipes a JSON status blob to the script, and it prints one labeled row per fact: model, session time, account, repo, branch, PR, context fill, the 5-hour and weekly windows, and token totals. Rows appear only when their data exists. Rate limits refresh in the background, so a render never waits on the network except to validate a changed credential.
Reference: docs/statusline.md (every row, PR badges, files written).
Formats
Set FORMAT= in ~/.claude/statusline.conf or the STATUSLINE_FORMAT env var. Details: docs/formats.md.
| Format | What it renders |
|---|---|
default | The multi-line dashboard above; falls through to narrow below NARROW_THRESHOLD (60) columns |
compact | Only the context and session rows |
narrow | The default facts with short labels and bars scaled to the width |
sigil | One dense, width-adaptive line, for tmux status bars |
sparkline | default plus cost and 5h-rate trend charts over the last 15 sessions |
rprompt | Writes a zsh right-prompt to ~/.claude/rprompt.txt |
iterm2 | Pushes values to the iTerm2 status bar, or the Kitty window title |
Configuration
~/.claude/statusline.conf is sourced by bash, and every setting is optional. Full list: docs/configuration.md; annotated example: config/statusline.conf.example.
| Key | Effect |
|---|---|
FORMAT | Render mode (table above) |
DAILY_BUDGET | Daily cost ceiling; adds the budget row |
ACCOUNT_LABELS, LABEL_COLORS | Email pattern → short account tag, and its color |
SHOW_ACCOUNT_RESETS | Adds the per-account board |
SHARED_ACCOUNT_SNAPSHOT | Read account and quota rows only from the accounts snapshot |
WORK_PATHS, PERSONAL_PATHS, WORK_KEYWORDS, PERSONAL_KEYWORDS | Work/personal token classifier |
Codex status line
codex-statusline launches Codex with a fixed bottom pane showing the model, elapsed time, routed account, repo, context, tokens, permissions, and each Codex account's weekly quota. codex-top is the live view of every parent and subagent session. Both read local state only and call no API. Requires the Codex CLI, Python 3, ~/.local/bin on PATH, and tmux for the multi-line footer.
./install-codex.sh
codex-statusline
Reference: docs/codex.md (scrolling, native mode, permissions default, settings).
Accounts
accounts routes each Claude Code session to one of several subscription accounts, each in its own native profile under ~/.accounts/profiles/<label>; codex-accounts does the same for Codex. A supervisor resumes a session on another account before a window is exhausted. When no safe account is left, the overage guard (on by default) stops it at 100% of a window, before extra usage starts.
./install-account-router.sh
accounts status
| Command | What it does |
|---|---|
accounts status | Mode + per-account 5h/7d/Fable headroom |
accounts auto | Clear global and pane pins, then route supervised sessions to the freshest account |
accounts set <label> | Force every supervised session onto <label> |
accounts pane set <label> | Pin only the current terminal pane |
accounts fable | Switch live supervised sessions to Fable while headroom is available |
accounts poll | Refresh dormant stored/native profiles, then poll every routable account |
accounts move <label> --to <host> | Move an account to another machine (--from <host> pulls one here) |
accounts login --box <host> <label> | Log a box in to <label> with its own /login there; the browser step runs here and no credential leaves either machine |
A machine that should never pin, such as a box of unattended sessions, sets ACCOUNTS_PINS=0 in ~/.claude/statusline.conf. There accounts set and accounts pane set refuse, and any pin already stored is ignored, so every launch and every handoff goes to the account with headroom.
A login lives on one machine. Claude's OAuth refresh rotates the refresh token, so two machines holding one login race: the first to refresh wins and the other is signed out. accounts export and accounts import therefore run only inside accounts move, which forgets the source; a second machine that needs the same account gets its own login with accounts login --box, a separate lineage on the same quota.
A session named for a lane (claude --name infra, or /rename infra) shows that lane and its open PRs on one row, most pressing first and colored by state, and the unattended jobs working them. lane-own give infra meetsol/iris#8987 IRI-12283 hands items to a lane.
Reference: docs/accounts.md (all commands, Codex setup, the o
// HOW IT'S BUILT
// FILES
2 files shipped with this skill. Inline text is the catalog copy. The upstream link is the source repository.
.claude/skills/setup-account-routing/SKILL.md3.7 KB2be9084ffbdbupstream ↗
--- name: setup-account-routing description: Set up native-profile multi-account routing for Claude Code — account labels, isolated config profiles, quota-aware live handoffs, and the supervised launcher. --- # Setup: account routing (accounts) Multi-account routing for Claude Code. Each account gets an isolated native `CLAUDE_CONFIG_DIR`. The supervisor chooses by quota headroom and resumes the same conversation under another profile when the active account is blocked. Run `/setup-statusline` first — both tools share `~/.claude/statusline.conf`. ## Hard rules - Interactive routing uses Claude's native OAuth credentials, not setup-token injection or global credential replacement. - Never display or log credential values. `~/.accounts/` stays out of transcripts and commits. - `accounts mint` is only for headless jobs. ## Steps 1. **Label the accounts** in `~/.claude/statusline.conf`: ```bash ACCOUNT_LABELS="gmail:[email protected] work:[email protected]|org-uuid" LABEL_COLORS="gmail:magenta work:cyan" # optional ACCOUNTS_EXCLUDE="" # labels excluded from automatic routing ACCOUNTS_HIDE="" # labels hidden from the statusline board, still routed ACCOUNTS_HIDE_OTHERS=0 # 1: this session's account is the only local row SHOW_ACCOUNT_RESETS=1 ``` To prevent routed sessions from consuming paid overage after the five-hour window reaches 100%, opt in locally: ```bash ACCOUNTS_HARD_SESSION_LIMIT=1 ``` Labels must match the email address shown by Claude. Same email in two organizations requires `|org-uuid` suffixes. 2. **Install the supervised launcher:** ```bash cd "$REPO" ./install-account-router.sh export PATH="$HOME/.accounts/bin:$PATH" ``` The installer keeps the native Claude binary at `~/.local/bin/claude`, links the router tools under `~/.local/bin`, and places the supervised `claude` launcher first on `PATH`. 3. **Seed each account into the store.** Run the native binary directly, `/login` as the account, exit Claude, then run: ```bash ~/.local/bin/claude accounts status ``` Repeat for each account. `accounts status` captures Claude's default-profile login into `~/.accounts/blobs.json`; routed launches subsequently keep refreshed credentials synchronized from their native profiles. 4. **Pick a mode:** ```bash accounts auto # route supervised sessions by general quota headroom accounts fable # switch live supervised sessions by Fable, weekly, and 5h headroom accounts set <label> # force every supervised session to this account ``` Mode changes are detected by running supervisors. Handoffs preserve the exact session ID and do not return control to the shell. Source changes to either router module reload the supervisor in place. New launches default to high effort and an invisible Claude session name unless explicitly set. Pin one launch with `ACCOUNTS_PIN=<label> claude`. 5. **Optional headless-job tokens:** ```bash accounts mint <label> accounts tokens accounts sync ``` ## Verify ```bash accounts poll accounts ls accounts status ACCOUNTS_PIN=<label> accounts pick-env ``` `pick-env` should emit `CLAUDE_CONFIG_DIR=~/.accounts/profiles/<label>` and no `CLAUDE_CODE_OAUTH_TOKEN` export. ## When routing misbehaves 1. `accounts status` shows the mode and next selected account. 2. `accounts auto` releases a persistent pin. 3. `accounts poll` refreshes the headroom board; `accounts refresh <label>` refreshes an expired access token. 4. `accounts status` reports a forced `set` target even when its cached quota is exhausted; the runtime follows the same rule.README.mdupstream ↗
Contents are not inlined in the catalog. Open the upstream file.
Plain-text copy, no login: /skill-bundles/andrewtkent-statusline-claude-skills-setup-account-routing.md