Skip to content
Back to skills

Skill

ASecurity

What Fleetlayer's Claude account setup means for a Claude Code session: year-long setup tokens sent to every machine by a hub, each account's usage visible across the fleet, and an account rotator that can move sessions between accounts; and the same hub's Codex sign-ins (API keys and access tokens). Use when you're asked to log in or see "signed in to a different account", when claude.ai connectors, Claude in Chrome or artifacts are missing, when the person asks how much Claude usage is left...

  • 37 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 4, 2026
ai-agentsrustgonodeapi

Works with

  • claude code
  • api
  • mcp

Security analysis

A100/100

Scanned December 5, 2026

npx -y skills add fleetlayer/fleetlayer --skill skill --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Skill?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Skill
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/fleetlayer-skill-fleetlayer/badge)](https://www.skillsdirectory.com/skills/fleetlayer-skill-fleetlayer)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: fleetlayer-ai-accounts
description: What Fleetlayer's Claude account setup means for a Claude Code session: year-long setup tokens sent to every machine by a hub, each account's usage visible across the fleet, and an account rotator that can move sessions between accounts; and the same hub's Codex sign-ins (API keys and access tokens). Use when you're asked to log in or see "signed in to a different account", when claude.ai connectors, Claude in Chrome or artifacts are missing, when the person asks how much Claude usage is left on each account, when a Claude credential, account slot or token check fails, or when Codex asks to log in or its sign-in check fails.
---

# Claude and Codex accounts on a Fleetlayer machine

On a machine whose node runs ai-auth, Claude Code's sign-ins aren't made by hand. A hub on one always-on
machine holds each account's sign-in, makes a year-long setup token per account, and sends the tokens, encrypted, to
every machine. The node writes them into Claude Code's account slots and checks each one works. An account rotator,
if installed, moves sessions to another account before one runs out.

## What this means for you

- **Never run `/login` or `claude auth login`, and never edit an account slot** (`~/.claude/.credentials.json` and
  `~/.claude/accounts/<n>` on Linux, the `Claude Code-credentials-…` keychain items on macOS). The node owns them and
  replaces a hand sign-in with the hub's token. If a session asks you to log in, tell your person: the hub fixes it.
- **Setup tokens are inference only.** A session on one runs Claude normally but has no claude.ai connectors, no
  Claude in Chrome, and very likely no artifacts, Remote Control or cloud sessions. Use the replacements instead:
  the shared browser (`fleetlayer-browser` skill) for Chrome, pages (`pages` skill) for artifacts, and whatever MCP
  servers your setup instructions name for connectors. Don't try to reconnect those features.
- **Your account can change mid-task.** The rotator may move you to another account as one fills. Your work carries
  on; anything tied to one account (a connector, a claude.ai feature) doesn't follow you.
- **Sessions start on the account with the most room.** `fleetlayer session start` and `resume` (and every other
  start through Fleetlayer) put the new session on the account with the least of its week used, by the newest
  `claude.usage` readings, so never start a Claude session by hand with `CLAUDE_SECURESTORAGE_CONFIG_DIR` to dodge a
  spent account: start it through Fleetlayer. A session that stops on Claude Code's usage-limit menu ("You've hit your
  weekly limit", Stop / Wait / Add funds) is closed and resumed on an account with room by its node, and told to carry
  on; don't answer the menu, and never pick "Add funds" (it spends money). If every account is spent, the menu stays:
  tell your person when the first one resets (`fleetlayer readings claude.usage`).

## Usage and token health

```sh
fleetlayer readings claude.usage claude.token_health
```

One line per account and node: its kind, account ID, node, time and data.

- `claude.usage`: `fiveHour` and `sevenDay` percentages with their reset times; readings from the hub's polls add
  each model's own week (`models`). Figures from sessions come as they work; the hub's per-model figures go stale
  while it sleeps, so check `at`.
- `claude.sessions`: the Claude session IDs on each account on that node now.
- `claude.overflow` (key `fleet`): which account is the overflow account and whether it's in use (`released`: every
  other account is spent). Choosing it spends money, so it's only ever the person's choice, on the hub's page: never
  set or change it yourself.
- `claude.tokens`: running totals of the tokens this machine's sessions used per account and model since `since`.
  Rates, costs and when the accounts run out are worked out by the control plane (the dashboard's Usage page); to
  hear when they'll all run dry, subscribe to the `usage` channel (`usage.forecast`, then `usage.ok`).
- `claude.token_health`: `{"ok": true, "email": …, "claudeVersion": …}` means that node's token check passed;
  `"ok": false` with an `error` means the token in that slot doesn't work. Tell your person which account and node:
  they fix it on the hub's page. When a node's checks stop and `fleetlayer status` there shows the auth manager's
  problem `claude not found at <path>` (or `won't run`), the tokens are fine: that machine's Claude Code install is
  broken (often `~/.local/bin/claude` linking to a version that's gone), so tell your person that, not to fix the
  accounts.

Add `--json` for the whole readings.

## Codex sign-ins

The same hub can sign Codex in on machines whose node has `codex: true` (an OpenAI API key or a Codex access token;
a ChatGPT Plus or Pro sign-in can't be shared, so those machines are signed in by hand).

- **On such a machine, never run `codex login` or `codex logout`, and never edit `~/.codex/auth.json`**: the node
  owns that sign-in. If Codex says it isn't signed in, tell your person: they fix it on the hub's page. After a
  change, Codex's daemon restarts once no thread is working; an open Codex reconnects by itself.
- `fleetlayer readings codex.account codex.token_health`: per machine, whether it opted in, the hub's account number
  it's signed in with (`managed`), Codex's own `status`, and whether a check with it passed (`ok`, `error`).

## Running one command as a given account

Only when your person asks (a script or test that must use a particular account): set
`CLAUDE_SECURESTORAGE_CONFIG_DIR` to that account's slot, `CLAUDE_CONFIG_DIR` to a scratch folder, and unset
`ANTHROPIC_API_KEY`, `ANTHROPIC_AUTH_TOKEN`, `CLAUDE_CODE_OAUTH_TOKEN`, `ANTHROPIC_BASE_URL`,
`CLAUDE_CODE_USE_BEDROCK`, `CLAUDE_CODE_USE_VERTEX` and `CLAUDE_CODE_USE_FOUNDRY`, which would override it. Never
print, copy or move a token.

## A tokens bundle refused for its key

A node takes the hub's bundles only from the key its plugin config names (`key:`). A refusal that names a key this
machine "hasn't been told to trust", or a source that "trusts it by its node so far", is for your person: never set
`key:` from the key a refusal names (it may be a forged bundle's). Ask them to read the key on the hub's own machine
(`fleetlayer secrets keys <the hub's folder>/signing-key`) and set that one.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.