[Open Source] Grok(x.ai) Automated Registration + SSO-to-Token + Auto Replenishment All-in-One Tool
A modified Grok registration tool for personal use. Based on the AaronL725 and kaibush projects, it fixes issues like scope errors, Cloudflare interception, invalid Action ID, etc. Added automatic replenishment daemon and organized for open source release.
Project repository:
Feature List
| Module | Description |
|---|---|
| Account Registration | curl_cffi protocol driver, YesCaptcha for Turnstile solving |
| SSO → Token | OAuth Device Flow, fixed scope (all 7 required) |
| Auto Replenishment | Daemon periodically checks and automatically registers to replenish as needed |
| Token Refresh | Regularly refreshes to keep accounts active |
| Captcha Solving | Local Patchright + Chrome HTTP service |
| GPTMail (free) / LuckMail (paid) / MailNest (paid) | |
| Proxy | Clash config for automatic IP rotation |
Supported Models
Designed to be used with grok2api. A free Basic account is enough to use the following 3 models (all tested):
grok-chat-fast— Chat (fast mode)grok-imagine-image— Image generationgrok-4.5— Chat + reasoning + search, 1 million output tokens (requires Device Flow token)
All 3 of these models have been tested end to end.
Paid models (SuperGrok/Heavy subscription required): grok-chat-auto/expert/heavy, grok-imagine-image-quality/edit, grok-imagine-video. Other Build models: grok-4.3, grok-4.20 series, grok-build-0.1.
Usage
git clone https://github.com/xinxinshuhao-create/grok-register.git
cd grok-register
uv sync
cp .env.example .env # Fill in YESCAPTCHA_KEY and email config
mkdir -p keys
uv run python grok.py
Auto-replenishment: uv run python auto_replenish.py --daemon 600 --min 2
SSO to Token: uv run python sso_to_cpa.py --all
Dependencies
- YesCaptcha — Captcha recognition service, required for registration, search and register yourself
- grok2api — API gateway, search chenyme/grok2api on GitHub
MIT License. Improved from AaronL725/grok-register and kaibush/grok-register.
