[Open Source] Grok (x.ai) Automated Registration + SSO to Token + Auto Restock All-in-One Tool


[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
Email 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 generation
  • grok-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.


39 Likes

Awesome, boss! Thumbs up.

This looks great. I’ll try it out another day. Awesome!

1 Like

Bump

1 Like

Take a look

Curious how this trophy was obtained.

@James Did you give this?

You can check the activity log here.

Thank you so much for sharing!

1 Like

Thank you

I want it too…

Can CPA be used or not?

2 Likes

Awesome, the big boss and the guild leader both showed up to be the first to comment!

1 Like

Awesome, man, and it’s even approved by LeBron :xhj003:

1 Like

Thanks to the tech guru.

1 Like

Saved it—I’ll tinker with it when I have some free time.

Saved it for now—I’ll mess around with it when I have time another day.

2 Likes

This auto-restocking daemon is awesome! I used to have a hard time manually checking accounts, but now a scheduled run takes care of everything—no more worrying about Basic accounts getting limited. The token refresh function is pretty solid too. With fixes for OAuth scopes and proxy rotation, the Cloudflare (CF) interception issue seems to be much improved. I tried out this version, and overall it feels way more robust than previous projects. Just go for it!

:xhj003:

1 Like