Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Codex Model SwitcherNew to Visual Studio Code? Get it now.
Codex Model Switcher

Codex Model Switcher

agentself

|
5 installs
| (0) | Free
Switch the active model in ~/.codex/config.toml from VS Code.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Codex Model Switcher

Switch the active Codex model directly from VS Code while keeping the rest of ~/.codex/config.toml intact.

Use the Codex: Switch Model command or select the Codex: <provider> / <model> status-bar item. The extension writes only the top-level model_provider, model, and review_model values when switching a configured provider.

The Official default entry removes all top-level model_provider lines, allowing Codex to use its own official default. It leaves every [model_providers.*] block intact.

Manage model sources

The sidebar automatically discovers every [model_providers.<provider-id>] block in config.toml. Add or edit a source from the sidebar to manage its display name, provider ID, default model IDs, base_url, wire_api, and env_key. Saving writes or updates that provider block. When a credential value is supplied, it is stored in the Windows user environment variable named by env_key.

WeCom notifications

The sidebar can install a self-contained notification hook. On Windows it uses the built-in powershell.exe, so recipients do not need Python or Node.js installed. Enter the notification endpoint and API key in the sidebar, then select Install / update hook. The extension copies the hook to ~/.codex/hooks, writes its notify command to config.toml, and stores the endpoint and key in Windows user environment variables. The notification switch controls wecom_notify.enabled using yes or no.

The default configuration location is resolved from the current user home directory, so it works with C:\Users\<your-user>\.codex\config.toml on Windows. Set codexModelSwitcher.configPath when Codex uses a nonstandard path.

Development

npm install
npm run compile

Press F5 in VS Code to launch an Extension Development Host. To create an installable package, run npm run package.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft