VS Code Extensions
Open in Codex

Open in Codex

by Linkbai

Open the selected folder or its Git repository root in Codex from the Explorer context menu.

Downloads

19

Rating

— (0)

Version

0.0.2

Last updated

May 11, 2026

Open repository in Codex is a VS Code-compatible extension that adds an Explorer context menu action for opening the selected Git repository in Codex.

It adds an Explorer context menu command:

Codex: Open repository in Codex

Features

  • Right-click a folder and open the nearest parent Git repository in Codex.
  • Right-click a file and open the nearest parent Git repository from its containing folder.
  • If no Git repository is found, optionally open the selected folder directly in Codex.
  • Works on Windows and macOS when the codex command is available.
  • Supports Codex Desktop and Codex CLI terminal launch modes.

Launch Modes

By default, the extension runs:

codex app <path>

This opens the repository in Codex Desktop.

You can switch codexFolderOpener.launchMode to terminalCli to open an integrated terminal and run:

codex -C <path>

Settings

{
  "codexFolderOpener.executablePath": "codex",
  "codexFolderOpener.launchMode": "desktopApp",
  "codexFolderOpener.openSelectedFolderWhenNoGitRoot": true
}
  • codexFolderOpener.executablePath: Codex executable command or full path.
  • codexFolderOpener.launchMode: Use desktopApp for Codex Desktop or terminalCli for the interactive CLI in a VS Code terminal.
  • codexFolderOpener.openSelectedFolderWhenNoGitRoot: When enabled, the selected folder is opened even if no Git root is found.

Build

From the cloned extension repository, run:

npx --yes @vscode/vsce package

The command generates a .vsix package, for example:

open-repository-in-codex-0.0.1.vsix

Install Locally

Install into Antigravity:

antigravity --install-extension .\open-repository-in-codex-0.0.1.vsix --force

Install into VS Code:

code --install-extension .\open-repository-in-codex-0.0.1.vsix --force

Install into Cursor:

cursor --install-extension .\open-repository-in-codex-0.0.1.vsix --force

On macOS, use the same commands from a shell where the target editor command is available.

Notes

  • The extension checks for .git folders and Git worktree .git files.
  • The selected path must exist on disk.
  • Install and log in to Codex before using this extension.
  • If codex is not on PATH, set codexFolderOpener.executablePath to the full executable path.

Related extensions