codex-cu
Control the user's signed-in Brave browser and Mac apps from Claude Code through Codex Computer Use (the codex-cu MCP tools)
Install / Use
npx skills add davidondrej/skills --skill codex-cuInstalls into whichever agent you are using.
SKILL.md
Installable skill definition
Quality Score
Category
AI & Machine LearningSupported Platforms
Our assessment of codex-cu
codex-cu scores 82/100 on our quality scale, 704th of 956 AI & Machine Learning skills we index.
Its SKILL.md is 3.5 KB long, split into 5 sections and no code examples: a solid amount of guidance for an agent.
With 4,079 GitHub stars, it is one of the more widely adopted skills in the catalogue.
Maintenance, license and trust
- The repository was last updated about 2 months ago, so codex-cu is actively maintained.
- Our last check on 2026-11-27 found the source still online.
- It is released under the MIT license, a permissive license that allows use, modification and commercial use with attribution.
- Its trust signals score 100/100, with no cautions. These come from repository metadata, not a code audit — read the skill file before letting an agent act on it.
Safety scan
No issues foundOur scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands.
Automated pattern scan on 2026-11-26. It catches known dangerous patterns, not every risk — read a skill before letting an agent act on it.
codex-cu compared with similar skills
All 4 of these similar skills score higher than codex-cu; compare them before choosing.
| Skill | Score | Stars | Updated | Format |
|---|---|---|---|---|
| codex-cu (this skill)by davidondrej | 82 | 4.1k | 2mo ago | SKILL.md |
| claude-memby thedotmack | 100 | 120.2k | today | CLAUDE.md |
| Agent-Reachby Panniantong | 100 | 115.4k | 3d ago | CLAUDE.md |
| archifyby tt-a1i | 100 | 101.0k | today | CLAUDE.md |
| Understand-Anythingby Egonex-AI | 100 | 94.7k | 3d ago | CLAUDE.md |
Frequently asked questions
- How do I install codex-cu?
- Run
npx skills add davidondrej/skills --skill codex-cu. The install tabs above show the steps for each supported agent. - Which AI agents does codex-cu work with?
- It is written for Claude Code and OpenAI Codex, as a SKILL.md file. Other agents that read the same format can often use it too.
- Is codex-cu safe to use?
- Our scan of the whole file found no instruction hijacking, hidden characters, credential access, data exfiltration or destructive commands. It is MIT-licensed and scores 100/100 on trust signals. Skills are instructions an agent will follow, so read the file before installing it and do not approve commands you do not understand.
- Is codex-cu still maintained?
- The repository was last updated about 2 months ago, so codex-cu is actively maintained.
Skill content
View source on GitHubname: codex-cu description: Control the user's signed-in Brave browser and Mac apps from Claude Code through Codex Computer Use (the codex-cu MCP tools). Use when a Claude Code task needs real browser or desktop UI work via codex-cu, or when codex-cu is missing or broken.
codex-cu
Claude Code's bridge to Codex Computer Use from the ChatGPT app. Claude Code only; Codex has its own native version.
Tools
mcp__codex-cu__jsruns JavaScript with thecuaAPI.mcp__codex-cu__js_resetclears the JS session. Tabs and apps stay as they are.
If they are deferred, load them with ToolSearch select:mcp__codex-cu__js,mcp__codex-cu__js_reset.
Use
- Make the first call exactly one API call, nothing else. It returns the full API docs. Read them.
await cua.getState(); // browsers, tabs, apps // or open a tab directly: let tab = await cua.createBrowserTab(browserId, url, { sessionName: "🔎 Task" }); - Take browser IDs from
getState(); don't hardcode them. The user's browser is Brave with the Codex extension. - Print text with
nodeRepl.write(...).cuacalls print their own output. - Finish browser work within one reply. When your reply ends, the Stop hook ends the turn and closes tabs you opened.
tab.markDeliverable()keeps a tab the user should see.tab.markHandoff()keeps a tab you will continue in a later turn.
- Site permission prompts are the user's call. Never approve them on the user's behalf.
- Don't run while a Codex agent drives the same browser.
How it works
Files live in <codex-cu-dir>/; its README has status and commands.
- User MCP
codex-cuin~/.claude.jsonrunsproxy.mjswith the ChatGPT app's node, in front of Codex'scua-repl.mjs. - The proxy adds
_meta["x-codex-turn-metadata"](session_id,turn_id) to every tool call. The browser side rejects calls without it. - It hides the internal
turn_endedandjs_add_node_module_dirtools. - It remembers the apps you allow in this Claude session and answers repeat "Allow Computer Use to use X?" prompts itself. Codex only remembers approvals for its own conversations.
- It listens on
~/.claude/codex-cu/<claude pid>.sock. stop-hook.sh, a Stop hook in~/.claude/settings.json, walks up parent PIDs to that socket and sendsturn_ended. The proxy calls theturn_endedtool, which releases this session's tabs, and starts a newturn_id.
Troubleshooting
- No codex-cu tools: the session started before setup, or the entry is gone. Check
jq '.mcpServers["codex-cu"]' ~/.claude.json, then start a new session. - "Missing required Codex turn metadata": the entry bypasses the proxy. Its args must start with the path to
proxy.mjs. - Broken after a ChatGPT app update: re-register from the newest plugin version. If the folder is missing, ask the user to restart the ChatGPT app.
d=$(ls -d ~/.codex/plugins/cache/openai-bundled/unified-computer-use/*/ | sort -V | tail -1) json=$(jq -c --arg proxy "<codex-cu-dir>/proxy.mjs" '.mcpServers.cua_repl | {type:"stdio", command, args: ([$proxy, .command] + .args), env}' "$d/.mcp.json") claude mcp remove codex-cu -s user && claude mcp add-json codex-cu "$json" -s user - Tabs never close: the Stop hook is missing from
~/.claude/settings.json. - Test without a new session. This runs the js, fires the Stop hook, and shows the
turn_idbefore and after:cd <codex-cu-dir> && /Applications/ChatGPT.app/Contents/Resources/cua_node/bin/node test-client.mjs run 'await cua.getState();'
Related Skills
claude-mem
120.2kPersistent Context Across Sessions for Every Agent – Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future sessions. Works with Claude Code, OpenClaw, Codex, Gemini, Hermes, Copilot, OpenCode + More
Agent-Reach
115.4kGive your AI agent eyes to see the entire internet. Read & search Twitter, Reddit, YouTube, GitHub, Bilibili, XiaoHongShu — one CLI, zero API fees.
archify
101.0kTurn any idea, plan, or codebase into an interactive diagram or one-page answer: 10 diagram types, Architecture Diagnosis, Story video and PR walkthroughs. An Agent Skill for Claude Code, Codex, Cursor and more.
Understand-Anything
94.7kGraphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex, Cursor, Copilot, Gemini CLI, and more.
Languages
Trust signals
From repository metadata: license, adoption, age and documentation. Not a code audit — see the Safety scan above for what the skill file itself contains.
