How styayur/codex-mode-switcher works
Codex Mode Switcher is a single-script PowerShell utility for switching between Codex’s OpenAI/ChatGPT selection and one saved custom provider. The user invokes commands through codex-mode.ps1; the documented workflows inspect or update Codex configuration, preserve provider state and backups, and optionally query or invoke the Codex CLI. The README documents these behaviors, but no source excerpts were provided, so internal implementation details are not inferred.
Main entry points: codex-mode.ps1 GPT mode
Components 10
Mode commands
- Mode switcher
codex-mode.ps1 - Status and init
codex-mode.ps1 - GPT mode
codex-mode.ps1 - Provider restore
codex-mode.ps1
Local configuration
- Codex config
- Saved provider state
- Config and state backups
Codex integration
- Codex CLI
- Codex credential store
Other components
- User
Connections 15
- User → Mode switcher: invokes
README.md - Mode switcher → Status and init: dispatches
README.md - Mode switcher → GPT mode: dispatches
README.md - Mode switcher → Provider restore: dispatches
README.md - Status and init → Codex config: reads
README.md - Status and init → Codex CLI: queries login
README.md - Status and init → Saved provider state: checks presence
README.md - GPT mode → Codex config: updates selection
README.md - GPT mode → Saved provider state: saves provider
README.md - GPT mode → Config and state backups: creates backup
README.md - GPT mode → Codex CLI: checks or logs in
README.md - Provider restore → Saved provider state: validates and reads
README.md - Provider restore → Codex config: restores selection
README.md - Provider restore → Config and state backups: creates backup
README.md - Codex CLI → Codex credential store: may update
README.md