gitwtfhub

wtf is gptgrok2api?

auucoder/gptgrok2api — explained in plain English

Analysis updated 2026-05-18

72PythonAudience · developerComplexity · 4/5Setup · hard

TL;DR

A self hosted gateway that turns GPT and Grok subscription accounts into an OpenAI-compatible API, bundled with tools that mass-create accounts using disposable emails, captcha bypass, and rotating proxies.

Mindmap

mindmap
  root((gptGrok2api))
    What it does
      OpenAI compatible API gateway
      Automated account registration
      Captcha and proxy evasion
    Tech stack
      Python
      Docker Compose
      SQLite or PostgreSQL
    Use cases
      Self host GPT or Grok API
      Mass create accounts
      Route traffic through proxies
    Audience
      Operators running gray area services

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

Why would anyone build with this?

REASON 1

Expose existing GPT or Grok accounts through an OpenAI-compatible API endpoint.

REASON 2

Manage a pool of accounts with quota tracking and automatic re-login on failure.

REASON 3

Automatically register new accounts using disposable iCloud or temporary email addresses.

REASON 4

Route signups and API traffic through rotating proxies and Cloudflare WARP.

What's in the stack?

PythonDocker ComposeSQLitePostgreSQLNginx

How it stacks up

auucoder/gptgrok2apiderekh-233/amdljuneyaooo/nihaixia
Stars727272
LanguagePythonPythonPython
Setup difficultyhardmoderateeasy
Complexity4/53/52/5
Audiencedevelopergeneralgeneral

Figures from each repo's GitHub metadata at analysis time.

How do you spin it up?

Difficulty · hard Time to first run · 1h+

Requires Docker Compose, an auth key config file, and for full features a headless browser captcha solver plus proxy or WARP setup, automates account creation methods that likely violate provider terms of service.

No license information is stated in the README.

Wtf does this do

GPTGrok2API is a self hosted gateway that takes subscription based ChatGPT and Grok accounts and exposes their capabilities through an API that looks like OpenAI's or Anthropic's official API. It also includes tooling to automatically create and manage large numbers of GPT and Grok accounts, not just to use existing ones. The core service combines both providers behind one address, automatically choosing GPT or Grok based on the model name in a request, while still exposing a full separate set of Grok only endpoints. It supports chat style conversations, streaming responses, image generation and editing, and compatibility layers for OpenAI's Chat Completions and Responses formats as well as Anthropic's Messages format. Beyond acting as an API layer, it manages a pool of accounts: importing them, grouping and tagging them, tracking usage quotas, detecting accounts that stop working, and automatically retrying login for accounts that go invalid. A large part of the project is automated account registration. It can generate disposable email addresses through Apple's iCloud Hide My Email feature, temporary mail services, and other providers, then use those addresses to sign up new GPT or Grok accounts on a schedule, handling email verification and two factor login steps automatically. A bundled captcha solving component runs a real, headless browser to get past the Turnstile challenge Grok's signup uses, and the project supports routing traffic through rotating proxies and Cloudflare WARP to keep those signups and API calls from being blocked. Everything is designed to run through Docker Compose, with example configurations for a plain local deployment and a more advanced one that adds a stable outbound proxy chain and an internal network for other services to plug into. Configuration lives in an env file and a small JSON file holding the authentication key clients use to call the gateway. Setup documentation covers macOS and Ubuntu from scratch, including systemd services and Nginx as a reverse proxy in front of the whole system. Because this project exists specifically to automate mass account creation and to bypass provider signup protections such as captchas and IP based rate limiting, using it is very likely to violate the terms of service of OpenAI and xAI, and accounts or API keys obtained this way can be suspended or banned without warning.

Yoink these prompts

Prompt 1
Explain what risks come with running a self hosted gateway that resells access to GPT or Grok subscription accounts.
Prompt 2
Walk me through the Docker Compose setup for the standard local deployment of this gateway.
Prompt 3
How does this project use iCloud Hide My Email to automate account registration?
Prompt 4
Summarize why automated captcha solving and proxy rotation for account creation typically violates a service's terms of use.

Frequently asked questions

wtf is gptgrok2api?

A self hosted gateway that turns GPT and Grok subscription accounts into an OpenAI-compatible API, bundled with tools that mass-create accounts using disposable emails, captcha bypass, and rotating proxies.

What language is gptgrok2api written in?

Mainly Python. The stack also includes Python, Docker Compose, SQLite.

What license does gptgrok2api use?

No license information is stated in the README.

How hard is gptgrok2api to set up?

Setup difficulty is rated hard, with roughly 1h+ to a first successful run.

Who is gptgrok2api for?

Mainly developer.

View the repo → Decode another repo

This repo across BitVibe Labs

Don't trust strangers blindly. Verify against the repo.