open-computer-use README

The project's README from github.com/iFurySt/open-computer-use. As one markdown file: README.md.

open-computer-use

English 简体中文 Release Ask DeepWiki LLMAPIS

[!TIP] Interested in Browser Use? Check out open-browser-use.


open-computer-use is an open-source Computer Use service wrapped as MCP. Any AI agent or MCP client can use it to run Computer Use on macOS, Linux, and Windows.

This project was inspired by OpenAI's Codex Computer Use. It showed that non-intrusive CUA can be built on top of Accessibility, so I decided to build an open-source version.

I started this repo with my harness template, a template for quickly spinning up AI-first projects. It has been one of our most useful workflows lately, especially for nearly 100% AI-generated projects. I also wrote a post about the methodology behind it.

Demos

Codex App and Codex CLI

Open Computer Use custom demo cover

open-computer-use used as Computer Use in Codex App and Codex CLI, matching the official experience.

Gemini CLI

https://github.com/user-attachments/assets/eacb3b15-f939-46c7-b3b3-6f876977a58d

Gemini CLI connects to open-computer-use through MCP and runs full Computer Use actions.

Linux

https://github.com/user-attachments/assets/e036b1c8-2200-4896-abd4-19225915cf66

open-computer-use running on Linux.

Locked Use

Locked Use is now supported on macOS. OCU temporarily unlocks your Mac after it has been locked so the agent can continue working, with protective services such as a full-screen shield in place during use.

Open Computer Use Locked Use screen

See the Locked Use guide for setup, installed components, and permissions

Quick Start

npm i -g open-computer-use
# Or on macOS with Homebrew
brew tap ifuryst/open-computer-use
brew install open-computer-use

[!IMPORTANT] The macOS runtime requires macOS 14.0 or later.

On macOS, run it once and grant Accessibility and Screen Recording. Windows and Linux do not need this step.

open-computer-use
# or
ocu

Before using it, install it into your agent:

# Install into Codex by writing to ~/.codex/config.toml
open-computer-use install-codex-mcp
ocu install-codex-mcp

Or add it to your own client manually:

{
  "mcpServers": {
    "open-computer-use": {
      "command": "open-computer-use",
      "args": ["mcp"]
    }
  }
}

Skill

Install the skill directly:

# Install for Codex
npx skills add iFurySt/open-computer-use -g -a codex --skill open-computer-use -y
npx skills ls -g -a codex | rg 'open-computer-use'

Install for Claude Code:

npx skills add iFurySt/open-computer-use -g -a claude-code --skill open-computer-use -y

Update an existing global install, including the Codex install created above:

npx skills update open-computer-use -g -y

You can also manually download and install the open-computer-use skill.

More

Besides the MCP JSON config above, you can also use the built-in commands:

# Install into Codex by writing to ~/.codex/config.toml
open-computer-use install-codex-mcp

# Install as a Codex plugin, mainly for Codex App
open-computer-use install-codex-plugin

# Install into Claude Code by writing to ~/.claude.json
open-computer-use install-claude-mcp

# Install into Gemini CLI for the current project by writing to ./.gemini/settings.json
open-computer-use install-gemini-mcp

# Install into Gemini CLI user config instead
open-computer-use install-gemini-mcp --scope user

# Install into opencode by writing to ~/.config/opencode/opencode.json (or the active config file)
open-computer-use install-opencode-mcp

# Call a single Computer Use tool and print the MCP-style JSON result
open-computer-use call list_apps
ocu call list_apps
open-computer-use call get_app_state --args '{"app":"TextEdit"}'

# Run a sequence in one process so element_index state can be reused
# Sequence runs sleep 1s between successful operations by default
open-computer-use call --calls '[{"tool":"get_app_state","args":{"app":"TextEdit"}},{"tool":"press_key","args":{"app":"TextEdit","key":"Return"}}]'
open-computer-use call --calls-file examples/textedit-overlay-seq.json --sleep 0.5

# Check permissions; onboarding only opens when something is missing
open-computer-use doctor

# macOS: query permission JSON without opening onboarding
ocu doctor --json

# Show help
open-computer-use -h
ocu -h

Global Configuration

ocu supports global configuration starting with version 1.0.0 to accommodate different workflows and use cases. The default configuration file is ~/.config/ocu/config.json. You can edit the file directly or use the ocu config subcommands. See the configuration guide for details.

Star History

Star History Chart for open-computer-use

License

MIT

open-computer-use (iFurySt/open-computer-use)

cua
Searching Database…

What is this?open-computer-use is an open-source Computer Use service wrapped as an MCP server, letting any AI agent or MCP client control a computer's GUI on macOS, Linux, and Windows.
Is this a standalone app, or something I plug into my agent?It's an npm CLI/MCP server (aliased as 'ocu') that you install into an existing AI agent or MCP client, not a standalone app you run on its own.
How do I get it running?Install it into your agent via the npm package, add the MCP JSON config to your own client manually, or install the Claude Code skill directly.
What do I need before running it?You need Node.js 18 or newer for the npm launcher; on macOS you must also run it once and grant Accessibility and Screen Recording permissions (Windows and Linux skip that step).
Any gotchas when setting it up?On macOS, a hidden permission-agent app may stay resident to keep the same permission identity, and granted-permission checks via 'ocu doctor' don't guarantee an action will actually succeed — some permission changes still need a process restart.
Does it only work on Mac, or also Linux and Windows?It runs on macOS, Linux, and Windows, though macOS has extra permission requirements that the other two platforms don't need.
How is this different from a typical screen-automation bot?It's built on OS Accessibility APIs rather than raw pixel/input simulation, which is the same non-intrusive approach OpenAI's Codex Computer Use demonstrated, making it less fragile and more OS-integrated.
Which AI agents/clients already work with it out of the box?It's demoed working as Computer Use inside the Codex App, Codex CLI, and Gemini CLI, and it ships a dedicated Claude Code skill install path.
What is Cursor Motion mentioned in the repo?Cursor Motion is a separate open-source macOS cursor-motion system bundled in the project, based on public information shared by the Software.Inc team, downloadable from the Releases page.
What CLI commands does the 'ocu' tool expose?Besides the MCP server mode, it has 'ocu js' for one-shot JS evaluation, 'ocu repl' for a persistent terminal session, 'ocu mcp' exposing nine core native tools (plus query on macOS), 'ocu doctor --json' for permission diagnostics, and 'ocu config' for persistent settings like screenshot format.
Creator
iFurySt
Size
6.1 MB
Stars
3K
Age
7mo
Commits · 90 Days