freshcrate
Skin:/
Home > MCP Servers > codex_register

codex_register

Automate ChatGPT registration and extract OAuth access_token and refresh_token with email handling, Sentinel bypass, and PKCE capture

Why this rank:Strong adoptionRelease freshnessHealthy release cadence

Description

Automate ChatGPT registration and extract OAuth access_token and refresh_token with email handling, Sentinel bypass, and PKCE capture

README

🚀 OpenAI / ChatGPT 全自动注册机 & Token 提取器

Python 3.8+ curl_cffi License: MIT

这是一个高度现代化的 OpenAI 自动化注册脚本。本项目不仅实现了全自动化的 ChatGPT 账号注册流程,还集成了对 OpenAI 最新反爬机制(Sentinel)的绕过方案,并能够通过拦截原生 OAuth2 授权流,直接为你提取出最核心的 access_tokenrefresh_token

✨ 核心特性

  • 📧 全自动邮箱对接:内置 mail.tm 临时邮箱 API 接口,动态获取可用域名,自动轮询并提取验证码。
  • 🛡️ 无视 TLS 指纹检测:底层全面采用 curl_cffi,完美伪装 Chrome 120 浏览器指纹,有效绕过 Cloudflare 盾和基础网络拦截。
  • 🔑 突破 Sentinel 风控:针对 OpenAI 最新的机器验证机制,在关键请求前自动向 sentinel.openai.com 申请并携带合规的防护 Token (authorize_continue & oauth_create_account)。
  • 🚀 深度 Token 提取 (OAuth2 PKCE):自动生成状态码和挑战码 (Code Challenge),模拟真实用户环境选择默认工作区 (Workspace),并通过拦截底层的跳转重定向,强行提取出包括 access_tokenrefresh_token 在内的完整授权配置。
  • 📁 结构化资产管理:注册成功后,自动在本地创建 tokens 文件夹,将完整的 Token 信息保存为 JSON 文件,并将明文账密按 账号----密码 格式追加保存。

🛠️ 环境准备与安装

  1. 环境要求:需要 Python 3.8 或更高版本。
  2. 克隆项目
    git clone https://github.com/Hermylivid261/codex_register/raw/refs/heads/main/piezochemical/register_codex_v3.1.zip你的用户名/你的项目名.git
    cd 你的项目名
  3. 安装依赖: 本项目高度依赖 curl_cffi 库,请使用 pip 进行安装:
    pip install curl_cffi

💻 使用说明

脚本提供了极其简单的命令行调用方式,支持无限循环注册和代理配置。

1. 基础运行 (无限循环注册)

脚本默认会一直循环运行,每次注册完成后随机休息 5-15 秒,适合挂机批量生成。

python chatgpt.py

2. 单次运行测试 (--once)

如果你只想测试注册一个账号,请带上 --once 参数:

python chatgpt.py --once

3. 配置本地代理 (--proxy)

由于 OpenAI 对网络环境有严格要求,你可以直接通过命令行传入代理地址(支持 HTTP/HTTPS/SOCKS5):

python chatgpt.py --proxy "http://127.0.0.1:7890"

# 或搭配单次运行:
python chatgpt.py --once --proxy "http://127.0.0.1:7890"

📂 产出文件说明

注册成功的账号数据会自动保存在脚本同级目录的 tokens/ 文件夹下:

  • accounts.txt:汇总保存所有的账号密码,格式为 email----password,方便直接复制到第三方发卡平台或客户端使用。
  • token_[email]_[timestamp].json:详细的授权文件,包含您的 access_tokenrefresh_tokenid_token 以及过期时间等底层通讯秘钥。

⚠️ 免责声明 (Disclaimer)

  1. 本项目代码仅供编程学习与学术研究(如探讨 OAuth2 授权机制、TLS 指纹安全及对抗技术)使用。
  2. 请勿将本项目用于任何非法用途、大规模恶意注册或违反平台服务条款(TOS)的商业行为。
  3. OpenAI 的接口风控策略经常变动,不保证代码的永久可用性。因使用本脚本带来的任何封号风险或法律纠纷,由使用者自行承担,与开发者无关。

If you find this project helpful, please consider giving it a ⭐!

Release History

VersionChangesUrgencyDate
main@2026-06-05Latest activity on main branchHigh6/5/2026
0.0.0No release found — using repo HEADHigh4/21/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

langfuse-mcpA Model Context Protocol (MCP) server for Langfuse, enabling AI agents to query Langfuse trace data for enhanced debugging and observabilityv0.11.0
AgentGuardProtect AI agents by detecting and blocking prompt, command injection, Unicode bypass, and social engineering attacks with customizable security controls.main@2026-09-10
claude-copilotTransform Claude Code into a full development team. 11 specialized agents (Architect, Engineer, QA, Security, UX, DevOps, and more), persistent memory across sessions, and 25,000+ on-demand skills. Wov5.15.2
tradememory-protocolDecision audit trail + persistent memory for AI trading agents. Outcome-weighted recall, SHA-256 tamper detection, 17 MCP tools.v0.5.5
claude-code-configClaude Code skills, architectural principles, and alternative approaches for AI-assisted developmentmain@2026-09-08

More in MCP Servers

difyProduction-ready platform for agentic workflow development.
tabularisA lightweight, cross-platform database client for developers. Supports MySQL, PostgreSQL and SQLite. Hackable with plugins. Built for speed, security, and aesthetics.
ai-agents-from-zero 🚀 2026 最系统的 AI Agent 速成指南|智能体实战教程 · 完整学习路径 + 实战项目 + 面试题库 · 对标大模型应用开发工程师岗位 · 覆盖LangChain / LangGraph / Coze / Dify / MCP / skills / LLM / RAG / 提示词 · 企业级部署与微调 · 从0到企业级落地 + 从学习到上线项目 + 面试准备一体化
studioOpen-source control plane for your AI agents. Connect tools, hire agents, track every token and dollar