Skip to content

About

Computer use for every agent.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

Front Desk

Computer use for every agent.

Front Desk is a macOS app that lets AI agents see and operate your Mac apps in the background.

brew install --cask almanaccode/tap/front-desk

Install with your agent

Paste this into Claude Code or Codex on your Mac:

Install Front Desk with brew install --cask almanaccode/tap/front-desk if Homebrew is available. Otherwise, download the latest DMG from Front Desk Releases, mount it, and copy Front Desk.app to /Applications. Open Front Desk and guide me through setup. I'll grant Accessibility and Screen Recording myself in System Settings. Once setup is done, run computer --help, then use Front Desk to open Calculator and compute 7 × 6.

What it does

Front Desk lets any AI agent read a Mac app window as text with stable element IDs. Agents click, type, and run shortcuts in the background while your active app stays in front. Your pointer stays under your control. When you use an app an agent needs, the agent waits until you pause. A floating live view shows background windows while agents work. Press ⌃⌘⎋ to trigger Stop from any app. The app is Front Desk, and agents type computer.

Install

Front Desk requires macOS 14 (Sonoma) or later.

Homebrew:

brew install --cask almanaccode/tap/front-desk

DMG download:

Download the latest DMG from Releases, open it, and drag Front Desk to /Applications.

Front Desk checks for signed updates once a day through Sparkle. It installs an update only when no agent holds an app.

First run

Open Front Desk from Applications in Finder. If you opened it from a download or disk image, drag the app to Applications, then open the copy there. Your own Applications folder also works.

  1. Turn on Accessibility. This lets agents read and operate apps. Use Open System Settings, then turn on Front Desk under Privacy & Security → Accessibility.
  2. Choose whether to enable Screen Recording. Enable it for screenshots and live view, or continue without it. If macOS offers Quit & Reopen, choose it, then open Front Desk again if needed. macOS may ask for additional consent the first time you capture a window.
  3. Try or skip practice. Front Desk shows which agents it connected. If a connection fails, check the path shown and click Retry.
  4. Click Done. You can turn on Open at login from the final screen or from Settings.

If a switch keeps turning off, click I’ve turned it on in setup. Check the copies listed there. Remove the outdated or ambiguous Front Desk row with −, then use + to add the exact app path shown. If the switch is locked, ask an administrator.

Run computer doctor to see the active app, your shell’s computer target, and the next step. It runs in the background. Open Resume Setup or Turn On Screen Access in the Front Desk menu when you want to change setup. Homebrew provides the command link for a cask install.

Use it with your agent

Front Desk connects Claude Code, Codex, and Gemini CLI automatically in T3 Code or any terminal. Paste this prompt into a new chat:

Open Notes and write me a four-line poem about Thursday.

The agent finds the computer skill on its own and starts working.

Front Desk also recognizes Antigravity by code signature. To use any other agent that has a shell, paste this sentence once:

To see and operate apps on this Mac, use the computer command. Run computer --help first.

Codex sandbox: Codex's workspace-write sandbox blocks Unix sockets. Setup adds a marked front-desk permission profile to ~/.codex/config.toml. That profile allows only the Front Desk socket. Internet access stays blocked. Setup sets this profile as default only when your sandbox_mode is workspace-write. Otherwise, start Codex with -c default_permissions='"front-desk"'.

Commands

Use Front Desk code mode in Codex when its MCP tool is enabled in Settings. In Claude Code and Gemini, use a shell batch for known steps and computer js when the next step depends on what the app shows. A client already configured for computer mcp can run the same JavaScript through its js tool.

A single computer command prints what changed. When several steps are known, send them in one call. A shell batch prints the final window state and stops at the first problem. Code mode and MCP

Command Action Example
computer app <name> Pick an app (open it in the background if needed) and print its window. computer app Notes
computer apps List running and installed apps and their windows. computer apps
computer state Print what changed since the last output (--full prints the whole tree). computer state --full
computer find <words> List elements whose line contains all given words. computer find Save
computer screenshot Save an image of the current window and print its file path. computer screenshot
computer click <id|x,y> Click an element ID or coordinates (--right, --double, --with). computer click 12
computer set <id> <text> Write a value into a settable element directly. computer set 14 'Weekly notes'
computer type <text> Send keystrokes to the focused element. computer type 'Hello'
computer paste <text> Insert long or multi-line text. In the background it never touches your clipboard. computer paste 'Line 1\nLine 2'
computer key <keys> Press a key or shortcut (Return, super+s, ctrl+shift+Tab). When an agent copies (super+c), your clipboard stays yours: the agent's paste (super+v) puts in its own copy. computer key super+s
computer scroll <id|x,y> <dir> [pages] Scroll an element ID or coordinates (up, down, left, right). computer scroll 8 down 2
computer select <id> <text> Select matching text inside a text element. computer select 14 'Thursday'
computer menu <item> > <item> Choose an item from the app menu bar. computer menu 'File > New'
computer js <code> Run JavaScript in code mode with session variables. computer js 'computer.app("Notes").click(12)'
computer doctor Check setup, both switches, and the host connection. computer doctor

To send several actions in one call, pipe commands to computer. It stops at the first error and prints one diff at the end:

computer <<'EOF'
set 31 Thanks, on it!
key Return
EOF

Run computer --help for all commands and options (window, drag, action, end, and --json). Every error returns a stable RFC 9457 problem type and exit status (docs/problems.md).

Safety and privacy

What Front Desk can do: Any program running as you can call Front Desk to read and operate your apps. That includes agents, scripts, and editor extensions under your account. Other users on the Mac cannot connect. The host checks each caller's user ID on a private socket (0700 folder, 0600 socket).

What Front Desk never does: Front Desk opens no network port. It sends no telemetry and no system profile. Our build omits cua-driver usage reporting and update checks. The only network request is Sparkle's daily signed update check on GitHub Releases. Front Desk redacts app text in system logs and leaves it out of reports.

Stop: Press ⌃⌘⎋ from any app to trigger Stop. Stop pauses all callers until 15 seconds pass without a call. You can also click Stop in the menu bar (⌃⌘C) or in the live view.

Keep-out list: Front Desk always keeps agents out of terminals, code editors, agent apps, Front Desk, and macOS security dialogs. By default, it also keeps agents out of password managers, Keychain Access, System Settings, and iPhone Mirroring. You can add any app in Settings. Front Desk stores your keep-out list in the macOS Keychain so shell commands cannot edit it.

Code mode sandbox: computer js runs in an App Sandboxed process with no file, network, process, or timer access. It reaches apps only through the host.

Remove Front Desk: Click Remove Front Desk… in Settings to remove the app. This deletes every file setup wrote and clears both switches.

Read the full threat model and vulnerability reporting steps in SECURITY.md.

How it works

agent shell -> computer (CLI) -> JSON-RPC over Unix socket
                                   |
                                   v
              Front Desk.app (host: holds both macOS switches)
              +-- cua-driver (engine child over stdio)
              +-- computer-use-script (sandboxed JavaScript runner)

Front Desk has four parts:

  • Host (Front Desk.app): Holds both macOS switches so one identity covers every agent. It enforces Stop, the keep-out list, app leases, and user-activity waiting. It also draws the menu bar, live view, and Settings window.
  • Engine (cua-driver): Runs as a direct child of the host over stdio. Cua publishes cua-driver under the MIT License. It reads windows, captures images, and sends background input. Front Desk builds it in CI from a pinned commit with small patches (vendor/cua-driver/).
  • CLI (computer): Parses commands and sends JSON-RPC requests to the host. It holds no permissions and never touches apps directly.
  • Skill (SKILL.md): Lives in each connected agent's skill folder and explains commands, batches, code mode, and user-first rules.

Read ARCHITECTURE.md for the module map. The CLI grammar, state text, exit statuses, and problem types follow Semantic Versioning (docs/public-api.md).

Build from source

Building and running tests requires macOS 14 or later and Swift 6.0 or later (Xcode or Command Line Tools). You do not need Rust or a signing certificate to build and test.

git clone https://github.com/AlmanacCode/front-desk && cd front-desk
swift build && swift test    # with Xcode
scripts/test                 # with Command Line Tools only
scripts/check                # repository lint and style checks

To build Front Desk.app, fetch the pinned engine with scripts/fetch-engine. It checks the download against vendor/cua-driver/engine.sha256. Released versions carry a GitHub release asset. For unreleased patches, the script needs gh signed in to download the Actions artifact. Sign with your own team and bundle ID so macOS keeps both switches:

scripts/fetch-engine
scripts/build-app --team <YOUR_TEAM_ID> --bundle-id <your.reverse.domain>.computeruse.dev --install
open -b <your.reverse.domain>.computeruse.dev

Pass --adhoc to sign without a certificate. macOS resets both switches after each ad-hoc rebuild. Always launch the app with open, never from a terminal path or swift run. Read CONTRIBUTING.md for style rules and pull request checks.

License and credits

Front Desk uses the MIT License. See LICENSE.

  • cua-driver (MIT, Cua AI, Inc.) reads windows and sends background input.
  • acorn (MIT) parses JavaScript for computer js code mode.
  • Sparkle (MIT) checks and installs signed app updates.
  • Simple Icons (CC0 1.0) supplies fallback agent icons.

See THIRD_PARTY_NOTICES.md for complete license texts and embedded project credits.

About

Computer use for every agent.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages