reauth

reauth is a command for Claude Code from stevegustafson32/google-multi-account. It costs 16 tokens per session (798 once invoked), scanned A, original, MIT.

A command for asking Google accounts to approve the current permissions again after access requirements change or a login token expires.

In plain words
What is it for?
Use it to re-authorize configured accounts when Drive access is missing, a tool requests reauthorization, or the configured Drive permission level changed.
Why use it?
It fixes permission errors caused by an old or revoked Google authorization while leaving Gmail and Calendar access working.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the google-multi-account plugin — 1 skill, 3 commands, 1 MCP server shipped together

Good fit Use it to re-authorize configured accounts when Drive access is missing, a…

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/stevegustafson32/google-multi-account/reauth
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Clone the repo
git clone --depth 1 https://github.com/stevegustafson32/google-multi-account

Made for: Claude Code.

Or install google-multi-account, the plugin that ships this one along with the rest of its 1 skill, 3 commands, 1 MCP server.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for reauth

README.md
[![agentmods](https://agentmods.dev/badge/commands/stevegustafson32/google-multi-account/reauth.svg)](https://agentmods.dev/commands/stevegustafson32/google-multi-account/reauth)
Your own site
<a href="https://agentmods.dev/commands/stevegustafson32/google-multi-account/reauth"><img src="https://agentmods.dev/badge/commands/stevegustafson32/google-multi-account/reauth.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 798 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00016 $0.00798
Opus 5 $0.00008 $0.00399
Sonnet 5 $0.00003 $0.00160
Haiku 4.5 $0.00002 $0.00080

Measured 6d ago against content hash 70f993d14ebc, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

reauth scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 6d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/reauth.md · 82 lines

How it starts

The opening of the file, as written. The whole thing — 82 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Google Multi-Account MCP — Re-authorize

Re-consent every configured Google account against the current scope list. Use this when:

  • Drive tools fail with Insufficient Permission — the account's token was minted before Drive was added, and Google binds scopes to the refresh token at consent time.
  • Any tool returns a reauth_command hint — the refresh token was revoked or expired.
  • driveScope changed in ~/.google-multi-mcp/config.json (fullfile).
  • The server logs Drive scope not yet consented for: … at startup.

Gmail and Calendar keep working the whole time. Only the newly-added scope is missing.

Step 1: Confirm what needs it

node -e "const c=require(require('os').homedir()+'/.google-multi-mcp/config.json');for(const a of c.accounts){console.log(a.label,a.email,'scopeVersion:',a.scopeVersion??'(pre-Drive)')}"

Any account showing (pre-Drive) or a scopeVersion below 2 needs re-consent.

Step 2: Run it

macOS / Linux

cd ~/.google-multi-mcp/server && npm run setup -- --reauth

Windows (PowerShell)

cd $env:USERPROFILE\.google-multi-mcp\server ; npm run setup -- --reauth

If npm isn't found, the user is on a version manager Claude didn't inherit:

source ~/.nvm/nvm.sh && cd ~/.google-multi-mcp/server && npm run setup -- --reauth

This walks every configured account through Google's consent screen, one after another. It does not ask any questions — it reuses the labels and emails already in the config.

Step 3: Warn the user about the two screens they'll see

This is the step people get stuck on. Tell them BEFORE the browser opens.

Screen 1 — "Google hasn't verified this app." Red warning triangle, and a Back to safety button that does not complete setup.

This is expected. The plugin uses an OAuth client that hasn't been through Google's formal verification review — the same screen appears for any self-published app requesting Gmail or Drive access. Nothing is wrong.

Click Advanced (bottom left), then Go to google-multi-account (unsafe).

Read the full file on GitHub · 82 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 6d ago First seen · 82 lines · 16 tokens per session scan A 70f993d14ebc

Subscribe to this mod's changes

reauth is a command published in the GitHub repository stevegustafson32/google-multi-account (2 stars, last pushed 1mo ago), licensed MIT. It adds 16 tokens to every session and 798 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.