UCU
Health Gecti
- License — License: MIT
- Description — Repository has a description
- Active repo — Last push 0 days ago
- Community trust — 13 GitHub stars
Code Basarisiz
- network request — Outbound network request in integrations/chrome/background.js
- rm -rf — Recursive force deletion command in scripts/check-public.sh
- rm -rf — Recursive force deletion command in scripts/devid.sh
- rm -rf — Recursive force deletion command in scripts/release.sh
Permissions Gecti
- Permissions — No dangerous permissions requested
Bu listing icin henuz AI raporu yok.
Background computer use for macOS, shared by every agent you use. An MCP server for Claude Code, Codex, Cursor, Pi and any MCP client.
UCU
Background computer use for macOS, shared by every agent you use.
English · 简体中文
UCU (Universal Computer Use) is another computer-use tool for the Mac. It runs as an MCP server, so Claude Code, Codex, Cursor, Pi, Antigravity and any other MCP client can read windows, click, type and scroll in Mac apps in the background, without taking over your mouse or keyboard.
It was written for two reasons: to give every agent the same computer-use experience, with one set of approvals, and to bring computer use to agents that have none of their own, such as Pi and Antigravity, or a background one to the Claude Code command line.
Approvals you can see at a glance
- Apps and websites, allowed or denied. The first time an agent uses an app or a website, UCU asks: don't allow, allow for this session, or, under more options, always allow or always deny. The UCU window lists every app and site that is always allowed or always denied, and lets you change or remove each one, or deny an app before any agent asks for it.
- One list for every agent. Approvals are kept by UCU, not by each agent, so an app you denied stays denied whichever agent asks next.
- What is happening now. The menu bar panel shows which agents are working and in which app, and pauses all of them at once. Pressing Esc three times does the same from anywhere.
- A countdown before risky clicks. Before Delete, Send, Buy and similar buttons, UCU counts down two seconds so you can cancel. Payment pages need your explicit approval.
System prompts, answered from anywhere
Agents working on a Mac regularly run into system prompts that only you can answer: an administrator password dialog, a Touch ID prompt, a password sheet in System Settings, or a privacy prompt asking whether an app may access your files. When you are away from the Mac, the agent is stuck there, and you often find out only much later.
UCU can forward these prompts to an app you connect, so you can answer them from elsewhere:
- When a prompt appears, even on another desktop, UCU sends its screenshot and the program that asked to the connected app.
- In that app, you choose a button or type the password.
- UCU presses the button or enters the password on the Mac, and tells you whether macOS accepted it.
If the same program keeps asking for a password, you can choose Always Allow for it: UCU then fills that prompt with the password stored in your keychain, and tells the connected app each time. These rules are listed in the UCU window, where you can remove them at any time. Without Always Allow, UCU keeps no passwords.
The interface is open (docs/requests.md, in Chinese): any app can receive and answer these prompts. With no app connected, the prompts simply stay on the Mac.
OrZen, a workspace for coding agents by the same author, is one app that already connects. While OrZen is running, system prompts and UCU's own approvals show up in OrZen: in the conversation that caused them when it can tell which one, otherwise as a request from that Mac. You can answer in OrZen on the Mac or on your iPhone, including typing the Mac's password from the phone. UCU does not depend on OrZen and works the same without it.
The real mouse, when the background is not enough
Most computer-use tools take care never to touch the user's mouse, and UCU works in the background by default too. Some tasks, however, need the real pointer: menus and tooltips that appear only on hover, :hover styles, and automated tests that check them. And some apps expose no accessibility information at all, which leaves tools that rely on it unable to operate them.
UCU covers these cases with the real mouse and keyboard, as some other tools also do:
- Hover. The
hovertool rests the real pointer on an element or a point and returns the window as it looks at that moment. - Apps without accessibility. UCU reads such an app from its screenshot and text recognition, and first tries clicks and keys sent to the window in the background. When the app ignores them, the result says so, and the agent can repeat the step with
foreground: true, using the real mouse and keyboard.
Neither happens on its own: the agent asks for it, step by step. UCU then waits until you have stopped typing and moving the mouse, brings the app forward, checks that the keyboard went to it and that the click lands on its window (otherwise it sends nothing), does the one step, and puts back your app and pointer, and the clipboard if the step pasted text.
Demo
Background operation
Operating apps in the background is not new, and UCU does it much as other open-source tools do; it borrows from several of them (see Acknowledgements). In brief:
- The target app is not brought forward, and your pointer, keyboard focus, input method and clipboard are left alone. Windows behind a full-screen app or on another desktop can be used too.
- Agents read an app's accessibility elements and a screenshot, and act through accessibility where they can, or through events sent only to the target window. After an action they get the elements that changed and whether anything visibly happened, which keeps responses short: on Calculator, one read and six clicks returned 2,256 characters and one screenshot rather than 8,098 characters and seven.
- An agent cursor shows where each session is working.
- With the Chrome extension, agents work in your own signed-in Chrome, tab by tab, on approved sites only.
For pages that need a full browser automation stack, tools such as Playwright MCP go further. How it works has the details.
Quick start
Install. Download UCU.dmg, drag UCU into Applications and open it. Requires macOS 14 or later on Apple silicon. Releases are notarized by Apple.
Grant permissions. The UCU window asks for Accessibility (to read and operate apps), Screen & System Audio Recording (to see windows) and Input Monitoring (for the pause shortcut), and shows whether each is on. After turning on screen recording, choose Quit & Reopen when macOS asks.
Connect an agent. Click Connect next to Claude Code, Codex or Pi in the UCU window. Other MCP clients run this command over stdio:
/Applications/UCU.app/Contents/MacOS/ucu mcpTry it. In a new agent session, ask for example: "Open Calculator and work out 1234 × 5678."
The ucu command line is optional; see the Reference.
Installing the Chrome extension
The extension lets agents read and operate web pages in your own Chrome, tab by tab, and only on sites you have approved. It is optional: without it, UCU works with your other apps just the same. For now it is installed in Chrome's Developer mode.
Prepare the extension's files. This copies them into UCU's data folder, prints the folder's path and shows it in Finder:
/Applications/UCU.app/Contents/MacOS/ucu extensionIf you have linked
ucuinto your terminal (The command line),ucu extensiondoes the same.In Chrome, open
chrome://extensionsand turn on Developer mode at the top right.Click Load unpacked and choose that folder,
~/Library/Application Support/com.infinite-explorations.UCU/chrome-extension. In the file dialog, Cmd+Shift+G lets you paste the path.To check that it works, ask an agent to list your Chrome tabs. Tabs on sites you have not approved are only counted; the first time the agent needs one of them, UCU asks you.
- Nothing else needs configuring: each time UCU starts, it registers itself with Chrome as the extension's native messaging host.
- When UCU is updated, it copies the new extension files into the same folder, and the extension reloads itself within half a minute.
- Only Google Chrome is supported for now.
Safety and privacy
- Nothing without your approval. Every app and every website needs your approval before an agent can see or use it, and the approvals are listed in the UCU window, where you can withdraw them.
- Always visible. An agent cursor marks where each agent is working, the menu bar panel lists which agents are active, and
ucu logshows every step they took. - Stop at any time. Press Esc three times, or use the menu bar panel, to pause every agent at once.
- Your passwords stay yours. Agents hand sign-ins and two-factor codes to you. UCU enters a system password only for a prompt you set to Always Allow, from your own keychain.
- Permissions you control. Accessibility, Screen Recording and Input Monitoring are granted by you in System Settings and can be turned off there. Input Monitoring is used only to notice the pause shortcut; what you type is not recorded.
- Nothing on a locked Mac. While the screen is locked or the display sleeps, every call returns without acting.
- Nothing leaves your Mac. UCU has no account, no server and no telemetry. Its log keeps the length of typed text rather than the text, and drops the query strings of URLs.
- Apps cannot instruct agents. Agents are told that text and images from apps are data, never instructions.
Documentation
- Reference: connecting agents, tools, the command line, settings, logs and replay, the browser extension, known limitations
- How it works: architecture and techniques
- Design notes and app notes (in Chinese)
Contributing
UCU is written in Go and Objective-C. Building, testing and conventions are in CONTRIBUTING.md. The interface follows the system language; a new language takes one file (docs/localization.md, in Chinese).
Acknowledgements
UCU builds on techniques from mac-computer-use, Cua Driver, computer-use-mcp and yabai. Their licenses are in THIRD_PARTY_NOTICES.md.
License
Yorumlar (0)
Yorum birakmak icin giris yap.
Yorum birakSonuc bulunamadi