Claude Code Computer Use on a Remote Mac or Windows PC

Claude Code computer use controls the Mac it runs on. Pair another Mac or Windows PC with PandaSI and Claude Code or Codex can see and click its desktop.

PandaSIFirst published on
A miniature film-set desk where a tiny robot types on a laptop while a glowing cable runs to a desktop computer in the next room
One agent session, a desktop in another room. That is the gap this guide covers.

Short answer: yes, Claude Code has computer use: the CLI can see and control the Mac it runs on, in an interactive session. Codex has its own Computer Use too, which controls apps on the Mac or Windows PC running its desktop app. Both built-in versions operate the computer they run on. If your Claude Code or Codex session runs somewhere else — a cloud container, a Linux server, a session you opened from your phone — and the app you need lives on a different Mac or Windows PC, you need a remote path. PandaSI provides one: pair the target computer with PandaPaw, and the agent gets screenshot, click, type and related tools for that desktop, one session at a time.

Claude Code CLI computer use Codex Computer Use PandaSI computer MCP
Which screen The Mac running the CLI The computer running the desktop app Any computer you paired through PandaPaw
Target OS macOS (Claude Desktop also covers Windows) macOS and Windows macOS and Windows
Where the agent runs Same Mac, interactive session Same computer, desktop app Anywhere: cloud sandbox, Linux server, another PC
Engines Claude Code Codex Claude Code and Codex
Concurrency One session per machine (lock file) Not documented One session per machine (lease), others get "busy"
When you step in You are at the Mac; Esc stops it You are at the computer Your live Remote Control session takes over; agent calls are refused until it ends

Sources: Claude Code computer use docs and ChatGPT / Codex Computer Use docs, both checked 2026-12-03, plus our own runs described below.

What the built-in options do well

Anthropic's computer use page describes a built-in MCP server called computer-use. You enable it from /mcp, grant macOS Accessibility and Screen Recording permissions, and approve each app per session. While Claude works, other apps are hidden, your terminal is excluded from screenshots, and pressing Esc anywhere stops it.

As of 2026-12-03 the docs list these limits:

  • It is a research preview on macOS for Pro, Max and Ultra plans, and not available on Team or Enterprise plans.
  • It requires an interactive session.
  • Only one session at a time can hold your computer; the lock is released when that session exits.

If your code and the GUI you need are on the same Mac and you are sitting at it, use the official feature. It comes with eligible Claude plans, is deeply integrated, and its per-app approval and Esc key are well designed. You do not need PandaSI for that case. Anthropic also documents computer use in the Claude Desktop app for macOS and Windows.

Codex has its own Computer Use. OpenAI added it to the Codex desktop app on macOS and Windows in 2026; the app has since merged into the ChatGPT desktop app. Per the official docs (checked 2026-12-03), it lets ChatGPT/Codex control apps on your computer on macOS and Windows, in supported regions, asking permission per app. On Windows it works in the foreground; locked use is macOS only; and you can check progress or send follow-ups from your phone with remote control. If you work in the Codex desktop app on the computer that has the app you need, use that.

When you need computer use on a different machine

We reach for a remote path when a Claude Code CLI session, a Codex CLI session or a remote Codex session needs to operate a different computer than the one it runs on. Situations we hit ourselves:

  • The agent runs in a container or on a Linux server. Our own Claude Code sessions run in a Linux container. There is no desktop in there, but the Windows build machine and the Mac with the signing keychain are on the same account.
  • The app only exists on Windows. Installers, Windows-only admin tools, a vendor's desktop client.
  • The session runs on one machine, the app on another, for example a session on your laptop that needs a tool installed only on the office PC.
  • A scheduled task needs a GUI step, such as exporting a report from a desktop app every morning.
  • You use both Claude Code and Codex and want the same desktop tools, the same machine list and the same lease in both.
PandaSI Remote Control page in English listing a paired MacBook, an office Windows PC and a build server as online, plus three Windows PCs under Needs attention with Service not running and Update required
The Remote Control page lists every computer you paired. Online ones can be used by an agent; the Needs attention cards show why a computer cannot be used yet. Machine names and addresses are replaced with placeholders, and the crop shows six of the account's computers.

How it works

Illustration: a Claude Code or Codex session sends screenshot, click and type calls through the PandaSI relay and computer MCP to a paired Mac or Windows PC; one session holds the lease
Illustration. The session never needs a desktop of its own: calls go through the relay to the computer that holds the lease.
  1. PandaPaw runs on the target computer. PandaPaw is the PandaSI desktop service. Besides connecting Claude Code and Codex, it includes a small executor that can capture the screen and send mouse and keyboard input on macOS and Windows.
  2. Your agent session gets a computer MCP server. Its tools are list_remote_machines, select_remote_machine, screenshot, zoom, ui_snapshot (Windows only, it reads the interface through UI Automation), click, type, key, drag, scroll, clipboard read/write, file read/write and release_remote_machine.
  3. Calls travel through the PandaSI relay to the computer you selected, and only to computers on your own account.
  4. The target shows a capsule at the top of the screen saying "PandaSI Agent is using this computer", so anyone sitting there knows what is happening. While an agent is working the capsule has a blue dot, and its Stop button switches Remote Control off for that computer; the setting stays off, so the agent cannot operate the computer again until you switch Remote Control back on. (During a person's Remote Control session the capsule is red, and Stop only ends that session.)

Step by step: let Claude Code use a remote desktop

1. Pair the target computer

Install PandaPaw on the Mac or Windows PC you want the agent to use and sign in with your PandaSI account (see connected devices). Then open Remote Control in PandaSI. The computer should appear with a green dot.

On a Mac target, grant PandaPaw two permissions in System Settings > Privacy & Security: Screen Recording, or screenshots fail with "screen recording permission not granted" or show only the wallpaper and menu bar with no app windows, and Accessibility, or macOS silently drops the agent's clicks and keystrokes. Restart PandaPaw after granting Screen Recording.

If it shows Service not running or Update required under Needs attention, fix that first: use the Update button or Show command on the card. The agent cannot operate a computer until its service is running and up to date.

2. Ask the agent to list machines

In a Claude Code or Codex session started through PandaSI, ask in plain words, for example: "List the computers you can control." The agent calls list_remote_machines.

When we ran this from a Claude Code session inside a Linux container on 2026-12-03, it returned one macOS machine and eight Windows machines on the account, each with a platform field and whether another session was using it. A session with no screen of its own could see every paired desktop on the account. The Remote Control screenshot above is cropped and shows only part of the same account.

3. Select one and take a screenshot

The agent calls select_remote_machine with the machine id, then screenshot. In our run it selected a Windows Server machine, reported a single 1920×1080 display through list_displays, and got back a screenshot of the live desktop. The screenshot is downscaled so the long edge is at most 1280 px, and the agent gives coordinates in that image's pixel space; PandaPaw maps them back to the real screen.

Success check: the agent can describe what is on the screen (which window is in front, what the taskbar shows). If it cannot, ask it to take one more screenshot before doing anything else.

4. Let it work, then release

Give the actual task: "On the office PC, open the export dialog in the reporting app and save the report to Downloads." The agent alternates screenshots with clicks and typing. When it is done it should call release_remote_machine. If it forgets, the lease ends by itself after a period of inactivity (150 seconds in our run), and the capsule disappears about 30 seconds after the last screen action.

To step in yourself, open the computer in Remote Control, which is live video rather than a stream of screenshots, on Mac and Windows computers. While your session is live the capsule turns red and reads "Remote Control session active", and the agent's calls are refused with machine_in_use_by_owner until you leave. You and the agent take turns; you do not share the mouse.

What can go wrong

Symptom Likely cause What to do
list_remote_machines returns nothing No paired computer is online, or remote control is switched off on it Open Remote Control and check the card; start or update PandaPaw
Mac screenshot fails with "screen recording permission not granted", or shows only the wallpaper and menu bar PandaPaw lacks Screen Recording permission Enable PandaPaw under System Settings > Privacy & Security > Screen Recording, restart PandaPaw, retry
Mac clicks and typing do nothing PandaPaw lacks Accessibility permission Enable PandaPaw under System Settings > Privacy & Security > Accessibility
machine_in_use_by_owner You (or someone on your account) are in a live Remote Control session on it End the Remote Control session, then retry
"being operated by another agent session" Another session (or a scheduled task) holds the lease Pick another computer or wait; only force-take a lease you know is stale
Clicks land in the wrong place Coordinates taken from an old screenshot, or a second monitor Take a fresh screenshot; pass display from list_displays
"write rate limit exceeded" Too many input actions too fast Let the agent slow down; the limit is enforced on the computer, not by the model
Screenshots fail or show the lock screen The target is locked PandaPaw tries to unlock automatically (on Windows by reconnecting the console session; on a Mac with a password saved for it); if that fails the agent gets a clear error. Unlock it yourself and take a fresh screenshot

Safety: treat it like handing over your mouse

Computer use is the broadest and slowest way for an agent to act, and Anthropic's docs make the same point: prefer an API, a shell command or a browser tool when one exists. For web pages, the browser extension is faster and more precise than clicking pixels on a desktop.

When you do use a remote desktop:

  • Pair only computers you own or are allowed to control. Every call is limited to machines on your account.
  • Remember the agent sees whatever is on that screen, including notifications and open documents. Close what it should not read.
  • Keep the agent's permission prompts on for write actions in sessions you are not watching.
  • To stop an agent immediately, press Stop on the blue agent capsule. That switches Remote Control off for the computer until you turn it back on. Stop on the red capsule shown during a person's Remote Control session only ends that session and leaves Remote Control on.

Which one should you use?

  • The app is on the computer you are working on: the built-in options. Claude Code CLI on a Mac, Claude Desktop on macOS or Windows, or Codex Computer Use in the desktop app.
  • A Claude Code CLI, Codex CLI or remote Codex session must operate another paired computer, for example from a cloud container, a Linux server or a scheduled task: PandaSI Computer Use.
  • Anything inside a web page: the browser tools, not desktop clicks.

Want to see your own computers in one place first? Open Remote Control after pairing, then ask your agent to list them.

Let Claude Directly Operate Your Browser: Fill Forms, Post Content, Even Drag Slider Captchas

Let Claude Directly Operate Your Browser: Fill Forms, Post Content, Even Drag Slider Captchas

Most people still use AI at the level of "you ask, it answers." PandaSI's Chrome plugin lets your Claude Code actually reach into the browser, clicking, filling, and turning pages for you — even dragging slider CAPTCHAs for you. By injecting real inputs with isTrusted=true at the kernel layer via the Chrome DevTools Protocol, plus backend-calculated human-like drag trajectories, it bypasses anti-scraping and enters cross-origin iframes. 43 operation tools, equipped with a complete set of approval cards + domain blacklist + pause switch + safety gate for operation traces.

Read article →
How to Use Claude Code Remote Control from Your Phone (2026)

How to Use Claude Code Remote Control from Your Phone (2026)

Use Claude Code Remote Control from your phone or browser. Learn the three official commands, setup limits, troubleshooting, and when PandaSI fits.

Read article →
Device Interconnect: Connect Your Devices Directly, Anywhere, Anytime – No Public IP, No Port Forwarding Hassle

Device Interconnect: Connect Your Devices Directly, Anywhere, Anytime – No Public IP, No Port Forwarding Hassle

Want to access Claude Code, SSH, or internal services on your home/office computer from outside using your phone or another computer, but stuck with no public IP, afraid to open port forwarding, and finding frp/PeanutHull configuration annoying? Device interconnection can be enabled with one click in the desktop client, adding each of your devices to your private encrypted network, giving each device a fixed private IP, making them directly connected as if they are on the same LAN no matter where you are — end-to-end encryption, zero public exposure, and one-click revocation at any time.

Read article →