Install
openclaw skills install chatgpt-skillAutomate ChatGPT Web conversations through a local browser session with persistent login state, one-shot prompts, reusable multi-turn sessions, and conversation metadata storage. Use when OpenClaw/Codex needs ChatGPT-style normal dialogue through the web UI instead of the OpenAI API, including login setup, continued conversations, session reuse, or browser-based troubleshooting.
openclaw skills install chatgpt-skillUse this skill to drive the ChatGPT Web UI through a local browser profile.
python3 scripts/run.pyAlways run commands through the wrapper:
python3 scripts/run.py auth_manager.py status
python3 scripts/run.py auth_manager.py validate
python3 scripts/run.py auth_manager.py setup
python3 scripts/run.py ask_chatgpt.py --question "你好"
python3 scripts/run.py session_manager.py create
The wrapper ensures the local .venv exists, installs dependencies, and runs the target script with the correct interpreter.
python3 scripts/run.py auth_manager.py status
python3 scripts/run.py auth_manager.py validate
python3 scripts/run.py auth_manager.py setup
python3 scripts/run.py auth_manager.py logout
One-shot question:
python3 scripts/run.py ask_chatgpt.py --question "你好"
Debug in visible browser:
python3 scripts/run.py ask_chatgpt.py --question "总结这段文本" --show-browser
Continue a known conversation id:
python3 scripts/run.py ask_chatgpt.py --conversation-id <conversation_id> --question "继续"
Ask with an explicit model workflow and save a proof screenshot:
python3 scripts/run.py ask_chatgpt.py \
--new-chat \
--model "GPT 5.4 Thinking" \
--extended-thinking \
--proof-screenshot \
--question "请你推荐最近一个月,RLVR领域的论文"
Create a reusable session:
python3 scripts/run.py session_manager.py create
python3 scripts/run.py session_manager.py create --conversation-id <conversation_id>
Ask follow-up questions in the same tab:
python3 scripts/run.py session_manager.py ask --session-id <session_id> --question "继续问"
You can also switch model, force a fresh chat, enable Extended thinking, and save a proof screenshot in the same call:
python3 scripts/run.py session_manager.py ask --session-id <session_id> --new-chat --model "GPT 5.4 Thinking" --extended-thinking --proof-screenshot --question "请你推荐最近一个月,RLVR领域的论文"
Inspect or maintain sessions:
python3 scripts/run.py session_manager.py list
python3 scripts/run.py session_manager.py info --session-id <session_id>
python3 scripts/run.py session_manager.py reset --session-id <session_id>
python3 scripts/run.py session_manager.py close --session-id <session_id>
python3 scripts/run.py session_manager.py gc
All data stays inside the skill directory:
data/auth_info.json — auth metadata and last validation statusdata/browser_state/ — cookies, storage state, persistent browser profiledata/conversations.json — discovered/opened conversation metadatadata/sessions.json — persistent session metadatadata/session_runtime/ — daemon socket, pid, and runtime artifactsdata/screenshots/ — debug screenshots captured on failuresThe scripts return explicit machine-readable errors for cases such as:
--show-browser when the UI changesdata/screenshots/ and JSON error payloads before patching selectorsWEB:... when ChatGPT keeps the URL at /