Codex Provider SwitcherVS Code extension for maintaining named local Codex provider profiles and switching the active profile safely. Supported Hosts
macOS, WSL, cross-device switching, and cloud profile/session synchronization are not supported. InstallVS Code MarketplaceInstall Codex Provider Switcher from the VS Code Marketplace in the Extensions view, or run:
VS Code automatically selects the compatible target package for the machine running the Extension Host. In a Remote SSH window, install the extension on the SSH host; VS Code selects the
macOS, WSL, musl Linux, non-x64 hosts, and browser Extension Hosts are not supported. GitHub ReleasesFor an offline or manually verified installation, download the VSIX and
Do not install either artifact on macOS, WSL, musl Linux, or a different CPU architecture. Each release includes
The selected command must print In VS Code, open the Extensions view, select the Upgrade and UninstallMarketplace installations follow the normal VS Code extension update flow. To upgrade a manual installation, download and verify the newer VSIX for the same Extension Host, then repeat Install from VSIX.... VS Code replaces the extension while preserving its local VS Code SecretStorage and the Codex Home data on that host. To uninstall, use the extension's gear menu and choose Uninstall in the same local or Remote SSH window where it was installed. Uninstalling the extension does not delete Codex profiles, backups, sessions, or credentials; remove those separately only when you explicitly intend to do so. Profiles and CredentialsCreate a named Profile with non-secret TOML configuration. Custom provider API keys are stored separately in VS Code SecretStorage; the TOML must not contain credentials. Official Profiles use native Codex authentication. When switching to an official Profile, the extension runs native Provider WorkbenchOpen the Codex Providers icon in the Activity Bar, or run Codex: Open Provider Workbench. The left navigation lists named Providers; the work area shows the selected Provider's details and session actions.
Switching and RecoverySwitching materializes the selected Profile, updates provider metadata for local sessions, and reports progress. A cancellation waits for rollback to finish before another command runs. The switch process creates backups, and Codex: Restore Backup can recover an interrupted operation. Session synchronization remains local to the current Extension Host and Codex Home; cross-device and cloud session synchronization are not supported. On Windows volumes that report no inode data, protected file mutations use the native Windows file identity from an open handle. If that identity or the native helper is unavailable, the extension disables the unsafe operation instead of falling back to timestamps or path-only checks. Codex: Continue Session starts native Codex resume only. Session content can be encrypted or otherwise unavailable, so there is no automatic transcript transfer or readable-content fallback without explicit caller confirmation. After a Profile switch commits, the extension may offer local source session IDs for native Codex continuation. It uses native Codex app-server fork or reuse only; it never displays, extracts, replays, or falls back to readable transcript content. The local mapping store retains at most three active branches for each source session and target Profile, using local native archive and unarchive operations as needed. Manual Codex: Continue Session remains native resume. Commands
The status bar shows the active Profile name when it is available. Select it to switch Profiles. Development
Native continuation requires a native Codex installation with app-server support. Focused continuation checks are:
Keep secrets out of configuration, tests, documentation, commits, and logs. This README intentionally contains no API-key example or real credential. |