Skills openai-auth-switcher-public
Web-first, publishable OpenClaw skill for OpenAI OAuth account switching. Use when you need a reusable public-track workflow for first-run takeover, environment discovery, doctor checks, runtime inspection, slot management, dry-run validation, controlled switch experiments, rollback planning, and release-safe packaging without bundling live auth snapshots, logs, callbacks, or other machine-specific runtime data.
git clone https://github.com/openclaw/skills
T=$(mktemp -d) && git clone --depth=1 https://github.com/openclaw/skills "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/amior1024/openai-auth-switcher-public" ~/.claude/skills/clawdbot-skills-openai-auth-switcher-public && rm -rf "$T"
skills/amior1024/openai-auth-switcher-public/SKILL.mdOpenAI Auth Switcher Public
Use this skill as the publishable public-track release of the OpenAI auth switcher workflow.
It is designed for OpenClaw administrators who want a web-first, first-run-friendly, release-safe workflow for OpenAI OAuth account takeover, inspection, dry-run validation, controlled switching, and public distribution.
Purpose
Keep the live/internal operator skill and the public distributable skill separated.
This public track must:
- avoid bundling live runtime state
- avoid bundling auth snapshots, callbacks, backups, or token ledgers from a real machine
- avoid machine-specific hard-coded paths where possible
- document compatibility boundaries explicitly
- provide a release-safe packaging workflow
- keep temporary runtime files inside the skill runtime area, while encouraging important persistent state to live in an external state base via
OPENAI_AUTH_SWITCHER_PUBLIC_STATE_DIR
Core operating model
Treat OpenClaw OpenAI OAuth switching as a high-sensitivity maintenance workflow.
Always do work in this order:
- Use
as the default user-facing bootstrap entrypoint.install.sh - Run
when installation or environment checks fail.doctor.py - Confirm runtime discovery with
.env_detect.py - Inspect the current runtime before any switch logic.
- Dry-run any target before proposing a write.
- Keep rollback and backup behavior explicit.
- Package only from this public skill directory or from a sanitized staging copy.
Included scripts
Primary public-release scripts:
— recommended user entrypoint; wraps the web bootstrap into a single shell commandinstall.sh
— recommended cleanup entrypoint beforeuninstall.shclawhub uninstall
— one-shot web bootstrap for first-run accessscripts/install_web_app.py
— port selection helper (scripts/pick_port.py
→9527
→ fallback)12138
— default admin credential generatorscripts/generate_web_credentials.py
— compatibility and environment checksscripts/doctor.py
— OpenClaw path and runtime discoveryscripts/env_detect.py
— centralized path resolution helpersscripts/paths.py
— portable runtime inspectionscripts/inspect_runtime.py
— public-safe slot metadata and local slot filesscripts/profile_slot.py
— rollback helper using explicit backup sourcesscripts/rollback_experiment.py
— controlled switch experiment with backup and rollbackscripts/switch_experiment.py
— local token attribution ledger rebuildscripts/token_ledger.py
— hourly/daily rollup payload for local analyticsscripts/hourly_usage.py
— release-safe packager wrapperscripts/package_public_skill.py
Helper modules:
scripts/auth_file_lib.pyscripts/probe_lib.pyscripts/lock_lib.pyscripts/state_lib.py
Compatibility and safety references
Read only as needed:
— Python / Node / OpenClaw / OS expectationsreferences/compatibility.md
— path detection and override modelreferences/runtime-discovery.md
— operator flow and first-run checksreferences/install-and-runbook.md
— sensitivity, boundaries, and redaction rulesreferences/security-model.md
— publish checklist and forbidden contentsreferences/packaging-policy.md
— relation to the internal/live skillreferences/migration-notes.md
Release rule
Do not publish
skills/openai-auth-switcher directly.
Use the public skill directory for ClawHub publication and use a packaging wrapper that rejects runtime data, backups, session callbacks, and credential-bearing files.
Recommended first release positioning:
- version:
0.1.0 - tested on OpenClaw
2026.3.11 - tested on Python
3.11 - tested on Node.js
22.x - Linux-first release