chatgpt_register_v2_by_AI  by DestinyCycloid

Automated ChatGPT registration and OAuth token generation

Created 3 weeks ago

New!

322 stars

Top 84.5% on SourcePulse

GitHubView on GitHub
Project Summary

This project provides a modular Python tool for automating ChatGPT account registration and OAuth token generation. It targets developers and power users who need to programmatically create and manage multiple ChatGPT accounts, offering a significant improvement in success rate and speed over manual methods. The primary benefit is a streamlined, automated process for obtaining both registration credentials and essential OAuth tokens.

How It Works

The tool employs a modular architecture, separating concerns into distinct Python libraries. It begins by leveraging a self-hosted Skymail service to create temporary email addresses, dynamically generating prefixes and utilizing configured domain suffixes. The core registration process automates interaction with ChatGPT's sign-up pages, submitting credentials and efficiently polling for verification codes. A key feature is the optimized OAuth 2.0 flow, which handles session bootstrapping, OTP verification, workspace selection, and the exchange of authorization codes for Access and Refresh Tokens. An intelligent retry mechanism is integrated to automatically handle transient issues like TLS errors and missing cookies, ensuring robustness.

Quick Start & Requirements

  • Installation: pip install curl_cffi
  • Primary Run Command: python chatgpt_register_v2.py (options include -n for account count, -w for worker threads, and --no-oauth to disable OAuth).
  • Prerequisites: Python 3.7+, a self-hosted Skymail service with administrator credentials, and optionally, a proxy for accessing OpenAI services.
  • Configuration: Requires copying config.example.json to config.json and populating Skymail admin details, desired domains, proxy settings, and OAuth parameters.
  • Links: No external documentation or demo links are provided in the README.

Highlighted Details

  • Achieves a 100% registration success rate through an optimized OAuth flow and intelligent retry logic.
  • Significantly improves performance, reducing average registration time from 60 seconds to 28.6 seconds (a 52% increase).
  • Supports high concurrency, with successful testing up to 5 threads while maintaining a 100% success rate.
  • Automates the generation of both short-lived Access Tokens and longer-lived Refresh Tokens.
  • Features a fully modular design for enhanced maintainability and extensibility.

Maintenance & Community

No specific details regarding project maintainers, community channels (e.g., Discord, Slack), or roadmap are present in the provided README.

Licensing & Compatibility

The README does not specify a software license, and therefore, compatibility for commercial use or linking with closed-source projects cannot be determined.

Limitations & Caveats

Users must provide and manage their own Skymail email service infrastructure. Proxy configuration is recommended for reliable access to OpenAI services. While high concurrency is supported, exceeding 5 worker threads is discouraged due to potential TLS connection pool exhaustion. Access Tokens have limited validity, necessitating the use of Refresh Tokens for ongoing access.

Health Check
Last Commit

1 week ago

Responsiveness

Inactive

Pull Requests (30d)
1
Issues (30d)
7
Star History
326 stars in the last 21 days

Explore Similar Projects

Feedback? Help us improve.