Analysis updated 2026-05-18
Expose existing GPT or Grok accounts through an OpenAI-compatible API endpoint.
Manage a pool of accounts with quota tracking and automatic re-login on failure.
Automatically register new accounts using disposable iCloud or temporary email addresses.
Route signups and API traffic through rotating proxies and Cloudflare WARP.
| auucoder/gptgrok2api | derekh-233/amdl | juneyaooo/nihaixia | |
|---|---|---|---|
| Stars | 72 | 72 | 72 |
| Language | Python | Python | Python |
| Setup difficulty | hard | moderate | easy |
| Complexity | 4/5 | 3/5 | 2/5 |
| Audience | developer | general | general |
Figures from each repo's GitHub metadata at analysis time.
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.
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.
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.
Mainly Python. The stack also includes Python, Docker Compose, SQLite.
No license information is stated in the README.
Setup difficulty is rated hard, with roughly 1h+ to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.