RepositoryPython
Vanszs

Vanszs/qwencloud-generator

Automated QwenCloud account registration & API key harvester with multi-threading, TUI dashboard, proxy rotation, and Gmail OAuth

294stars
75forks
0issues
3views

Featured achievements

The project's latest awards

1
TINIX TRENDING·Topic: api-key

#1 Repository of the month

1
TINIX TRENDING·Topic: account-generator

#1 Repository of the month

1
TINIX TRENDING·Topic: selenium-alternative

#1 Repository of the month

QwenCloud Generator

QwenCloud Generator

🚀 Automated QwenCloud account registration & API key harvester with multi-threading, TUI dashboard, proxy rotation, and Gmail OAuth

Features • Prerequisites • Setup • Usage • How It Works


Features

  • ⚡ Multi-threaded — Run N browsers concurrently (-t N)
  • 🖥️ TUI Dashboard — Real-time worker status, progress bar, ETA, CPU/Mem
  • 👻 Invisible mode — Headed browser on Xvfb virtual display (CF-safe)
  • 🔄 Proxy rotation — Each account gets a unique proxy, no reuse
  • 📧 Gmail OAuth — Multi-account Gmail token management for email verification
  • 🎭 Censor mode — Mask emails and API keys in output (-c)
  • 🔄 Auto-resume — Login existing accounts to harvest missed API keys
  • 📊 Scenario detection — Auto-detects all page states (signup, login, OTP, dashboard, etc.)

Prerequisites

RequirementInstall
Python 3.11+python.org
Google Chromegoogle.com/chrome
Xvfbsudo apt install xvfb
Playwrightpip install -r requirements.txt && playwright install chromium

Setup

1. Clone & install

git clone https://github.com/Vanszs/qwencloud-generator.git
cd qwencloud-generator
pip install -r requirements.txt
playwright install chromium

2. Add proxies

Edit proxy.txt — one proxy per line:

username:password@host:port

3. Generate email list

python3 generate_email_list.py yourgmailuser -o email_list.txt

4. Set up Gmail OAuth

The script needs Gmail API access to read verification emails. Here's how to set it up:

4a. Create Google Cloud credentials

  1. Go to Google Cloud Console
  2. Create a new project (any name)
  3. Go to APIs & Services → Library → search "Gmail API" → Enable
  4. Go to APIs & Services → Credentials → Create Credentials → OAuth client ID
  5. Application type: Desktop app → Create
  6. Download the JSON file (client_secret_*.json)
  7. Rename it to client_secret.json and place it in this folder

4b. Authorize your Gmail account(s)

For each base Gmail account you want to use, you need to get an OAuth refresh token:

python3 gmail_auth.py

If you see accounts: [] — that's normal! You haven't authorized any account yet.

To authorize, generate an OAuth URL for your Gmail:

python3 -c "
from gmail_auth import _default_client
import urllib.parse

client = _default_client()
url = f'https://accounts.google.com/o/oauth2/auth?client_id={client["client_id"]}&redirect_uri=http%3A//localhost%3A8085/callback&scope=https%3A//www.googleapis.com/auth/gmail.readonly&response_type=code&access_type=offline&prompt=consent&login_hint=yourname%40gmail.com'
print(url)
"

Replace yourname@gmail.com with your actual Gmail address.

  1. Open the printed URL in your browser
  2. Login with that Gmail account
  3. Click Allow on the consent screen
  4. You'll be redirected to http://localhost:8085/callback?code=4/0Abc...
  5. Copy the full URL from the address bar
  6. Exchange the code:
python3 -c "
from gmail_auth import exchange_code
exchange_code('yourname@gmail.com', '4/0Abc...')
print('Token saved!')
"

Replace yourname@gmail.com with the same Gmail, and 4/0Abc... with the code from the URL.

Verify it worked:

python3 gmail_auth.py
# Should show: accounts: ['yourname@gmail.com']

Repeat for each Gmail account you want to use.

Usage

Register new accounts

# Single thread, browser visible
python3 run.py 10

# 5 threads, invisible (Xvfb)
python3 run.py 100 --headless -t 5

# 10 threads with censored output
python3 run.py 400 --headless -t 10 -c

Resume existing accounts

python3 run.py 50 --headless -t 5 --resume

Flags

FlagDescriptionDefault
NTarget number of successful API keys5
--headlessRun via Xvfb (invisible browser)off
--resumeResume already-registered accounts via loginoff
-t NNumber of concurrent threads1
-cCensor emails/API keys in outputoff
--logShow full subprocess logsoff
--selfRun without proxy (use own IP)off
--nyx PROXYUse rotating proxy—

How It Works

┌─────────────┐    ┌──────────────┐    ┌─────────────────┐
│  Email List  │───▶│  run.py      │───▶│ qwencloud_full.py│
│  (Gmail)     │    │  (Orchestrator)│    │  (Browser Auto)  │
└─────────────┘    │  -t N threads │    │  - Signup/Login   │
                   │  TUI Dashboard │    │  - OTP verify     │
┌─────────────┐    │  Proxy claim  │    │  - API key extract│
│  proxy.txt   │───▶│  Email claim  │    └─────────────────┘
└─────────────┘    └──────────────┘             │
                         │                      ▼
                   ┌──────────────┐      ┌─────────────┐
                   │  api_keys.txt│◀─────│ accounts.json│
                   └──────────────┘      └─────────────┘
  1. Each thread claims a unique email + proxy (thread-safe)
  2. Spawns qwencloud_full.py as subprocess (Playwright is not thread-safe)
  3. Monitors subprocess output for progress updates → TUI
  4. Parses __RESULT__ JSON from stdout
  5. Saves API keys to api_keys.txt and account data to accounts.json

Files

FilePurpose
run.pyMain orchestrator — threading, TUI, proxy/email claiming
qwencloud_full.pyBrowser automation — signup, login, API key extraction
gmail_auth.pyGmail OAuth multi-account token management
generate_email_list.pyGenerate Gmail dot-variants
logger.pyColored logging utilities
tui.pyTerminal UI dashboard (ANSI escape codes, no dependencies)
run_hidden.shXvfb wrapper script

Notes

  • Each browser instance gets 1 unique proxy — no reuse
  • Gmail dot-variants work as separate QwenCloud accounts
  • Stuck processes are killed after 30s of no output
  • Total timeout per account: 300s
  • Cloudflare requires headed browser (use --headless which runs Xvfb, not true headless)

License

MIT — feel free to use, modify, and distribute.


⭐ Star if useful

Similar Projects

Discover other similar projects and AI models.

RepositoryPython
langgenius/dify

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

162.3k
Dec 2, 2026
RepositoryPython
browser-use/browser-use

Browser Use: open source browser agent infrastructure

122.6k
Dec 2, 2026
RepositoryPython
harry0703/MoneyPrinterTurbo

利用 AI 大模型和自动化工作流,根据主题或关键词一键生成高清短视频。Generate HD short videos from a topic or keyword with an automated AI workflow.

147.3k
Dec 1, 2026
RepositoryTypeScript
morluto/rea

Reverse engineer anything with agents, from app behavior down to native binaries.

487.0k
Dec 2, 2026
RepositoryPython
yt-dlp/yt-dlp

A feature-rich command-line audio/video downloader

212.4k
Dec 2, 2026
RepositoryPython
521xueweihan/HelloGitHub

:octocat: 分享 GitHub 上有趣、入门级的开源项目。Share interesting, entry-level open source projects on GitHub.

192.6k
Nov 27, 2026
RepositoryPython
Significant-Gravitas/AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.

188.2k
Nov 29, 2026
RepositoryTypeScript
n8n-io/n8n

Fair-code workflow automation platform with native AI capabilities. Combine visual building with custom code, self-host or cloud, 400+ integrations.

212.9k
Dec 2, 2026
RepositoryC++
tensorflow/tensorflow

An Open Source Machine Learning Framework for Everyone

201.9k
Dec 1, 2026