codex-profile-switchlisted
Install: claude install-skill LXR110-bit/codex-profile-switch
# Codex Profile Switch
This skill is for users who do **not** want to edit TOML or understand Codex provider internals.
Main promise: the user runs one beginner command or local `start.sh`, pastes an OpenAI-compatible API base URL, and can then switch Codex between:
- ChatGPT personal account
- API proxy
while keeping the full conversation history visible on both sides.
Important safety rule: **do not ask the user to paste an API key into chat.** `setup-api.sh` only asks for `base_url` and model. Codex Desktop prompts for the key in its GUI on first API use and stores it in macOS Keychain.
## When to trigger this skill
Any of:
- "切 api" / "切到 api" / "换 api" / "switch to api"
- "切 chatgpt" / "切回个人" / "切回个人账号" / "switch to chatgpt"
- "codex 切档案" / "codex 切配置" / "codex profile" / "codex switch account"
## Execution
### 1. Verify Codex is not running
Just call the script — it self-checks. Only the GUI main process
(`Codex.app/Contents/MacOS/Codex`) and `codex app-server` block; crashpad /
helper services are ignored.
If blocked, tell the user: **"Cmd+Q to fully quit Codex (closing the window is
not enough), then retry."**
### 2. First-time API setup when needed
If the user is a beginner, asks to configure API proxy, says they only have an API URL, or `~/.codex/config.toml.profile.api` is missing, prefer the one-stop beginner entrypoint:
```bash
~/.claude/skills/codex-profile-switch/start.sh
```
If the repo is not installed locally, share the remote one-line comman