Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Codex CLI LauncherNew to Visual Studio Code? Get it now.
Codex CLI Launcher

Codex CLI Launcher

Mikesoft

|
1 install
| (0) | Free
Unofficial VS Code extension that launches Codex CLI in a side terminal from the editor toolbar.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Codex CLI Launcher

CI License: MIT

Codex CLI Launcher is an unofficial VS Code extension that opens OpenAI Codex CLI in a new side terminal directly from the editor toolbar.

Works on Windows, macOS, and Linux where Codex CLI is available to the integrated terminal.

Disclaimer This extension is unofficial and is not affiliated with, endorsed by, sponsored by, or approved by OpenAI. "OpenAI", "Codex", and related names are trademarks of their respective owners.

Features

  • Adds a launcher button to the editor title area
  • Uses local Marketplace and toolbar artwork packaged with the extension
  • Opens a fresh terminal beside the active editor on every launch
  • Uses the active editor workspace when available, with a fallback to the first open workspace folder
  • Runs a configurable Codex CLI command
  • Offers guided installation when the default codex command is not available
  • Supports quoted Windows executable paths
  • Does not collect telemetry, analytics, or personal data

Requirements

  • VS Code ^1.86.0
  • Codex CLI available in the integrated terminal environment, or a working custom launch command configured in settings

Installation

  1. Install the extension from the VS Code Marketplace.
  2. Install Codex CLI globally:
npm install -g @openai/codex
  1. Open any file in VS Code.
  2. Click the launcher button in the editor title.

Any equivalent install or launch method that makes codex available in your terminal also works.

Guided Installation

If the default codex command is missing, the extension shows a guided warning with options to install Codex CLI, open the Codex documentation, or open the extension settings.

Choosing Install opens a visible terminal and runs a generated prompt script. Installation only starts after explicit confirmation:

Codex CLI was not found.
Install Codex CLI now? (y/N):

Answer y or yes to run:

npm install -g @openai/codex

Any other answer cancels installation. Restart VS Code if your shell needs a new environment to see globally installed npm commands.

How It Works

Each launch creates a new terminal beside the current editor and sends the configured command immediately. Existing terminals are not reused.

When possible, the launcher opens the terminal in the workspace folder of the active editor. If the active editor is outside the workspace, it falls back to the first workspace folder in the current VS Code window.

The launcher checks command availability when the terminal runs, so it behaves consistently with your normal integrated terminal environment.

Configuration

Setting Default Description
codexCliLauncher.cliCommand codex Command executed when the launcher button is clicked. The command is sent directly to the integrated terminal.
codexCliLauncher.terminalName Codex CLI Base label used for the created terminal.
codexCliLauncher.autoInstall true Offer guided installation when the default codex command is missing.

Use the Command Palette to open the extension settings:

  • Codex CLI Launcher: Open Settings

Examples:

Default command:

"codexCliLauncher.cliCommand": "codex"

Launch through npx:

"codexCliLauncher.cliCommand": "npx --yes @openai/codex"

Windows executable path with spaces:

"codexCliLauncher.cliCommand": "\"C:\\Users\\You\\AppData\\Roaming\\npm\\codex.cmd\""

Troubleshooting

The terminal opens but codex is not recognized

Install Codex CLI globally and confirm that codex works in a regular integrated terminal:

npm install -g @openai/codex

If your setup relies on shell initialization, restart VS Code after installation so new terminals inherit the updated environment.

Nothing happens after clicking the button

Check codexCliLauncher.cliCommand and verify that the same command works in a regular terminal.

Custom executable path on Windows

Quote executable paths that contain spaces. This is required for commands such as "C:\Users\You\AppData\Roaming\npm\codex.cmd".

Multi-root workspaces

The launcher prefers the workspace folder of the active editor. To control where Codex starts in a multi-root window, open a file from the target workspace before clicking the toolbar button.

Privacy

Codex CLI Launcher does not collect telemetry, analytics, or personal data.

All extension artwork is packaged locally in the VSIX. No external image assets are loaded at runtime.

Development

Local verification and packaging:

npm install
npm run check
npm run test:integration
npm run package

npm run package creates the .vsix file in the workspace root.

The repository includes unit tests, metadata checks, VS Code integration smoke tests, and CI coverage for Windows and Linux.

Support

Open a GitHub issue for bugs and feature requests. For support details, see SUPPORT.md.

License

Released under the MIT License.

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