WattStack dev scripts

Shared zsh scripts for the team. Install once; they keep themselves up to date.

Install

curl -fsSL https://ws-dev-scripts.pages.dev/install.sh | sh

Then, in order:

  1. exec zsh — restart your shell so the loader takes effect.
  2. gcloud auth login — once, so the scripts can read Secret Manager.
  3. claude-accounts-refresh — caches your tokens for 30 days, so you will not need gcloud again for a month.

That's it. Run claude-accounts to see what you can reach.

Requirements

Commands

CommandWhat it does
cRun Claude Code as whoever you are natively logged in as
c /JACK2Run it as a specific shared account
cx /ROBSame, plus --dangerously-skip-permissions
claude-accountsWhich accounts you can reach, telemetry status, cache age
claude-usageEach account's 5-hour and 7-day allowance, and which has headroom
claude-accounts-refreshRe-cache every token (run after gcloud auth login)
claude-accounts-logoutClear cached tokens from your keychain
ws-scriptsWhere the scripts came from and how fresh they are
ws-scripts-updateFetch the latest now instead of waiting

Where your tokens live

Nowhere in these files. Every token is read from Google Secret Manager on first use and kept in your macOS login keychain, encrypted, for 30 days. Tokens are handed to a single claude process and never written to disk, exported into your wider shell, or entered into shell history.

This site is public so that installing needs no credentials. It contains no secrets — only the code that knows how to ask Secret Manager for them, which is useless without the IAM access. Never put a credential in a script here.

Available scripts

If something goes wrong

SymptomCause
c: command not found The loader didn't run. Check your login shell is zsh, then exec zsh.
“cannot read secret” gcloud isn't logged in, or you lack Secret Manager access. Run gcloud auth login.
“using cached credentials” Harmless. Secret Manager was unreachable so your cached copy was used. Run gcloud auth login && claude-accounts-refresh when convenient.
Account missing from the list Its secret doesn't exist yet, or you can't read it. claude-accounts lists what you can see.
Scripts seem out of date Refresh is background and twice-daily. Force it with ws-scripts-update.

Adding a script

Drop a .zsh file into scripts/ in wattstack/dev-scripts, put a one-line # description on the second line, and merge to main. CI syntax-checks it and republishes here; every laptop picks it up within twelve hours. Nothing else to do.