BokuLabs/AutocreateGrok ? reverse-engineered prompt

Reverse engineered prompt

Build me a Python tool that can automatically create x.ai Grok accounts using temporary email, go through the signup flow in a browser, handle the verification step, and then capture the OAuth tokens. I want it to save each successful account in a simple text file with the email, password, access token, refresh token, and expiration time.

It should also have a way to refresh saved tokens later from that file, and another option to take those saved accounts and inject them into my local 9Router setup so Grok CLI can use them. If the 9Router database already has the same email, just skip it and keep going.

Please make it run from a simple menu in the terminal, and include a standalone injector script too. If you need to check current docs for the browser automation or 9Router details, look them up online and use whatever works best.

Are you gonna build this?

make sure you review the code using coderabbit

Try freeSponsored — opens CodeRabbit in a new tab