Automates OpenAI account registration, login, token retrieval, batch processing, and data export via Web UI and CLI. Includes Docker deployment and database management.
What the skill costs in Claude's context, stage by stage
No description Claude Code can read, so Claude's list leaves it out: only you can start it.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
---
name: codex-console-openai-registration
description: Skill for using codex-console, an integrated console for automated OpenAI account registration, login, token retrieval, batch processing, and data export with Web UI management.
triggers:
- "set up codex-console"
- "automate OpenAI account registration"
- "batch register OpenAI accounts"
- "run codex-console web UI"
- "configure codex console database"
- "package codex-console executable"
- "fix OpenAI registration flow"
- "deploy codex-console with docker"
---
# codex-console
> Skill by [ara.so](https://ara.so) — Daily 2026 Skills collection.
codex-console is an enhanced, actively-maintained fork of [cnlimiter/codex-manager](https://github.com/cnlimiter/codex-manager). It provides a Web UI and CLI for automated OpenAI account registration, login, token retrieval, batch task management, log viewing, and data export. Key fixes include Sentinel POW solving, split register/login flows, deduplication of verification code sending, and improved page-state detection.
---
## Installation
### Requirements
- Python 3.10+
- `uv` (recommended) or `pip`
### Clone and Install
```bash
git clone https://github.com/dou-jiang/codex-console.git
cd codex-console
# Using uv (recommended)
uv sync
# Or using pip
pip install -r requirements.txt
cp .env.example .env
# Edit .env as needed
Key environment variables:
| Variable | Description | Default |
|---|---|---|
APP_HOST | Listen host | 0.0.0.0 |
APP_PORT | Listen port | 8000 |
APP_ACCESS_PASSWORD | Web UI access password | admin123 |
APP_DATABASE_URL | Database connection string | data/database.db |
Priority order: CLI args > .env variables > DB settings > defaults
# Default (127.0.0.1:8000)
python webui.py
# Custom host and port
python webui.py --host 0.0.0.0 --port 8080
# With access password
python webui.py --access-password mypassword
# Debug mode (hot reload)
python webui.py --debug
# Combined
python webui.py --host 0.0.0.0 --port 8080 --access-password mypassword
Access the UI at: http://127.0.0.1:8000
docker-compose up -d
Customize environment variables in docker-compose.yml:
version: "3.8"
services:
codex-console:
image: ghcr.io/<yourname>/codex-console:latest
ports:
- "1455:1455"
environment:
WEBUI_HOST: "0.0.0.0"
WEBUI_PORT: "1455"
WEBUI_ACCESS_PASSWORD: "${WEBUI_ACCESS_PASSWORD}"
LOG_LEVEL: "info"
volumes:
- ./data:/app/data
docker run -d \
-p 1455:1455 \
-e WEBUI_HOST=0.0.0.0 \
-e WEBUI_PORT=1455 \
-e WEBUI_ACCESS_PASSWORD="${WEBUI_ACCESS_PASSWORD}" \
-v $(pwd)/data:/app/data \
--name codex-console \
ghcr.io/<yourname>/codex-console:latest
⚠️ Always mount
-v $(pwd)/data:/app/datato persist database and account data across container restarts.
Docker environment variables:
| Variable | Description |
|---|---|
WEBUI_HOST | Listen host (default 0.0.0.0) |
WEBUI_PORT | Listen port (default 1455) |
WEBUI_ACCESS_PASSWORD | Web UI password |
DEBUG | Set 1 or true for debug mode |
LOG_LEVEL | Log level: info, debug, etc. |
# Uses data/database.db by default
python webui.py
export APP_DATABASE_URL="postgresql://user:password@host:5432/dbname"
python webui.py
Also supports DATABASE_URL env var (lower priority than APP_DATABASE_URL).
build.bat
Output: dist/codex-console-windows-X64.exe
The built executable supports CLI arguments:
codex-console.exe --access-password mypassword
codex-console.exe --host 0.0.0.0 --port 8080
bash build.sh
Build troubleshooting checklist:
uv sync or pip install -r requirements.txt)Understanding these helps when extending or debugging:
OpenAI now enforces Sentinel Proof-of-Work validation. The original codebase passed empty values; this fork implements actual POW solving:
# The registration flow now calls POW solver before submitting
pow_token = solve_sentinel_pow(challenge)
headers["openai-sentinel-token"] = pow_token
Registration no longer returns a usable token directly. The flow is now:
# Step 1: Register account
register_result = await register_account(email, password)
# Step 2: Separately log in to retrieve token
token = await login_and_get_token(email, password)
The server sends the verification code email automatically. The old logic sent a duplicate manual request, causing conflicts:
# Old (broken): manually trigger code send
# await send_verification_code(email) # REMOVED
# New: wait for the system-sent code
code = await wait_for_verification_email(email_client)
Login re-entry now correctly detects page transitions and submits credentials at the right stage:
# Detect current page state before acting
page_state = detect_login_page_state(response)
if page_state == "password_required":
await submit_password(password)
elif page_state == "verification_required":
await submit_verification_code(code)
http://127.0.0.1:8000Use the Web UI Export feature to download account credentials and tokens as CSV or JSON.
Real-time logs are available in the Web UI. For CLI log output:
python webui.py --debug 2>&1 | tee run.log
Set up your email接码 provider credentials in the Web UI settings panel or via environment:
export EMAIL_IMAP_HOST="imap.yourprovider.com"
export EMAIL_IMAP_USER="${EMAIL_USER}"
export EMAIL_IMAP_PASS="${EMAIL_PASS}"
# Check the host binding — 127.0.0.1 only allows local access
python webui.py --host 0.0.0.0 --port 8000
# Ensure data directory exists
mkdir -p data
# For PostgreSQL, verify connection string
psql "postgresql://user:password@host:5432/dbname" -c "SELECT 1"
# Run in a clean environment
pip install pyinstaller
pyinstaller --clean codex-console.spec
Check for antivirus interference — whitelist the dist/ directory during build.
This typically means the login flow is hitting a new page state. Check:
codex-console/
├── webui.py # Main entry point — starts Web UI
├── build.bat # Windows packaging script
├── build.sh # Linux/macOS packaging script
├── docker-compose.yml # Docker Compose configuration
├── .env.example # Environment variable template
├── data/ # SQLite DB and account data (persisted)
└── requirements.txt # Python dependencies
This project is a fix-and-enhancement fork of cnlimiter/codex-manager. When publishing or redistributing, include:
Forked and fixed from cnlimiter/codex-manager
Disclaimer: For learning, research, and technical exchange only. Comply with all platform terms of service. Users assume all responsibility for use.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
openai-registration, account-automation, web-ui, cli, docker-deployment
/aradotso-trending-skills-37:codex-console-openai-registrationfrom aradotso-trending-skills-37
Claude never picks this skill on its own
Its frontmatter has no description. Without a description, Claude Code leaves it out of the list Claude chooses from. Typing /aradotso-trending-skills-37:codex-console-openai-registration still runs it.
aradotso-trending-skills-37@cascade-ai-ml-agents-misc-1 is listed by joshuarweaver/cascade-ai-ml-agents-misc-1 — review the source before installing
npx claudepluginhub joshuarweaver/cascade-ai-ml-agents-misc-1 --plugin aradotso-trending-skills-37496 skills in this plugin
/3dsvg-interactive-reactTurn SVGs into interactive React 3D components using the 3dsvg library and visual editor/724-office-ai-agentSelf-evolving AI agent system with 26 tools, three-layer memory, MCP plugins, and 24/7 self-repair in pure Python./acgti-anime-persona-quizACG Type Indicator — MBTI-inspired anime character persona quiz built with Vue 3, TypeScript, and ViteOther plugins' skills for the same job