OpenComputer
Provides local automation of macOS applications through accessibility APIs, enabling agents to discover apps, inspect accessibility trees, modify controls and values, perform semantic actions, and capture specific app windows without activating apps or moving the global pointer.
This server does not currently have a deployable release on Glama. Follow the repository's setup instructions to install and configure it for your MCP client, including any required credentials and local dependencies.
OpenComputer gives AI agents a local interface for working with Mac apps in the background. Open and discover apps, read them as a compact outline, click, type, press keys, scroll, and capture a window — all without moving your pointer, taking keyboard focus, or bringing an app forward. Connect it to an MCP client or use the JavaScript API directly. No OpenComputer account, API key, cloud service, or npm dependencies.
Watch it work
A 27-second showcase with narration, sound effects, and music. Click the preview to watch with sound.

Watch with sound · 27 seconds · Vertical social cut · Editable Hyperframes projects
Actual native UI with choreographed demo actions. Recording details.
New in 0.5.0: watch the feature tour, recorded unedited on a GitHub macOS runner by the release workflow. An agent fills in and submits a background app while the terminal keeps the foreground, checks its own results, asks before a sensitive press, is stopped with Take over, and is refused in the terminal it runs in. The script is scripts/demo.mjs.
Related MCP server: macbot-mcp
Background control, visible activity
Inspired by the app-scoped workflow of ChatGPT Computer Use. This is an independent implementation using public macOS APIs. It is not a drop-in replacement for OpenAI's private runtime, and it does not provide ChatGPT's approval system or locked-Mac access.
For your agent | For your desktop |
Nineteen MCP tools with explicit input schemas. | Exact app allowlists, read-only apps, or explicit all-app access on your own Mac. |
Compact outlines with element IDs that stay valid across actions. | Clicks are accessibility presses; keys go to the target process only. Your pointer never moves. |
Window screenshots, including covered windows. | Captures are scoped to the selected app's window. |
Native actions with verification metadata. | An app that brings itself forward is sent back; your foreground app is restored. |
Clear refusals when the person takes over or declines. | Three dots open into a card with the agent's recent steps, Take over, and Allow / Deny; a named ghost cursor marks the target. |
Get started
macOS 14+ · Node.js 22+ · Apple Silicon or Intel
Download the runtime ZIP and extract it somewhere permanent. It includes the universal native helper; Node.js is installed separately.
In that folder, run
node bin/opencomputer.mjs doctor. Approve Accessibility and Screen Recording for the launching host in System Settings → Privacy & Security, then restart that host if needed. Permission help.Add the MCP server to your agent using its documented configuration. Start with one app you intend to automate:
{
"mcpServers": {
"opencomputer": {
"command": "/absolute/path/to/node",
"args": ["/absolute/path/to/opencomputer/bin/opencomputer.mjs", "serve"],
"env": { "OPENCOMPUTER_APPS": "com.apple.TextEdit" }
}
}
}Ask your agent to inspect a disposable TextEdit document. Have it read the current state before each action and check the result afterward. Empty allowlist means no app access. Use node bin/opencomputer.mjs apps to find bundle IDs. Set OPENCOMPUTER_APPS to * for explicit access to all running apps and their existing sessions; no VM or browser-profile copying. Add :read to an entry (com.apple.Mail:read, or *:read) to let the agent look but not act, or :click to let it click and scroll but not type.
Developer runtime: the native helper is ad-hoc signed, not Apple-notarized. macOS may block downloaded binaries. Follow the normal macOS approval flow or build from source; OpenComputer never disables Gatekeeper. This release is a developer runtime, not a graphical installer.
Checksums · Claude and Grok setup · Release notes
What it asks for, and why
Needs | Why |
Accessibility | To read an allowed app's controls and press them. |
Screen Recording | To capture the one window the agent asks for. Nothing else on screen is captured, and screenshots are not stored. |
Network | None. The server opens no listener and sends no telemetry. |
Files it writes | A redacted action log per session in |
To check a download, compare shasum -a 256 OpenComputer-0.5.0-macOS.zip with its line in SHA256SUMS.txt. Or skip the download: npm run build compiles the helper from the Swift files in native/, with no npm dependencies.
See what your agent is doing
A small three-dot glass pill sits at the top right while an agent has an app in use. Hover and it opens into a card: the app's icon badged with the agent, "Claude is using Notes", the window or browser-tab title, elapsed time, and the last three steps as a live timeline. Move away to collapse it. Multiple agents get separate, stacked indicators. Icons come from installed apps.

The ghost cursor wears the agent's colour and name tag, eases between targets, leans into its motion, and dips with a ripple when an action lands. It gently floats while idle. It appears at the agent’s target while that part of its window is visible. It follows window movement and disappears when covered, hidden, or minimized. Both overlays stay above ordinary windows, pass clicks through, and cannot become the active window. They never move your real pointer. The agent calls release when finished to remove them. Behavior and settings.
Stay in charge
Take over on the card pauses the agent: its actions are refused with PAUSED_BY_USER, nothing is sent, until you press Resume. To approve consequential actions first, set OPENCOMPUTER_CONFIRM: sensitive asks before buttons like Send, Pay, or Delete and before Return; a bundle ID asks before everything in that app; all asks before every action. The card opens with Deny and Hold to allow, and the agent is told to wait for you. How it works.

Work alongside your agent
Whatever you do in other apps never blocks the agent. Only work in the same window does: an action then waits a couple of seconds for you to pause, with an amber indicator explaining why, and otherwise returns USER_BUSY with nothing sent. If an app brings itself forward when the agent presses something, OpenComputer hands the foreground back to the app you were in. Signals, thresholds, and limits.
A familiar interface
import { createComputer } from './src/computer.mjs';
const computer = createComputer({ apps: ['com.apple.TextEdit'], agent: 'Claude' });
try {
const app = computer.getApp('com.apple.TextEdit');
const state = await app.getAXState();
const field = state.nodes.find(node => node.settable && node.role === 'AXTextArea');
if (!field) throw new Error('No writable text area in this window');
await app.setValue(field.id, 'Hello from OpenComputer');
console.log(await app.getAXState()); // verify the result
} finally {
computer.close();
}Element IDs stay valid across actions until the next full observe of that app; one observe can drive a multi-step task. Stale IDs fail with a clear error. Screenshots can return a window-selection list; select the intended window and request it again. Full API.
What works today
Background control: pointer-free clicks on elements or screenshot points, writable values, secondary actions, and opening apps or URLs without activating them.
Window capture: ScreenCaptureKit captures a selected window without capturing the whole desktop.
Agent connections: local MCP over stdio, plus a JavaScript client with serialized requests and bounded timeouts.
Text, keys, and scrolling: insertion at the caret, typed text and shortcuts delivered to the target process only, and page scrolling.
Fast reads: batched attribute reads return a typical thousand-element window in well under a second, as a compact outline with
querysearch.Activity and focus protection: hover-to-open activity card with a step timeline, visible-target ghost cursor, window-aware interaction checks, and foreground restoration when an app activates itself.
Take over and approvals: pause any agent from the card, and approve sends, payments, posts, and deletes before they happen.
Act and verify in one call: once an app has been observed, every action waits for the app to settle on its own accessibility notifications and returns only what changed (
+added,-removed,~changed), with the same element IDs, and says when the app reported no change at all. Passexpect(or callverify) to get a plainconfirmed,deviation, orunverifiable.waitForwaits for an element to appear or go away instead of polling.See what the outline can't: screenshots can label every control with its element ID (
marks), zoom into a region at full display resolution (region), and read text from pixels with on-device Vision OCR (ocr), with or without the picture.Fewer round trips:
menuruns a command by path (File > Export as PDF…),pressKeywithvia: "menu"runs a shortcut through its menu item when a background app ignores keys,readTextreturns a page or document as plain text, andbatchruns a known sequence of steps in one call. Errors say whether retrying is safe and what to call next.Access levels:
bundle:readentries allow observing and screenshots but refuse every action, andbundle:clickallows clicks and scrolling but no typing or keys, so an agent can read Mail while acting only in the app you chose.*never covers the app the agent itself runs in, so it cannot approve its own prompts.An audit trail you can check: every session writes a redacted, hash-chained action log;
opencomputer log --summaryshows what each session did and--verifychecks that no line was edited out.Any agent: each MCP client runs its own server, so several agents can work at once.
Not implemented: hover, drag, right-click, pixel-exact clicks on canvases, browser DOM automation, Windows/Linux, and locked-screen operation. Canvas-only controls, minimized windows, secure fields, and apps with incomplete accessibility support may not work. Keys reach the target app's own focused control, and some apps ignore keys while in the background. An app can still bring itself forward for a moment before the foreground is handed back; public macOS APIs cannot prevent that. Each agent host needs its own Accessibility and Screen Recording approval. Compatibility and acceptance checks.
Quietly local
The server opens no network listener and sends no telemetry. It does not read browser profiles, store screenshots, or use the clipboard for text insertion. Your AI client may send tool output and screenshots to its model provider; that client's data policies apply. Accessible password values are redacted, but screenshots and ordinary text fields may still contain secrets.
The app allowlist is a process-level control, not a sandbox against an agent that can execute arbitrary shell commands. Your MCP client remains responsible for user consent, prompt-injection handling, and approval before consequential actions. Privacy · Security model
Tested with Claude and Grok
Both installed clients completed the native fixture task through OpenComputer 0.3.0: fill a field, enable an option, submit once, verify, capture a window, and release the indicators. Claude used 11 tool calls and Grok 14, with zero errors in their completed benchmark runs. Both preserved focus. Earlier Grok activity pauses and a turn-limit interruption are recorded alongside the passes. Results, methodology, and limitations.
FAQ
Can I keep using my Mac while the agent works? Yes. Work in other apps and other windows never blocks it. In the window it is acting on, an action waits a moment for you to pause and otherwise returns USER_BUSY with nothing sent.
Which agents does it work with? Any MCP client that runs local stdio servers, plus the JavaScript API. Claude Code and Grok Build are covered by the benchmark.
How is this different from screenshot-and-mouse agents? Those drive the real pointer and keyboard, so the computer is theirs while they work. OpenComputer reads apps through the accessibility API and acts on controls directly, in the background. The trade-off: it cannot drag, hover, right-click, or click inside canvas-drawn apps.
And from other background computer-use projects? Several cover more ground, such as Windows and Linux, or background pointer events through private macOS APIs. OpenComputer uses public APIs only, never sends synthetic mouse events, and focuses on sharing one desktop with a person: same-window waits, refusing actions when the page changed, default-deny access, and a visible card with Take over and approvals.
Is it safe to let an agent use my apps? You choose the apps; the default is none. Entries can be read-only or click-only, sensitive actions can wait for your on-screen approval, Take over pauses everything, and every session leaves a hash-chained log. The allowlist is not a sandbox against an agent that can already run shell commands. Security model.
Why isn't the helper notarized? Notarization needs a paid Apple Developer ID. Until then the release is ad-hoc signed, with checksums, and you can build it from source.
Windows or Linux? No. OpenComputer is built on macOS accessibility and ScreenCaptureKit.
Build, test, contribute
npm run build # Swift helper, macOS only
npm test # protocol and client behavior
npm run check # syntax, documentation links, release metadata
npm run fixture:build # disposable native benchmark app
npm run test:integration # real accessibility actions + window screenshot
npm run test:activity # two agents, visibility, cleanup
npm run test:ui # animated dots, hover, actual panel screenshots
npm run test:focus # foreground restoration + two-window work
npm run test:interaction # deterministic activity-conflict scenariosContributing · Developer guide · Test coverage · Reproduce the AI benchmark · Report an issue
Tool Schema Changelog
Recent tool additions, removals, and schema changes observed during successful MCP inspections.
Loading tool schema changelog…
This server cannot be deployed
Maintenance
Related MCP Connectors
Operate Linux, macOS and Windows from your LLM. Every action runs through an auditable allowlist.
Monitor your Mac and let AI agents report progress or request human help.
Connect AI assistants to your approved computer for files, commands, browser and desktop tasks.
- DNS-DATA RemoteDeprecatedcom.dns-data
Connect AI assistants to authorized Windows and macOS devices for files, commands, and management.
Related MCP Servers
- AlicenseNot gradedqualityCmaintenanceEnables AI assistants to automate macOS desktop tasks including mouse control, keyboard input, screenshots, window management, and UI interaction.418MIT
- AlicenseNot gradedqualityCmaintenanceEnables AI agents to control macOS applications through the Accessibility API, AppleScript, and CGEvents, providing structured text output of UI elements and actions without needing screenshots.MIT
- AlicenseAqualityDmaintenanceEnables AI agents to control macOS desktop apps via screenshots, mouse clicks, keyboard input, accessibility queries, and AppleScript.1111 npmMIT
- AlicenseNot gradedqualityBmaintenanceEnables AI assistants to inspect and control macOS apps via accessibility trees, screenshots, OCR, and input simulation, with a visible pointer.MIT