open-computer-use
FreeNo executable scriptsNot checkedPlatform-neutral guidance for using Open Computer Use, the open-source Computer Use MCP server and CLI for macOS, Linux, and Windows. Use when an agent needs…
by iFurySt★ 3,141 GitHub starsAbout this skill
Open Computer Use
Overview
Open Computer Use exposes Computer Use as a local CLI and stdio MCP server. It is not Codex.app-specific; adapt the commands and MCP config to the agent runtime you are operating in.
The macOS runtime requires macOS 14.0 or later. Windows and Linux use their own platform runtimes and are not subject to this macOS minimum.
It supports the same core tool surface across macOS, Linux, and Windows:
list_apps, get_app_state, click, perform_secondary_action, scroll,
drag, type_text, press_key, and set_value.
The macOS runtime additionally implements select_text, which selects the given text inside a text
element or places the text cursor before / after it (selection: text, cursor_before,
cursor_after). Pass text exactly as it appears in the accessibility tree, plus prefix /
suffix when it is not unique; an ambiguous target fails closed instead of silently selecting the
first match. JavaScript exposes app.selectText(elementIndex, text, options?). Unreadable or mismatched range verification throws, including when full action read-back is off. Windows and Linux runtimes do not implement this tool yet.
macOS additionally exposes query: a targeted accessibility lookup that finds
controls by text and/or role without rendering a tree or taking a screenshot.
On macOS and Windows, list_windows lists a running app's windows with their window_id.
Pass an ID to get_app_state as window_id to read and act on that window.
See references/usage.md.
Core Workflow
- On macOS, run
sw_vers -productVersionbefore invoking the CLI and require macOS 14.0 or later. On older versions, explain that the runtime cannot launch; do not recommenddoctoror permission changes as a fix for binary incompatibility. - Check the CLI is installed with
open-computer-use -horocu -h. If installation or setup is missing, read references/installation.md. - On supported macOS versions, run
open-computer-use doctorbefore the first real GUI task. If permissions are missing, ask the user to approve Accessibility and Screen Recording in the onboarding UI. - Inspect available apps before acting:
open-computer-use call list_apps. - Capture current UI state with
open-computer-use call get_app_state --args '{"app":"TextEdit"}'. The default state is usually enough for UI operation. - When the task needs longer semantic text, such as chat history, email bodies, document text, or long form content, call
get_app_statewithtext_limit: 1000ortext_limit: "max". - When visible long pages or lists appear incomplete even after scrolling, call
get_app_statewith a largermax_tree_nodesormax_tree_depth. - Prefer element-targeted actions using
element_indexfrom the latestget_app_stateresult. - For multi-step CLI work, use
open-computer-use call --calls '<json-array>'so one process can reuse the latest element index mapping. - For agent runtimes that support local MCP servers, configure
open-computer-use mcporocu mcpand call the exposed Computer Use tools directly. Read references/usage.md. - For direct code-first orchestration, run
ocu capabilitiesand then use one-shotocu jsor persistentocu repl. Read references/usage.md. - If communication, permission, or desktop-session access fails, read references/troubleshooting.md.
Operating Rules
- Treat the target desktop as the user's real session. Do not inspect password managers, unrelated private content, or sensitive apps unless the user explicitly asked for that task.
- Ask before sending, deleting, purchasing, approving, uploading, or making other externally visible changes.
- Do not assume Codex.app plugin helpers are available. Use the installed
open-computer-use/ocuCLI or an explicit MCP config. - Use indexes returned by
get_app_stateor macOSqueryin the same native session; do not guess indexes across sessions or after large UI changes. - Prefer semantic actions and
set_valuefor editable controls. Use coordinateclick,scroll, anddragonly when the element tree does not expose a safer target. - On macOS, do not enable
OPEN_COMPUTER_USE_ALLOW_GLOBAL_POINTER_FALLBACKS=1unless the user explicitly requestedclick_method: "global", adragthat must drive a window-server drag session (window move, drag-select text, Finder drag-and-drop), or other diagnostic behavior that may move the real pointer. Without itdragreportsDrag delivered via app_postand those operations have no effect; seereferences/usage.mdfor alternatives. - On Windows and Linux, confirm the command is running inside the logged-in desktop session before assuming GUI automation is available.
Common CLI Actions
open-computer-use -h
ocu -h
ocu capabilities --json
ocu js 'nodeRepl.write(6 * 7)'
ocu repl
op
Install open-computer-use in Claude Code & Claude Desktop
Sign up to install this skill
Create a free account to reveal the install command and save the skill to your library.
- Reveal the one-line install command
- Save skills to your synced library
- Get notified when skills update
Allowed tools
Tools this skill is permitted to call.
No restriction — this skill can use any tool.
Bundled files
FAQ
What does the open-computer-use skill do?
Platform-neutral guidance for using Open Computer Use, the open-source Computer Use MCP server and CLI for macOS, Linux, and Windows. Use when an agent needs to install, verify, troubleshoot, configure, or operate Open Computer Use through its native CLI, stdio MCP server, or direct Computer Use tool calls.
How do I install the open-computer-use skill?
Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.
Does the open-computer-use skill run scripts?
No, this skill is instructions only (SKILL.md) with no executable scripts.
Related skills
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
by Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
by Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
by Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
by Anthropic