Install
Add to ~/Library/Application Support/Claude/claude_desktop_config.json
Windows / Linux path
%APPDATA%\Claude\claude_desktop_config.json~/.config/Claude/claude_desktop_config.json{
"mcpServers": {
"io-github-xallindrome-labs-codex-bridge": {
"command": "npx",
"args": [
"-y",
"@xallindrome-labs/codex-bridge"
],
"env": {
"CODEX_BIN": "<VALUE>",
"CODEX_BRIDGE_HOME": "~/.codex-bridge",
"CODEX_BRIDGE_IDLE_TIMEOUT_MS": "600000",
"CODEX_BRIDGE_PLAN_MODEL": "<VALUE>",
"CODEX_BRIDGE_PLAN_EFFORT": "<VALUE>",
"CODEX_BRIDGE_IMAGE_MODEL": "gpt-6-luna",
"CODEX_BRIDGE_IMAGE_EFFORT": "high",
"CODEX_BRIDGE_WRITE_ROOT": "<VALUE>",
"CODEX_BRIDGE_WRITE_ALLOW_TMP": "<VALUE>",
"CODEX_BRIDGE_CODE_MODEL": "<VALUE>",
"CODEX_BRIDGE_CODE_EFFORT": "<VALUE>"
}
}
}
}
Restart Claude Desktop to activate the new server.
Add to .cursor/mcp.json (project) or ~/.cursor/mcp.json (global)
Windows / Linux path
.cursor\mcp.json (project) or %USERPROFILE%\.cursor\mcp.json (global).cursor/mcp.json (project) or ~/.cursor/mcp.json (global){
"mcpServers": {
"io-github-xallindrome-labs-codex-bridge": {
"command": "npx",
"args": [
"-y",
"@xallindrome-labs/codex-bridge"
],
"env": {
"CODEX_BIN": "<VALUE>",
"CODEX_BRIDGE_HOME": "~/.codex-bridge",
"CODEX_BRIDGE_IDLE_TIMEOUT_MS": "600000",
"CODEX_BRIDGE_PLAN_MODEL": "<VALUE>",
"CODEX_BRIDGE_PLAN_EFFORT": "<VALUE>",
"CODEX_BRIDGE_IMAGE_MODEL": "gpt-6-luna",
"CODEX_BRIDGE_IMAGE_EFFORT": "high",
"CODEX_BRIDGE_WRITE_ROOT": "<VALUE>",
"CODEX_BRIDGE_WRITE_ALLOW_TMP": "<VALUE>",
"CODEX_BRIDGE_CODE_MODEL": "<VALUE>",
"CODEX_BRIDGE_CODE_EFFORT": "<VALUE>"
}
}
}
}
Cursor usually picks up config changes automatically; if the server does not appear, reload the window.
Add to .mcp.json (project) or ~/.claude.json (global)
Windows / Linux path
.mcp.json (project) or %USERPROFILE%\.claude.json (global).mcp.json (project) or ~/.claude.json (global){
"mcpServers": {
"io-github-xallindrome-labs-codex-bridge": {
"command": "npx",
"args": [
"-y",
"@xallindrome-labs/codex-bridge"
],
"env": {
"CODEX_BIN": "<VALUE>",
"CODEX_BRIDGE_HOME": "~/.codex-bridge",
"CODEX_BRIDGE_IDLE_TIMEOUT_MS": "600000",
"CODEX_BRIDGE_PLAN_MODEL": "<VALUE>",
"CODEX_BRIDGE_PLAN_EFFORT": "<VALUE>",
"CODEX_BRIDGE_IMAGE_MODEL": "gpt-6-luna",
"CODEX_BRIDGE_IMAGE_EFFORT": "high",
"CODEX_BRIDGE_WRITE_ROOT": "<VALUE>",
"CODEX_BRIDGE_WRITE_ALLOW_TMP": "<VALUE>",
"CODEX_BRIDGE_CODE_MODEL": "<VALUE>",
"CODEX_BRIDGE_CODE_EFFORT": "<VALUE>"
}
}
}
}
The server will be available in the next Claude Code session.
Add to .vscode/mcp.json
Windows / Linux path
.vscode\mcp.json.vscode/mcp.json{
"servers": {
"io-github-xallindrome-labs-codex-bridge": {
"command": "npx",
"args": [
"-y",
"@xallindrome-labs/codex-bridge"
],
"env": {
"CODEX_BIN": "<VALUE>",
"CODEX_BRIDGE_HOME": "~/.codex-bridge",
"CODEX_BRIDGE_IDLE_TIMEOUT_MS": "600000",
"CODEX_BRIDGE_PLAN_MODEL": "<VALUE>",
"CODEX_BRIDGE_PLAN_EFFORT": "<VALUE>",
"CODEX_BRIDGE_IMAGE_MODEL": "gpt-6-luna",
"CODEX_BRIDGE_IMAGE_EFFORT": "high",
"CODEX_BRIDGE_WRITE_ROOT": "<VALUE>",
"CODEX_BRIDGE_WRITE_ALLOW_TMP": "<VALUE>",
"CODEX_BRIDGE_CODE_MODEL": "<VALUE>",
"CODEX_BRIDGE_CODE_EFFORT": "<VALUE>"
}
}
}
}
Reload the VS Code window to activate.
Add to ~/.codeium/windsurf/mcp_config.json
Windows / Linux path
%USERPROFILE%\.codeium\windsurf\mcp_config.json~/.codeium/windsurf/mcp_config.json{
"mcpServers": {
"io-github-xallindrome-labs-codex-bridge": {
"command": "npx",
"args": [
"-y",
"@xallindrome-labs/codex-bridge"
],
"env": {
"CODEX_BIN": "<VALUE>",
"CODEX_BRIDGE_HOME": "~/.codex-bridge",
"CODEX_BRIDGE_IDLE_TIMEOUT_MS": "600000",
"CODEX_BRIDGE_PLAN_MODEL": "<VALUE>",
"CODEX_BRIDGE_PLAN_EFFORT": "<VALUE>",
"CODEX_BRIDGE_IMAGE_MODEL": "gpt-6-luna",
"CODEX_BRIDGE_IMAGE_EFFORT": "high",
"CODEX_BRIDGE_WRITE_ROOT": "<VALUE>",
"CODEX_BRIDGE_WRITE_ALLOW_TMP": "<VALUE>",
"CODEX_BRIDGE_CODE_MODEL": "<VALUE>",
"CODEX_BRIDGE_CODE_EFFORT": "<VALUE>"
}
}
}
}
Restart Windsurf (or refresh its MCP servers panel) to activate the new server.
Windsurf Next uses ~/.codeium/windsurf-next/mcp_config.json. Devin Desktop (the Windsurf rebrand) uses ~/.config/devin/mcp_config.json and imports the Windsurf file.
Add to ~/Library/Application Support/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json
Windows / Linux path
%APPDATA%\Code\User\globalStorage\saoudrizwan.claude-dev\settings\cline_mcp_settings.json~/.config/Code/User/globalStorage/saoudrizwan.claude-dev/settings/cline_mcp_settings.json{
"mcpServers": {
"io-github-xallindrome-labs-codex-bridge": {
"command": "npx",
"args": [
"-y",
"@xallindrome-labs/codex-bridge"
],
"env": {
"CODEX_BIN": "<VALUE>",
"CODEX_BRIDGE_HOME": "~/.codex-bridge",
"CODEX_BRIDGE_IDLE_TIMEOUT_MS": "600000",
"CODEX_BRIDGE_PLAN_MODEL": "<VALUE>",
"CODEX_BRIDGE_PLAN_EFFORT": "<VALUE>",
"CODEX_BRIDGE_IMAGE_MODEL": "gpt-6-luna",
"CODEX_BRIDGE_IMAGE_EFFORT": "high",
"CODEX_BRIDGE_WRITE_ROOT": "<VALUE>",
"CODEX_BRIDGE_WRITE_ALLOW_TMP": "<VALUE>",
"CODEX_BRIDGE_CODE_MODEL": "<VALUE>",
"CODEX_BRIDGE_CODE_EFFORT": "<VALUE>"
}
}
}
}
Cline reloads cline_mcp_settings.json automatically; if the server does not appear, reload the VS Code window.
Open it from Cline's MCP Servers panel → Configure. Roo Code uses a different file and format.
Configuration
Environment variables this server reads. Secrets stay on your machine.
| Name | Required | Description |
|---|---|---|
| CODEX_BIN | No | Path to the Codex binary. Auto-detected by default; it prefers a codex.exe next to codex-code-mode-host.exe, currently ~/.codex/plugins/.plugin-appserver/codex.exe. |
| CODEX_BRIDGE_HOME | No | The codex-bridge home directory. Default: ~/.codex-bridge |
| CODEX_BRIDGE_IDLE_TIMEOUT_MS | No | Stops a run after this many milliseconds with no Codex output. Default: 600000 |
| CODEX_BRIDGE_PLAN_MODEL | No | Default model for codex_plan. Defaults to your Codex config defaults. |
| CODEX_BRIDGE_PLAN_EFFORT | No | Default effort for codex_plan. Defaults to your Codex config defaults. |
| CODEX_BRIDGE_IMAGE_MODEL | No | Default model for codex_image. Default: gpt-6-luna |
| CODEX_BRIDGE_IMAGE_EFFORT | No | Default effort for codex_image. Default: high |
| CODEX_BRIDGE_WRITE_ROOT | No | Unset by default, which turns codex_code off. Set to one folder to let codex_code edit files there. |
| CODEX_BRIDGE_WRITE_ALLOW_TMP | No | Unset by default. Set to 1 to stop asking Codex to block temp-folder writes (not enforced on Windows anyway). |
| CODEX_BRIDGE_CODE_MODEL | No | Default model for codex_code. Defaults to your Codex config defaults. |
| CODEX_BRIDGE_CODE_EFFORT | No | Default effort for codex_code. Defaults to your Codex config defaults. |