npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@gelglx/grokauth

v1.1.1

Published

Grok CLI OAuth Device Auth Flow — automate device code flow against Hermes gateway, open browser, poll, register provider

Readme

grokauth

Grok CLI OAuth Device Auth Flow (FULLY AUTOMATED, MULTITHREAD & INTERACTIVE)

Mendaftarkan akun x.ai massal secara parallel menggunakan disposable email @glx.web.id dan langsung mengintegrasikannya ke 9router gateway (grok-cli provider).

Install

npm install -g @gelglx/grokauth

Setup & Config

grokauth config cookie '__stripe_mid=...; auth_token=eyJ...; hermes_session_rt=...'
# Opsional
grokauth config gatewayUrl http://localhost:20128

Usage

1. Interactive Mode (Rekomendasi)

Jalankan tanpa argumen untuk membuka Menu Wizard:

grokauth

Menu Pilihan:

  • Full Auto Batch Account Creator — Wizard interaktif untuk farm banyak akun sekaligus (concurrency, proxy, delay).
  • Single Account Login Flow — Registrasi otomatis satu akun.
  • List Connected Providers — Tampilkan detail provider yang terdaftar di gateway.
  • Edit Configuration — Ubah setting URL gateway / Cookie.

2. Batch Mode (CLI Args)

Registrasi massal langsung lewat command line:

grokauth batch -n 10 -w 2 --delay 2000

Parameter:

  • -n, --count <num>: Jumlah akun yang ingin dibuat (default: 5).
  • -w, --workers <num>: Concurrency / jumlah worker thread parallel (default: 2).
  • -p, --proxy <proxy>: Proxy host:port atau host:port:user:pass.
  • -f, --proxy-file <file>: Load proxy list dari file (satu per baris).
  • --delay <ms>: Delay sebelum worker berikutnya start (default: 2000).

Alur Kerja Worker

  1. Membuat email @glx.web.id.
  2. Mengambil device code dari 9router /api/oauth/grok-cli/device-code.
  3. Menjalankan headless Chromium (Playwright) via proxy (jika diset).
  4. Melakukan registrasi di accounts.x.ai/sign-up.
  5. Polling inbox glx.web.id untuk mengambil OTP SpaceXAI.
  6. Memasukkan OTP, melengkapi profil (Nama depan, Nama belakang, Password).
  7. Membuka URL device auth dan otomatis menekan tombol Allow via requestSubmit.
  8. Polling status registrasi di 9router /api/oauth/grok-cli/poll sampai terdaftar.
  9. Informasi akun disimpan di ~/.grokauth-accounts.json.

Penanganan Cloudflare

Daftar x.ai dilindungi Cloudflare secara ketat. Headless Chromium pada VPS cloud sering terblokir (Challenge/Access Blocked).

Solusi:

  • Gunakan Proxies (-f proxies.txt). Rotating/residential proxy sangat disarankan.
  • Headed Mode: Jalankan di environment yang mendukung GUI / X11 dengan perintah:
    GROKAUTH_HEADED=1 grokauth
  • Manual Flow (Bypass): Gunakan parameter --manual untuk sign-up secara manual lewat browser utama di PC Anda, sementara CLI akan membantu melakukan polling OTP dan auto-poll 9router:
    grokauth batch -n 5 -w 1 --manual

File Output

  • ~/.grokauthrc: Konfigurasi tersimpan (gateway URL / Cookie).
  • ~/.grokauth-state.json: State device code terakhir untuk mode single.
  • ~/.grokauth-accounts.json: Data semua akun hasil registrasi sukses (email, password, connectionId, provider).

License

MIT