Codex Auth
/install codex-auth
⚠️ Deprecated:
codex-authis no longer maintained as a standalone skill. Use codex-profiler for all ongoing/codex_authand/codex_usageoperations.
Run scripts/codex_auth.py to generate a login URL and apply callback URL tokens to auth-profiles.json.
Safe defaults
- Treat callback URLs/tokens as sensitive and never echo full values.
- Use queued apply flow for controlled restart behavior.
- See
RISK.mdfor allowed/denied operation boundaries.
Commands
/codex_auth→ selector (discovered profiles)/codex_auth \x3Cprofile>/codex_auth finish \x3Cprofile> \x3Ccallback_url>
Interaction adapter
- If inline buttons are supported: show selector buttons.
- If inline buttons are not supported: send text fallback (
default | \x3Cprofile>). - Callback message handling must never echo full callback URLs (treat as sensitive).
- Use callback_data namespace prefix
codex_auth_*to avoid collisions.
How to run
Start flow:
python3 skills/codex-auth/scripts/codex_auth.py start --profile default
Finish flow (after browser redirect URL is pasted):
python3 skills/codex-auth/scripts/codex_auth.py finish --profile default --callback-url "http://localhost:1455/auth/callback?code=...&state=..."
Queue safe apply (stops/restarts gateway in background):
python3 skills/codex-auth/scripts/codex_auth.py finish --profile default --callback-url "http://localhost:1455/auth/callback?code=...&state=..." --queue-apply
python3 skills/codex-auth/scripts/codex_auth.py status
Safety posture
- No remote shell execution (
curl|bash,wget|sh) is allowed by this skill. - No
sudo/SSH/system package mutation is performed by this skill. - OAuth callback URLs are sensitive: never echo full callback URLs or tokens in chat output.
- Writes are limited to auth profile state files with lock-based coordination.
Notes
- Uses the same OpenAI Codex OAuth constants/method as OpenClaw onboarding (
auth.openai.com+ localhost callback). - OAuth success here does not guarantee
chatgpt.com/backend-api/wham/usageacceptance; usage endpoint may reject token/session format with401and should be handled by usage/profiler skills. - Endpoint trust boundary: OpenAI auth hosts + localhost callback flow only; do not send callbacks/tokens to third-party hosts.
- Writes
~/.openclaw/agents/main/agent/auth-profiles.jsonwith file locking to reduce race risk while gateway is running. - Profile IDs map as:
default->openai-codex:default(or first discovered codex profile if default missing)- any other selector ->
openai-codex:\x3Cselector>
- Pending auth state is stored in
/tmp/openclaw/codex-auth-pending.json.
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install codex-auth - 安装完成后,直接呼叫该 Skill 的名称或使用
/codex-auth触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Codex Auth 是什么?
DEPRECATED shim skill for /codex_auth. Use codex-profiler instead; codex-auth is no longer the maintained path. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 344 次。
如何安装 Codex Auth?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install codex-auth」即可一键安装,无需额外配置。
Codex Auth 是免费的吗?
是的,Codex Auth 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。
Codex Auth 支持哪些平台?
Codex Auth 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Codex Auth?
由 DeadlySilent(@deadlysilent)开发并维护,当前版本 v1.0.6。