add_account_token
Attach one of YOUR OWN Google accounts to the pool using an oauth_token captured on the USER'S OWN machine (password/2FA never leave it). This is the self-serve onboarding path — no server-side browser, no SSH.
HOW TO GET oauth_token: the agent must first run the local grabber on the user's
machine (it opens a native Chrome at accounts.google.com/EmbeddedSetup; the user
logs in and clicks "Принимаю"/Accept):
npx --yes github:... local_grab (or: node browser-tools/local_grab.js 9222)
It prints {"email", "oauth_token"}. Pass those here. The oauth_token is SINGLE-USE:
if this call fails, the user must re-login and grab a FRESH token — never retry the
same one.
On success the account is bound to YOUR key's owner group and the worker picks it up
within ~30s (no restart). Adding an account is always allowed — even for a key that
has already spent its free quota, since that is a prerequisite, not a reward.
Only onboard accounts YOU control — a master token grants full account access.Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| Yes | |||
| reset_day | No | ||
| oauth_token | Yes |