Claude Codex Computer Use
An experimental, unofficial bridge that lets
Claude Code control local macOS applications
through an existing OpenAI Computer Use installation.
The package contains no OpenAI binaries. It starts the Computer Use client
already installed on the user's Mac and translates the small MCP compatibility
gap between Claude Code and that client.
Requirements
- macOS. The installed OpenAI runtime currently declares macOS 14.4 or later.
- Claude Code with plugin support. Version 2.1.223 is verified.
- ChatGPT or Codex with OpenAI Computer Use installed and working.
- Accessibility and Screen Recording permissions granted to the OpenAI
Computer Use runtime.
The bridge looks for the Computer Use client at:
$CODEX_HOME/computer-use/Codex Computer Use.app/Contents/SharedSupport/
SkyComputerUseClient.app/Contents/MacOS/SkyComputerUseClient
When CODEX_HOME is unset, it defaults to ~/.codex.
Install as a Claude Code plugin
In a Claude Code session:
/plugin marketplace add songkeys/claude-codex-computer-use
/plugin install claude-codex-computer-use@songkeys
Or from the shell:
claude plugin marketplace add songkeys/claude-codex-computer-use
claude plugin install claude-codex-computer-use@songkeys
New sessions load the Computer Use Skill and MCP server automatically.
Inspect the installation with:
/plugin
/mcp
Install the MCP bridge from npm
The plugin installation is recommended because it includes both the MCP bridge
and the Computer Use Skill. The npm package can also be used as a standalone
stdio MCP server:
claude mcp add computer-use -- npx -y claude-codex-computer-use@latest
Or as a direct .mcp.json entry:
{
"mcpServers": {
"computer-use": {
"command": "npx",
"args": ["-y", "claude-codex-computer-use@latest"]
}
}
}
This MCP-only installation does not load the bundled Skill. Prefer the plugin
unless the MCP client supplies its own Computer Use instructions.
Usage
Ask Claude to use Computer Use explicitly, or describe a desktop task:
Use Computer Use to inspect Calculator and enter 42.
Open System Settings with Computer Use and tell me what page is visible.
The bundled Skill instructs Claude to use an observable state/action/state
loop:
- Read the target app with
get_app_state.
- Use accessibility elements when available and screenshot coordinates only
as a fallback.
- Perform the action.
- Fetch a fresh app state before deciding the next action.
How it works
The OpenAI Computer Use service authenticates the client process ancestry.
Launching its MCP client directly from Claude Code is rejected as an
unauthenticated sender. The bridge therefore uses the signed Codex executable
bundled with ChatGPT or Codex as a process launcher:
Claude Code
-> claude-codex-computer-use bridge
-> signed Codex launcher
-> OpenAI Computer Use MCP client
-> OpenAI Computer Use service
Codex is not used as an agent and no OpenAI model request is made by the
bridge. It runs codex sandbox with Codex's disabled/unrestricted permission
profile so the signed client can access its normal caches, macOS services, and
Unix sockets.
The Computer Use client requires its MCP client to advertise the elicitation
capability and answers app-access approvals through it. The bridge guarantees
that capability is present on initialize and automatically accepts the
app-access elicitation, so sessions work unattended. All other JSON-RPC
messages, including screenshot image blocks, pass through unchanged.
The Computer Use service treats a connected client as an active hold on the
controlled applications and releases them when the client exits. Codex ends
its client at the end of a conversation, but Claude Code keeps plugin MCP
servers alive for the whole session. The bridge therefore terminates the
client after 60 seconds without traffic and relaunches it on demand,
transparently replaying the recorded initialize handshake, so apps are not
held between tasks.
The service also scopes a user-initiated stop (the overlay's Esc cancel) to
the client's current "turn", which never ends for a long-lived client. When a
tool result reports that the app session was stopped by the user, the bridge
recycles the client so the next request starts a fresh session instead of
hitting the same stop again.
Configuration
Environment variables: