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
codexcommand 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: UsedesktopAppfor Codex Desktop orterminalClifor 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
.gitfolders and Git worktree.gitfiles. - The selected path must exist on disk.
- Install and log in to Codex before using this extension.
- If
codexis not onPATH, setcodexFolderOpener.executablePathto the full executable path.