atrium — Docs
docs/agents/computer-use.md

Computer use: let an agent operate desktop apps

Enable native computer use on macOS or Windows, allow apps, review actions, watch the preview, and stop one session or every agent.

Computer use lets a capable agent inspect and operate native applications on macOS and Windows through atrium's bundled driver. Enable it for the conversation you want to grant access to. App permissions, protected surfaces, and a stop switch remain under atrium's control.

Set it up

Open Settings → Computer Use. The Readiness section reports the driver and daemon state. On macOS it also checks Accessibility and Screen Recording permission:

  • The computer-use driver is installed and current.
  • Its daemon is running, or ready to start on demand.
  • macOS Accessibility permission is granted.
  • macOS Screen Recording permission is granted.
Use Check now to verify readiness. On macOS, each missing permission offers Grant or Open System Settings, depending on whether macOS can prompt again. Windows does not show these macOS permission rows. A stopped driver can be ready on demand; a driver that failed to start reports the failure instead.

The Driver section provides its version and update/restart controls. The first time you enable computer use, a consent sheet explains what the agent can do and checks the required permissions.

From the CLI, inspect the same state with:

atrium computer status --check-update
atrium computer install
atrium computer grant

Start from chat

Launch an agent in an agent chat pane and enable Computer use from the composer menu. A Computer row in the session drawer shows that it is armed, then names the app while it is driving. Arming persists across turns until you turn it off; the pane and room icons also mark the capability.

When approval is required, the transcript card names the app or action and its consequence. You can allow an app for the session or choose Always allow to remember access. Approval belongs to the pane that requested it.

Scopes are deliberately narrow:

  • Window — the selected application window.
  • Desktop — the whole desktop, after the broader scope is approved.
  • Auto — atrium chooses the narrowest workable scope.
Computer-use actions, screenshots, approvals, and failures remain visible as transcript cards. Each driving chat pane shows a movable preview of its target window above the composer, with collapse and stop controls.

Computer use follows the session's permission mode. With YOLO and computer use enabled, app access, actions, batches, foreground fallback, clipboard access, and desktop scope proceed without separate computer-use approval prompts. Enabling computer use from the composer applies immediately, including while a turn is already running, and turning it off revokes the auto-approval just as immediately. Other permission modes retain their approval checks. The agent still follows your instructions and the computer-use skill; protected surfaces and the stop switch remain enforced.

Allowed apps and protected surfaces

The app allowlist is managed under Settings → Computer Use → Allowed apps or from the CLI:

atrium computer allow list
atrium computer allow add "Xcode"
atrium computer allow remove "Xcode"

An allowed app is not blanket permission for every screen it can display. Other AI hosts, terminals and script hosts, and protected system permission controls remain blocked, including in YOLO mode. Foreground input, desktop scope, clipboard access, and sensitive actions have their own approval checks in other permission modes. Settings lists protected apps and the reason they cannot be allowed.

Cursor and preview

Agent cursor marks where the agent is acting. Window actions use background input where supported; an action that needs foreground input follows the session's approval rules. The preview lives inside the driving pane. Settings lets you control the preview and cursor display and inspect every active session.

Stop immediately

Press Escape three times within 1.5 seconds in atrium to stop active computer use and lock further control. Holding the key does not count as three presses. Ordinary Escape behavior still reaches the focused surface.

Use Settings → Computer Use → Active sessions → Stop to end only that session. Stop all and lock stops the fleet and blocks new computer use until you choose Re-enable in Settings or the stop notice. These UI stops revoke computer control and interrupt the driving agent's current turn; the conversation remains available.

The CLI can release sessions without engaging that lock:

atrium computer stop --all
atrium computer end
atrium computer end --interrupt

stop --all revokes and releases all computer-use sessions; it does not lock future use or interrupt agent turns. end releases the caller's session, and end --interrupt also interrupts its driving turn. After a UI emergency stop, atrium computer unlock --yes requests re-enablement; the human approval still has to be granted.

CLI automation

The atrium computer namespace exposes app and window discovery, launch, observation, actions, clipboard operations, and verification through the same gates. It controls the local desktop; it is not a remote-desktop command through --location.

atrium computer apps
atrium computer observe --app Calculator
atrium computer do --steps '[{"click":{"label":"2"}}]'
atrium computer end

observe --app starts the session, attaches to the app, and binds its window. Use --window when you need a specific window. Observations include a screenshot and a ranked element list; element references belong to that observation. do runs ordered steps and can check a postcondition after each step. If it halts, the result says which steps already ran and provides the resulting state.

Use computer tools and computer describe <tool> to inspect available primitives, and --help for exact arguments. Screenshots and artifacts can be cleared from Settings → Computer Use → Storage. Automatic retention removes screenshots older than seven days and trims the oldest when they exceed 200 MB; stale snapshots and leases are reclaimed separately.