xinxinshuhao-create/grok-register
Automated account registration toolkit for x.ai (Grok) with SSO extraction, OAuth Device Flow, and auto-replenish daemon
What it solves
This project provides an automated system for creating and managing accounts for x.ai (Grok). It bypasses manual registration hurdles by automating CAPTCHA solving, email verification, and token management, allowing users to maintain a pool of accounts to access Grok's various models via API gateways.
How it works
The toolkit uses a combination of specialized scripts to handle the account lifecycle:
- Registration: A
curl_cffi-based engine automates the sign-up process, integrating with YesCaptcha to solve Turnstile CAPTCHAs and various email providers (like LuckMail or Gmail) to receive verification codes. - Token Minting: It converts SSO tokens into OAuth access and refresh tokens using the OAuth 2.0 Device Flow, which is necessary for accessing specific "Build pool" models.
- Maintenance: Dedicated daemons monitor the account pool and automatically register new accounts when numbers drop, while another daemon keeps existing tokens alive through periodic refreshing.
- Proxy Management: A Clash proxy rotator is used to avoid IP-based blocking during bulk registration.
Who it’s for
Developers and researchers who need a steady supply of Grok accounts to access its LLM capabilities (such as grok-4.5 and grok-4.6) without manual account creation or subscription management.
Highlights
- Automated Account Lifecycle: Handles everything from registration and CAPTCHA solving to token refreshing and auto-replenishment.
- Multi-Provider Email Support: Integrates with several email services, including high-trust options like Outlook and Gmail.
- OAuth Device Flow: Correctly implements the scope required to mint access tokens for advanced Grok models.
- API Gateway Integration: Designed to work seamlessly with
grok2apito push registered accounts into a usable API pool.
Related
- Dispatch
- Project
- Dispatch
- Project
- Dispatch