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.

3,891 stars

Best use case

openai-auth-switcher-public is best used when you need a repeatable AI agent workflow instead of a one-off prompt.

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.

Teams using openai-auth-switcher-public should expect a more consistent output, faster repeated execution, less prompt rewriting.

When to use this skill

  • You want a reusable workflow that can be run more than once with consistent structure.

When not to use this skill

  • You only need a quick one-off answer and do not need a reusable workflow.
  • You cannot install or maintain the underlying files, dependencies, or repository context.

Installation

Claude Code / Cursor / Codex

$curl -o ~/.claude/skills/openai-auth-switcher-public/SKILL.md --create-dirs "https://raw.githubusercontent.com/openclaw/skills/main/skills/amior1024/openai-auth-switcher-public/SKILL.md"

Manual Installation

  1. Download SKILL.md from GitHub
  2. Place it in .claude/skills/openai-auth-switcher-public/SKILL.md inside your project
  3. Restart your AI agent — it will auto-discover the skill

How openai-auth-switcher-public Compares

Feature / Agentopenai-auth-switcher-publicStandard Approach
Platform SupportNot specifiedLimited / Varies
Context Awareness High Baseline
Installation ComplexityUnknownN/A

Frequently Asked Questions

What does this skill do?

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.

Where can I find the source code?

You can find the source code on GitHub using the link provided at the top of the page.

Related Guides

SKILL.md Source

# OpenAI 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:

1. Use `install.sh` as the default user-facing bootstrap entrypoint.
2. Run `doctor.py` when installation or environment checks fail.
3. Confirm runtime discovery with `env_detect.py`.
4. Inspect the current runtime before any switch logic.
5. Dry-run any target before proposing a write.
6. Keep rollback and backup behavior explicit.
7. Package only from this public skill directory or from a sanitized staging copy.

## Included scripts

Primary public-release scripts:

- `install.sh` — recommended user entrypoint; wraps the web bootstrap into a single shell command
- `uninstall.sh` — recommended cleanup entrypoint before `clawhub uninstall`
- `scripts/install_web_app.py` — one-shot web bootstrap for first-run access
- `scripts/pick_port.py` — port selection helper (`9527` → `12138` → fallback)
- `scripts/generate_web_credentials.py` — default admin credential generator
- `scripts/doctor.py` — compatibility and environment checks
- `scripts/env_detect.py` — OpenClaw path and runtime discovery
- `scripts/paths.py` — centralized path resolution helpers
- `scripts/inspect_runtime.py` — portable runtime inspection
- `scripts/profile_slot.py` — public-safe slot metadata and local slot files
- `scripts/rollback_experiment.py` — rollback helper using explicit backup sources
- `scripts/switch_experiment.py` — controlled switch experiment with backup and rollback
- `scripts/token_ledger.py` — local token attribution ledger rebuild
- `scripts/hourly_usage.py` — hourly/daily rollup payload for local analytics
- `scripts/package_public_skill.py` — release-safe packager wrapper

Helper modules:

- `scripts/auth_file_lib.py`
- `scripts/probe_lib.py`
- `scripts/lock_lib.py`
- `scripts/state_lib.py`

## Compatibility and safety references

Read only as needed:

- `references/compatibility.md` — Python / Node / OpenClaw / OS expectations
- `references/runtime-discovery.md` — path detection and override model
- `references/install-and-runbook.md` — operator flow and first-run checks
- `references/security-model.md` — sensitivity, boundaries, and redaction rules
- `references/packaging-policy.md` — publish checklist and forbidden contents
- `references/migration-notes.md` — relation to the internal/live skill

## 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

Related Skills

authenticate-wallet

3891
from openclaw/skills

Sign in to AgnicPay wallet via browser-based OAuth. Use when you or the user want to authenticate, sign in, log in, connect wallet, or set up the CLI. Covers phrases like "sign in", "log in", "authenticate", "connect my wallet", "set up agnic".

Web3 & Fintech

pentest-auth-bypass

3891
from openclaw/skills

Test authentication and session management controls for bypass and account takeover scenarios.

Security

fitclaw-public-core

3891
from openclaw/skills

Public-safe FitClaw coaching workflow covering onboarding, hydration, nutrition, and training structure. Use when demonstrating a reusable AI fitness coaching method without exposing private user data or live production configuration.

cpa-codex-auth-sweep-cliproxy

3891
from openclaw/skills

通过 CLI Proxy Management API 拉取 Codex 认证文件并高并发探活扫描。适用于「扫号」「清死号」「清理 Codex 401」场景;仅在用户明确确认后可删除 401。执行前必须提供 base_url 与 management_key。安全限制:默认仅允许 https://chatgpt.com 作为 probe 主机,非白名单目标需显式危险确认。

Twenty CRM OAuth Mastery Skill

3891
from openclaw/skills

**Author**: Generated from extensive OAuth debugging sessions in OpenCode

Authensor Gateway

3891
from openclaw/skills

Fail-safe policy gate for OpenClaw marketplace skills. Intercepts tool calls before execution and checks them against your Authensor policy. Low-risk actions run automatically. High-risk actions require your approval. Dangerous actions are blocked. Only action metadata is sent to the control plane — never your files, API keys, or conversation content.

authenticate-openant

3891
from openclaw/skills

Sign in to OpenAnt. Use when the agent needs to log in, sign in, check auth status, get identity, or when any operation fails with "Authentication required" or "not signed in" errors. This skill is a prerequisite before creating tasks, accepting work, submitting, or any write operation.

xhs-auth

3891
from openclaw/skills

小红书认证管理技能。检查登录状态、登录(二维码或手机号)、多账号管理。 当用户要求登录小红书、检查登录状态、切换账号时触发。

durable-files-weekly-review-public

3891
from openclaw/skills

Run a weekly token-optimization audit for durable instruction files in any OpenClaw workspace, generate a markdown report, and propose approval-gated cleanup actions. Use when users want to keep AGENTS/USER/TOOLS/MEMORY-style docs lean without silent deletions.

openai-whisper

3891
from openclaw/skills

Local speech-to-text with the Whisper CLI (no API key).

openai-image-gen

3891
from openclaw/skills

Batch-generate images via OpenAI Images API. Random prompt sampler + `index.html` gallery.

cubistic-public-bots

3891
from openclaw/skills

Explain how external/public bots can participate in Cubistic (cubistic.com) and help maintain the Public Bot API docs (PoW challenge + /act). Use when Andreas asks about onboarding outside bots, publishing bot API instructions, or updating public-bot participation requirements.