SkillsLLM
CategoriesBlogAI NewsAbout
HomeCLI Toolscodex_auto_register

codex_auto_register

by Ttungx

Pending

Codex注册机

112stars
34forks
HTML
Added 3/17/2026
View on GitHubDownload ZIP
CLI Toolschatgptcodexcodex-clicodex-free
Installation
# Add to your Claude Code skills
git clone https://github.com/Ttungx/codex_auto_register
README.md

codex_auto_register

基于 DuckMail 的 ChatGPT / Codex 自动注册与 OAuth Token 生成工具集。

致谢

本项目基于原项目 https://github.com/adminlove520/chatgpt_register 改造而来。

当前仓库的主要差异:

  • 将注册codex邮箱服务从原先方案替换为 DuckMail API
  • 保留并扩展 Codex 协议 OAuth 流程
  • 输出 CLIProxyAPI v6 可识别的 Codex auth files

包含内容

  • chatgpt_register.py:根目录下的 DuckMail 注册脚本
  • codex/protocol_keygen.py:纯 HTTP 的 Codex OAuth 注册与 token 生成脚本
  • duckmaildoc.md:DuckMail API 参考文档(https://raw.githubusercontent.com/MoonWeSif/DuckMail/main/public/llm-api-docs.txt)
  • management.html(自动更新)

环境依赖

根目录脚本:

pip install curl_cffi

Codex 脚本:

pip install requests urllib3

配置方式

仓库只提交示例配置,不提交真实配置。

使用前复制:

copy config.example.json config.json
copy codex\config.example.json codex\config.json

然后把你自己的 DuckMail、代理和 CPA 参数填进去。

根目录脚本

运行:

python chatgpt_register.py

对应示例配置见 config.example.json。

主要配置项:

| 配置项 | 说明 | | ----------------- | ------------------------ | | total_accounts | 注册账号数量 | | duckmail_api_base | DuckMail API 地址 | | duckmail_bearer | DuckMail Bearer Token | | proxy | HTTP/HTTPS 代理 | | output_file | 注册结果输出文件 | | enable_oauth | 是否执行 OAuth | | oauth_required | 是否要求 OAuth 成功 | | upload_api_url | 可选,上传到 CPA 的接口 | | upload_api_token | 可选,CPA 管理接口 Token |

Codex 协议脚本

运行:

python codex\protocol_keygen.py

对应示例配置见 codex/config.example.json。

该脚本会:

  • 使用 DuckMail 创建临时邮箱
  • 完成 ChatGPT 注册流程
  • 执行 Codex OAuth 登录并换取 token
  • 生成 CLIProxyAPI v6 兼容文件名的 token JSON
  • 可选上传到 CPA 管理接口

输出说明

运行过程中通常会生成以下本地文件,这些都已加入 .gitignore,不会进入新仓库:

  • config.json
  • codex/config.json
  • registered_accounts.txt
  • codex/accounts.txt
  • codex/ak.txt
  • codex/rk.txt
  • codex/registered_accounts.csv
  • codex/codex_tokens/
  • codex/codex_accounts_tokens/

仓库结构

chatgpt_register/
├── chatgpt_register.py
├── config.example.json
├── duckmaildoc.md
├── README.md
└── codex/
    ├── config.example.json
    ├── protocol_keygen.py
    └── README.md

说明

  • 需要可用代理,否则注册、OAuth 和 CPA 自动刷新都会失败
  • config.json 与 codex/config.json 仅保留在本地使用,不应提交
  • 如果你使用 CLIProxyAPI,建议保持 refresh_token 与 token JSON 文件完整保存
Comments (0)
to leave a comment.

No comments yet. Be the first to share your thoughts!

Related Skills

awesome-claude-skills

by ComposioHQ

A curated list of awesome Claude Skills, resources, and tools for customizing Claude AI workflows
44,833
4,538
Python
AI Agentsagent-skillsai-agents
View details
ui-ux-pro-max-skill

by nextlevelbuilder

An AI SKILL that provide design intelligence for building professional UI/UX multiple platforms
43,006
4,155
Python
CLI Toolsai-skillsantigravity
View details
chatgpt-on-wechat

by zhayujie

CowAgent是基于大模型的超级AI助理,能主动思考和任务规划、访问操作系统和外部资源、创造和执行Skills、拥有长期记忆并不断成长。同时支持飞书、钉钉、企业微信、微信公众号、网页等接入,可选择OpenAI/Claude/Gemini/DeepSeek/ Qwen/GLM/Kimi/LinkAI,能处理文本、语音、图片和文件,可快速搭建个人AI助手和企业数字员工。
42,246
9,830
Python
AI Agentsaiai-agent
View details
cherry-studio

by CherryHQ

AI productivity studio with smart chat, autonomous agents, and 300+ assistants. Unified access to frontier LLMs
41,614
3,857
TypeScript
AI Agentsai-agentclaude-code
View details
oh-my-openagent

by code-yeongyu

omo; the best agent harness - previously oh-my-opencode
40,592
3,052
TypeScript
AI Agentsaiai-agents
View details
oh-my-opencode

by code-yeongyu

the best agent harness
37,322
2,805
TypeScript
AI Agentsaiai-agents
View details