Let Claude use your computer from the CLI
--- a/computer-use.md
+++ b/computer-use.md
@@ -1,4 +1,4 @@
-Computer use is a research preview on macOS that requires a Pro, Max, or Ultra plan. It is not available on Team or Enterprise plans. It requires an interactive session, so it is not available in non-interactive mode with the `-p` flag.
+Computer use is a research preview on macOS for Pro, Max, and Ultra plans. It is not available on Team or Enterprise plans. It requires an interactive session.
Computer use lets Claude open apps, control your screen, and work on your machine the way you would. From the CLI, Claude can compile a Swift app, launch it, click through every button, and screenshot the result, all in the same conversation where it wrote the code. This page covers how computer use works in the CLI. For the Desktop app on macOS or Windows, see [computer use in Desktop](</docs/en/desktop#let-claude-use-your-computer>).
@@ -74,7 +74,7 @@
Can open, change, or delete any file, and run apps and scripts| Finder
Can change system settings| System Settings
-These apps aren’t blocked. The warning lets you decide whether the task warrants that level of access. Approve Finder to let Claude click the desktop, the Dock, or a Finder window. Claude’s level of control also varies by app category: view only for browsers and trading platforms, click only for terminals and IDEs, and full access for most other apps. See [app permissions in Desktop](</docs/en/desktop#app-permissions>) for what each level lets Claude do.
+Approve Finder to let Claude click the desktop, the Dock, or a Finder window. Claude’s level of control also varies by app category: view only for browsers and trading platforms, click only for terminals and IDEs, and full access for most other apps. See [app permissions in Desktop](</docs/en/desktop#app-permissions>) for what each level lets Claude do.
## How Claude works on your screen
@@ -149,7 +149,7 @@
---|---|---
Platforms| macOS and Windows| macOS only
Enable| Toggle in [Settings](</docs/en/desktop#enable-computer-use>)| Enable `computer-use` in `/mcp`
-Denied apps list| Configurable in Settings| Not yet available
+Personal denied apps list| Configurable in Settings| Not available
Auto-unhide toggle| Optional| Always on
Dispatch integration| Dispatch-spawned sessions can use computer use| Not applicable
@@ -168,7 +168,7 @@
The server only appears on eligible setups. Check that:
* You’re on macOS. Computer use in the CLI is not available on Linux or Windows. On Windows, use [computer use in Desktop](</docs/en/desktop#let-claude-use-your-computer>) instead.
- * You’re on a Pro, Max, or Ultra plan. Run `/status` to confirm your subscription.
+ * Your plan [includes computer use](</docs/en/feature-availability#availability-by-subscription-plan>). Run `/status` to confirm your subscription.
* You’re authenticated through claude.ai. Computer use is not available with third-party providers like Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry. If you access Claude exclusively through a third-party provider, you need a separate claude.ai account to use this feature.
* You’re in an interactive session. Computer use is not available in non-interactive mode with the `-p` flag.
--- a/computer-use.md
+++ b/computer-use.md
@@ -40,7 +40,7 @@
Enable the server
-Select `computer-use` and choose **Enable**. The setting persists per project, so you only do this once for each project where you want computer use.
+Select `computer-use` and choose **Enable**. The setting persists per project.
3
--- a/computer-use.md
+++ b/computer-use.md
@@ -70,11 +70,11 @@
Warning| Applies to
---|---
-Equivalent to shell access| Terminal, iTerm, VS Code, Warp, and other terminals and IDEs
-Can read or write any file| Finder
+Can run commands on your computer| Terminal, iTerm, VS Code, Warp, and other terminals and IDEs
+Can open, change, or delete any file, and run apps and scripts| Finder
Can change system settings| System Settings
-These apps aren’t blocked. The warning lets you decide whether the task warrants that level of access. Approve Finder to let Claude click the desktop, the Dock, or a Finder window. Claude’s level of control also varies by app category: browsers and trading platforms are view-only, terminals and IDEs are click-only, and everything else gets full control. See [app permissions in Desktop](</docs/en/desktop#app-permissions>) for the complete tier breakdown.
+These apps aren’t blocked. The warning lets you decide whether the task warrants that level of access. Approve Finder to let Claude click the desktop, the Dock, or a Finder window. Claude’s level of control also varies by app category: view only for browsers and trading platforms, click only for terminals and IDEs, and full access for most other apps. See [app permissions in Desktop](</docs/en/desktop#app-permissions>) for what each level lets Claude do.
## How Claude works on your screen
Show diff (224 lines)
--- a/computer-use.md
+++ b/computer-use.md
@@ -2,11 +2,7 @@
Computer use lets Claude open apps, control your screen, and work on your machine the way you would. From the CLI, Claude can compile a Swift app, launch it, click through every button, and screenshot the result, all in the same conversation where it wrote the code. This page covers how computer use works in the CLI. For the Desktop app on macOS or Windows, see [computer use in Desktop](</docs/en/desktop#let-claude-use-your-computer>).
-##
-
-
-
-What you can do with computer use
+## What you can do with computer use
Computer use handles tasks that require a GUI: anything you’d normally have to leave the terminal and do by hand.
@@ -15,11 +11,7 @@
* **Debug visual and layout issues** : tell Claude “the modal is clipping on small windows.” Claude resizes the window, reproduces the bug, screenshots it, patches the CSS, and verifies the fix. Claude sees what you see.
* **Drive GUI-only tools** : interact with design tools, hardware control panels, the iOS Simulator, or proprietary apps that have no CLI or API.
-##
-
-
-
-When computer use applies
+## When computer use applies
Claude has several ways to interact with an app or service. Computer use is the broadest and slowest, so Claude tries the most precise tool first:
@@ -30,11 +22,7 @@
Screen control is reserved for things nothing else can reach: native apps, simulators such as the iOS Simulator, and tools without an API.
-##
-
-
-
-Enable computer use
+## Enable computer use
Computer use is available as a built-in MCP server called `computer-use`. It’s off by default until you enable it.
@@ -70,11 +58,7 @@
Build the app target, launch it, and click through each tab to make
sure nothing crashes. Screenshot any error states you find.
-##
-
-
-
-Approve apps per session
+## Approve apps per session
Enabling the `computer-use` server doesn’t grant Claude access to every app on your machine. The first time Claude needs a specific app in a session, a prompt appears in your terminal showing:
@@ -92,51 +76,27 @@
These apps aren’t blocked. The warning lets you decide whether the task warrants that level of access. Approve Finder to let Claude click the desktop, the Dock, or a Finder window. Claude’s level of control also varies by app category: browsers and trading platforms are view-only, terminals and IDEs are click-only, and everything else gets full control. See [app permissions in Desktop](</docs/en/desktop#app-permissions>) for the complete tier breakdown.
-##
-
-
-
-How Claude works on your screen
+## How Claude works on your screen
Understanding the flow helps you anticipate what Claude will do and how to intervene.
-###
-
-
-
-One session at a time
+### One session at a time
Only one session at a time can use your computer. A session takes a lock at its first computer use action and releases it when the session exits, not when the task finishes. A second session’s computer use fails with an error naming the session that holds the lock. Exit that session first.
-###
-
-
-
-Apps are hidden while Claude works
+### Apps are hidden while Claude works
When Claude starts controlling your screen, other visible apps are hidden so Claude interacts with only the approved apps. Your terminal window stays visible and is excluded from screenshots, so you can watch the session and Claude never sees its own output. When Claude finishes the turn, hidden apps are restored automatically.
-###
-
-
-
-Screenshots are downscaled automatically
+### Screenshots are downscaled automatically
Claude Code downscales every screenshot before sending it to the model. You don’t need to lower your display resolution or resize windows on Retina or other high-resolution displays. A 16-inch MacBook Pro at native Retina resolution captures at 3456×2234 and downscales to roughly 1372×887, preserving aspect ratio. There is no setting to change the target size. If on-screen text or controls are too small for Claude to read after downscaling, increase their size in the app rather than changing your display resolution.
-###
-
-
-
-Stop at any time
+### Stop at any time
The first time Claude uses your computer in each turn, a macOS notification appears: “Claude is using your computer · press Esc to stop.” Press `Esc` anywhere to abort the current action immediately, or press `Ctrl+C` in the terminal. Either way, Claude stops, unhides your apps, and returns control to you. The session keeps the computer use lock until it exits. A second notification appears when Claude is done.
-##
-
-
-
-Safety and the trust boundary
+## Safety and the trust boundary
Unlike the [sandboxed Bash tool](</docs/en/sandboxing>), computer use runs on your actual desktop with access to the apps you approve. Claude checks each action and flags potential prompt injection from on-screen content, but the trust boundary is different. See the [computer use safety guide](<https://support.claude.com/en/articles/14128542>) for best practices.
@@ -148,19 +108,11 @@
* **Global escape** : the `Esc` key aborts computer use from anywhere, and the key press is consumed so prompt injection can’t use it to dismiss dialogs.
* **Lock file** : only one session can control your machine at a time.
-##
-
-
-
-Example workflows
+## Example workflows
These examples show common ways to combine computer use with coding tasks.
-###
-
-
-
-Validate a native build
+### Validate a native build
After making changes to a macOS or iOS app, have Claude compile and verify in one pass:
@@ -170,11 +122,7 @@
Claude runs `xcodebuild`, launches the app, interacts with the UI, and reports what it finds.
-###
-
-
-
-Reproduce a layout bug
+### Reproduce a layout bug
When a visual bug only appears at certain window sizes, let Claude find it:
@@ -184,11 +132,7 @@
Claude resizes the window, captures the broken state, and reads the relevant stylesheets.
-###
-
-
-
-Test a simulator flow
+### Test a simulator flow
Drive the iOS Simulator without writing XCTest:
@@ -197,11 +141,7 @@
Claude controls the simulator the same way you would with a mouse. This flow applies to the CLI; in the Desktop app, the same request opens the [iOS Simulator pane](</docs/en/desktop-ios-simulator>) instead of screen control.
-##
-
-
-
-Differences from the Desktop app
+## Differences from the Desktop app
The CLI and Desktop surfaces share the same computer use engine, with a few differences:
@@ -213,33 +153,17 @@
Auto-unhide toggle| Optional| Always on
Dispatch integration| Dispatch-spawned sessions can use computer use| Not applicable
-##
+## Troubleshooting
-
-
-Troubleshooting
-
-###
-
-
-
-”Computer use is in use by another Claude session”
+### ”Computer use is in use by another Claude session”
Another Claude Code session holds the lock, which it keeps until it exits. Exit that session. If the other session crashed, the lock is released automatically when Claude detects the process is no longer running.
-###
-
-
-
-macOS permissions prompt keeps reappearing
+### macOS permissions prompt keeps reappearing
macOS sometimes requires a restart of the requesting process after you grant Screen Recording. Quit Claude Code completely and start a new session. If the prompt persists, open **System Settings > Privacy & Security > Screen Recording** and confirm your terminal app is listed and enabled.
-###
-
-
-
-`computer-use` doesn’t appear in `/mcp`
+### `computer-use` doesn’t appear in `/mcp`
The server only appears on eligible setups. Check that:
@@ -248,11 +172,7 @@
* You’re authenticated through claude.ai. Computer use is not available with third-party providers like Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry. If you access Claude exclusively through a third-party provider, you need a separate claude.ai account to use this feature.
* You’re in an interactive session. Computer use is not available in non-interactive mode with the `-p` flag.
-##
-
-
-
-See also
+## See also
* [Computer use in Desktop](</docs/en/desktop#let-claude-use-your-computer>): the same capability with a graphical settings page
* [Claude in Chrome](</docs/en/chrome>): browser automation for web-based tasks
--- a/computer-use.md
+++ b/computer-use.md
@@ -1,4 +1,4 @@
-Computer use is a research preview on macOS that requires a Pro or Max plan. It is not available on Team or Enterprise plans. It requires an interactive session, so it is not available in non-interactive mode with the `-p` flag.
+Computer use is a research preview on macOS that requires a Pro, Max, or Ultra plan. It is not available on Team or Enterprise plans. It requires an interactive session, so it is not available in non-interactive mode with the `-p` flag.
Computer use lets Claude open apps, control your screen, and work on your machine the way you would. From the CLI, Claude can compile a Swift app, launch it, click through every button, and screenshot the result, all in the same conversation where it wrote the code. This page covers how computer use works in the CLI. For the Desktop app on macOS or Windows, see [computer use in Desktop](</docs/en/desktop#let-claude-use-your-computer>).
@@ -244,7 +244,7 @@
The server only appears on eligible setups. Check that:
* You’re on macOS. Computer use in the CLI is not available on Linux or Windows. On Windows, use [computer use in Desktop](</docs/en/desktop#let-claude-use-your-computer>) instead.
- * You’re on a Pro or Max plan. Run `/status` to confirm your subscription.
+ * You’re on a Pro, Max, or Ultra plan. Run `/status` to confirm your subscription.
* You’re authenticated through claude.ai. Computer use is not available with third-party providers like Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry. If you access Claude exclusively through a third-party provider, you need a separate claude.ai account to use this feature.
* You’re in an interactive session. Computer use is not available in non-interactive mode with the `-p` flag.
--- a/computer-use.md
+++ b/computer-use.md
@@ -208,7 +208,7 @@
Feature| Desktop| CLI
---|---|---
Platforms| macOS and Windows| macOS only
-Enable| Toggle in **Settings > This computer > System**| Enable `computer-use` in `/mcp`
+Enable| Toggle in [Settings](</docs/en/desktop#enable-computer-use>)| Enable `computer-use` in `/mcp`
Denied apps list| Configurable in Settings| Not yet available
Auto-unhide toggle| Optional| Always on
Dispatch integration| Dispatch-spawned sessions can use computer use| Not applicable
--- a/computer-use.md
+++ b/computer-use.md
@@ -208,7 +208,7 @@
Feature| Desktop| CLI
---|---|---
Platforms| macOS and Windows| macOS only
-Enable| Toggle in **Settings > General** (under **Desktop app**)| Enable `computer-use` in `/mcp`
+Enable| Toggle in **Settings > This computer > System**| Enable `computer-use` in `/mcp`
Denied apps list| Configurable in Settings| Not yet available
Auto-unhide toggle| Optional| Always on
Dispatch integration| Dispatch-spawned sessions can use computer use| Not applicable
--- a/computer-use.md
+++ b/computer-use.md
@@ -106,7 +106,7 @@
One session at a time
-Only one session at a time can use your computer. A session takes a machine-wide lock at its first computer use action and releases it when the session exits, not when the task finishes. A second session’s computer use fails with an error naming the session that holds the lock. Exit that session first.
+Only one session at a time can use your computer. A session takes a lock at its first computer use action and releases it when the session exits, not when the task finishes. A second session’s computer use fails with an error naming the session that holds the lock. Exit that session first.
###
@@ -130,7 +130,7 @@
Stop at any time
-When Claude acquires the lock, a macOS notification appears: “Claude is using your computer · press Esc to stop.” Press `Esc` anywhere to abort the current action immediately, or press `Ctrl+C` in the terminal. Either way, Claude stops, unhides your apps, and returns control to you. The session keeps the computer use lock until it exits. A second notification appears when Claude is done.
+The first time Claude uses your computer in each turn, a macOS notification appears: “Claude is using your computer · press Esc to stop.” Press `Esc` anywhere to abort the current action immediately, or press `Ctrl+C` in the terminal. Either way, Claude stops, unhides your apps, and returns control to you. The session keeps the computer use lock until it exits. A second notification appears when Claude is done.
##
--- a/computer-use.md
+++ b/computer-use.md
@@ -90,7 +90,7 @@
Can read or write any file| Finder
Can change system settings| System Settings
-These apps aren’t blocked. The warning lets you decide whether the task warrants that level of access. Claude’s level of control also varies by app category: browsers and trading platforms are view-only, terminals and IDEs are click-only, and everything else gets full control. See [app permissions in Desktop](</docs/en/desktop#app-permissions>) for the complete tier breakdown.
+These apps aren’t blocked. The warning lets you decide whether the task warrants that level of access. Approve Finder to let Claude click the desktop, the Dock, or a Finder window. Claude’s level of control also varies by app category: browsers and trading platforms are view-only, terminals and IDEs are click-only, and everything else gets full control. See [app permissions in Desktop](</docs/en/desktop#app-permissions>) for the complete tier breakdown.
##
--- a/computer-use.md
+++ b/computer-use.md
@@ -106,7 +106,7 @@
One session at a time
-Only one session at a time can use your computer. Claude Code takes a machine-wide lock when a session performs its first computer use action. Claude Code releases it when that session exits, not when the task finishes. If another session is already using your computer, Claude Code rejects new attempts and tells you which session holds the lock. Exit that session first.
+Only one session at a time can use your computer. A session takes a machine-wide lock at its first computer use action and releases it when the session exits, not when the task finishes. A second session’s computer use fails with an error naming the session that holds the lock. Exit that session first.
###
--- a/computer-use.md
+++ b/computer-use.md
@@ -28,7 +28,7 @@
* If the task is browser work and you have [Claude in Chrome](</docs/en/chrome>) set up, Claude uses that.
* If none of those apply, Claude uses computer use.
-Screen control is reserved for things nothing else can reach: native apps, simulators, and tools without an API. In the Desktop app, running or testing an iOS app opens the dedicated [iOS Simulator pane](</docs/en/desktop-ios-simulator>) rather than screen control; from the CLI, computer use is how Claude reaches the iOS Simulator.
+Screen control is reserved for things nothing else can reach: native apps, simulators such as the iOS Simulator, and tools without an API.
##
--- a/computer-use.md
+++ b/computer-use.md
@@ -106,7 +106,7 @@
One session at a time
-Computer use holds a machine-wide lock from the first computer use action until the session that took it exits. As of v2.1.195, finishing the task doesn’t release the lock; only exiting the session does. If another Claude Code session is already using your computer, new attempts fail with a message telling you which session holds the lock. Exit that session first.
+Only one session at a time can use your computer. Claude Code takes a machine-wide lock when a session performs its first computer use action. Claude Code releases it when that session exits, not when the task finishes. If another session is already using your computer, Claude Code rejects new attempts and tells you which session holds the lock. Exit that session first.
###
--- a/computer-use.md
+++ b/computer-use.md
@@ -28,7 +28,7 @@
* If the task is browser work and you have [Claude in Chrome](</docs/en/chrome>) set up, Claude uses that.
* If none of those apply, Claude uses computer use.
-Screen control is reserved for things nothing else can reach: native apps, simulators, and tools without an API.
+Screen control is reserved for things nothing else can reach: native apps, simulators, and tools without an API. In the Desktop app, running or testing an iOS app opens the dedicated [iOS Simulator pane](</docs/en/desktop-ios-simulator>) rather than screen control; from the CLI, computer use is how Claude reaches the iOS Simulator.
##
@@ -195,7 +195,7 @@
Open the iOS Simulator, launch the app, tap through the onboarding
screens, and tell me if any screen takes more than a second to load.
-Claude controls the simulator the same way you would with a mouse.
+Claude controls the simulator the same way you would with a mouse. This flow applies to the CLI; in the Desktop app, the same request opens the [iOS Simulator pane](</docs/en/desktop-ios-simulator>) instead of screen control.
##
--- a/computer-use.md
+++ b/computer-use.md
@@ -1,4 +1,4 @@
-Computer use is a research preview on macOS that requires a Pro or Max plan. It is not available on Team or Enterprise plans. It requires Claude Code v2.1.85 or later and an interactive session, so it is not available in non-interactive mode with the `-p` flag.
+Computer use is a research preview on macOS that requires a Pro or Max plan. It is not available on Team or Enterprise plans. It requires an interactive session, so it is not available in non-interactive mode with the `-p` flag.
Computer use lets Claude open apps, control your screen, and work on your machine the way you would. From the CLI, Claude can compile a Swift app, launch it, click through every button, and screenshot the result, all in the same conversation where it wrote the code. This page covers how computer use works in the CLI. For the Desktop app on macOS or Windows, see [computer use in Desktop](</docs/en/desktop#let-claude-use-your-computer>).
@@ -244,7 +244,6 @@
The server only appears on eligible setups. Check that:
* You’re on macOS. Computer use in the CLI is not available on Linux or Windows. On Windows, use [computer use in Desktop](</docs/en/desktop#let-claude-use-your-computer>) instead.
- * You’re running Claude Code v2.1.85 or later. Run `claude --version` to check.
* You’re on a Pro or Max plan. Run `/status` to confirm your subscription.
* You’re authenticated through claude.ai. Computer use is not available with third-party providers like Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry. If you access Claude exclusively through a third-party provider, you need a separate claude.ai account to use this feature.
* You’re in an interactive session. Computer use is not available in non-interactive mode with the `-p` flag.
--- a/computer-use.md
+++ b/computer-use.md
@@ -246,7 +246,7 @@
* You’re on macOS. Computer use in the CLI is not available on Linux or Windows. On Windows, use [computer use in Desktop](</docs/en/desktop#let-claude-use-your-computer>) instead.
* You’re running Claude Code v2.1.85 or later. Run `claude --version` to check.
* You’re on a Pro or Max plan. Run `/status` to confirm your subscription.
- * You’re authenticated through claude.ai. Computer use is not available with third-party providers like Amazon Bedrock, Google Cloud Vertex AI, or Microsoft Foundry. If you access Claude exclusively through a third-party provider, you need a separate claude.ai account to use this feature.
+ * You’re authenticated through claude.ai. Computer use is not available with third-party providers like Amazon Bedrock, Google Cloud’s Agent Platform, or Microsoft Foundry. If you access Claude exclusively through a third-party provider, you need a separate claude.ai account to use this feature.
* You’re in an interactive session. Computer use is not available in non-interactive mode with the `-p` flag.
##
--- a/computer-use.md
+++ b/computer-use.md
@@ -106,7 +106,7 @@
One session at a time
-Computer use holds a machine-wide lock while active. If another Claude Code session is already using your computer, new attempts fail with a message telling you which session holds the lock. Finish or exit that session first.
+Computer use holds a machine-wide lock from the first computer use action until the session that took it exits. As of v2.1.195, finishing the task doesn’t release the lock; only exiting the session does. If another Claude Code session is already using your computer, new attempts fail with a message telling you which session holds the lock. Exit that session first.
###
@@ -130,7 +130,7 @@
Stop at any time
-When Claude acquires the lock, a macOS notification appears: “Claude is using your computer · press Esc to stop.” Press `Esc` anywhere to abort the current action immediately, or press `Ctrl+C` in the terminal. Either way, Claude releases the lock, unhides your apps, and returns control to you. A second notification appears when Claude is done.
+When Claude acquires the lock, a macOS notification appears: “Claude is using your computer · press Esc to stop.” Press `Esc` anywhere to abort the current action immediately, or press `Ctrl+C` in the terminal. Either way, Claude stops, unhides your apps, and returns control to you. The session keeps the computer use lock until it exits. A second notification appears when Claude is done.
##
@@ -225,7 +225,7 @@
”Computer use is in use by another Claude session”
-Another Claude Code session holds the lock. Finish the task in that session or exit it. If the other session crashed, the lock is released automatically when Claude detects the process is no longer running.
+Another Claude Code session holds the lock, which it keeps until it exits. Exit that session. If the other session crashed, the lock is released automatically when Claude detects the process is no longer running.
###
--- a/computer-use.md
+++ b/computer-use.md
@@ -1,9 +1,3 @@
-> ## Documentation Index
->
-> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
->
-> Use this file to discover all available pages before exploring further.
-
Computer use is a research preview on macOS that requires a Pro or Max plan. It is not available on Team or Enterprise plans. It requires Claude Code v2.1.85 or later and an interactive session, so it is not available in non-interactive mode with the `-p` flag.
Computer use lets Claude open apps, control your screen, and work on your machine the way you would. From the CLI, Claude can compile a Swift app, launch it, click through every button, and screenshot the result, all in the same conversation where it wrote the code. This page covers how computer use works in the CLI. For the Desktop app on macOS or Windows, see [computer use in Desktop](</docs/en/desktop#let-claude-use-your-computer>).
--- a/computer-use.md
+++ b/computer-use.md
@@ -1,3 +1,9 @@
+> ## Documentation Index
+>
+> Fetch the complete documentation index at: <https://code.claude.com/docs/llms.txt>
+>
+> Use this file to discover all available pages before exploring further.
+
Computer use is a research preview on macOS that requires a Pro or Max plan. It is not available on Team or Enterprise plans. It requires Claude Code v2.1.85 or later and an interactive session, so it is not available in non-interactive mode with the `-p` flag.
Computer use lets Claude open apps, control your screen, and work on your machine the way you would. From the CLI, Claude can compile a Swift app, launch it, click through every button, and screenshot the result, all in the same conversation where it wrote the code. This page covers how computer use works in the CLI. For the Desktop app on macOS or Windows, see [computer use in Desktop](</docs/en/desktop#let-claude-use-your-computer>).
--- a/computer-use.md
+++ b/computer-use.md
@@ -115,6 +115,14 @@
Apps are hidden while Claude works
When Claude starts controlling your screen, other visible apps are hidden so Claude interacts with only the approved apps. Your terminal window stays visible and is excluded from screenshots, so you can watch the session and Claude never sees its own output. When Claude finishes the turn, hidden apps are restored automatically.
+
+###
+
+
+
+Screenshots are downscaled automatically
+
+Claude Code downscales every screenshot before sending it to the model. You don’t need to lower your display resolution or resize windows on Retina or other high-resolution displays. A 16-inch MacBook Pro at native Retina resolution captures at 3456×2234 and downscales to roughly 1372×887, preserving aspect ratio. There is no setting to change the target size. If on-screen text or controls are too small for Claude to read after downscaling, increase their size in the app rather than changing your display resolution.
###
--- a/computer-use.md
+++ b/computer-use.md
@@ -1,6 +1,6 @@
Computer use is a research preview on macOS that requires a Pro or Max plan. It is not available on Team or Enterprise plans. It requires Claude Code v2.1.85 or later and an interactive session, so it is not available in non-interactive mode with the `-p` flag.
-Computer use lets Claude open apps, control your screen, and work on your machine the way you would. From the CLI, Claude can compile a Swift app, launch it, click through every button, and screenshot the result, all in the same conversation where it wrote the code. This page covers how computer use works in the CLI. For the Desktop app, see [computer use in Desktop](</docs/en/desktop#let-claude-use-your-computer>).
+Computer use lets Claude open apps, control your screen, and work on your machine the way you would. From the CLI, Claude can compile a Swift app, launch it, click through every button, and screenshot the result, all in the same conversation where it wrote the code. This page covers how computer use works in the CLI. For the Desktop app on macOS or Windows, see [computer use in Desktop](</docs/en/desktop#let-claude-use-your-computer>).
##
@@ -195,10 +195,11 @@
Differences from the Desktop app
-The CLI and Desktop surfaces share the same computer use engine. A few Desktop-specific controls aren’t yet in the CLI:
+The CLI and Desktop surfaces share the same computer use engine, with a few differences:
Feature| Desktop| CLI
---|---|---
+Platforms| macOS and Windows| macOS only
Enable| Toggle in **Settings > General** (under **Desktop app**)| Enable `computer-use` in `/mcp`
Denied apps list| Configurable in Settings| Not yet available
Auto-unhide toggle| Optional| Always on
@@ -234,7 +235,7 @@
The server only appears on eligible setups. Check that:
- * You’re on macOS. Computer use is not available on Linux or Windows.
+ * You’re on macOS. Computer use in the CLI is not available on Linux or Windows. On Windows, use [computer use in Desktop](</docs/en/desktop#let-claude-use-your-computer>) instead.
* You’re running Claude Code v2.1.85 or later. Run `claude --version` to check.
* You’re on a Pro or Max plan. Run `/status` to confirm your subscription.
* You’re authenticated through claude.ai. Computer use is not available with third-party providers like Amazon Bedrock, Google Cloud Vertex AI, or Microsoft Foundry. If you access Claude exclusively through a third-party provider, you need a separate claude.ai account to use this feature.
--- a/computer-use.md
+++ b/computer-use.md
@@ -199,7 +199,7 @@
Feature| Desktop| CLI
---|---|---
-Enable| Toggle in **Settings > Desktop app > General**| Enable `computer-use` in `/mcp`
+Enable| Toggle in **Settings > General** (under **Desktop app**)| Enable `computer-use` in `/mcp`
Denied apps list| Configurable in Settings| Not yet available
Auto-unhide toggle| Optional| Always on
Dispatch integration| Dispatch-spawned sessions can use computer use| Not applicable
Show diff (256 lines)
--- a/computer-use.md
+++ b/computer-use.md
@@ -0,0 +1,253 @@
+Computer use is a research preview on macOS that requires a Pro or Max plan. It is not available on Team or Enterprise plans. It requires Claude Code v2.1.85 or later and an interactive session, so it is not available in non-interactive mode with the `-p` flag.
+
+Computer use lets Claude open apps, control your screen, and work on your machine the way you would. From the CLI, Claude can compile a Swift app, launch it, click through every button, and screenshot the result, all in the same conversation where it wrote the code. This page covers how computer use works in the CLI. For the Desktop app, see [computer use in Desktop](</docs/en/desktop#let-claude-use-your-computer>).
+
+##
+
+
+
+What you can do with computer use
+
+Computer use handles tasks that require a GUI: anything you’d normally have to leave the terminal and do by hand.
+
+ * **Build and validate native apps** : ask Claude to build a macOS menu bar app. Claude writes the Swift, compiles it, launches it, and clicks through every control to verify it works before you ever open it.
+ * **End-to-end UI testing** : point Claude at a local Electron app and say “test the onboarding flow.” Claude opens the app, clicks through signup, and screenshots each step. No Playwright config, no test harness.
+ * **Debug visual and layout issues** : tell Claude “the modal is clipping on small windows.” Claude resizes the window, reproduces the bug, screenshots it, patches the CSS, and verifies the fix. Claude sees what you see.
+ * **Drive GUI-only tools** : interact with design tools, hardware control panels, the iOS Simulator, or proprietary apps that have no CLI or API.
+
+##
+
+
+
+When computer use applies
+
+Claude has several ways to interact with an app or service. Computer use is the broadest and slowest, so Claude tries the most precise tool first:
+
+ * If you have an [MCP server](</docs/en/mcp>) for the service, Claude uses that.
+ * If the task is a shell command, Claude uses Bash.
+ * If the task is browser work and you have [Claude in Chrome](</docs/en/chrome>) set up, Claude uses that.
+ * If none of those apply, Claude uses computer use.
+
+Screen control is reserved for things nothing else can reach: native apps, simulators, and tools without an API.
+
+##
+
+
+
+Enable computer use
+
+Computer use is available as a built-in MCP server called `computer-use`. It’s off by default until you enable it.
+
+1
+
+Open the MCP menu
+
+In an interactive Claude Code session, run:
+
+ /mcp
+
+Find `computer-use` in the server list. It shows as disabled.
+
+2
+
+Enable the server
+
+Select `computer-use` and choose **Enable**. The setting persists per project, so you only do this once for each project where you want computer use.
+
+3
+
+Grant macOS permissions
+
+The first time Claude tries to use your computer, you’ll see a prompt to grant two macOS permissions:
+
+ * **Accessibility** : lets Claude click, type, and scroll
+ * **Screen Recording** : lets Claude see what’s on your screen
+
+The prompt includes links to open the relevant System Settings pane. Grant both, then select **Try again** in the prompt. macOS may require you to restart Claude Code after granting Screen Recording.
+
+After setup, ask Claude to do something that needs the GUI:
+
+ Build the app target, launch it, and click through each tab to make
+ sure nothing crashes. Screenshot any error states you find.
+
+##
+
+
+
+Approve apps per session
+
+Enabling the `computer-use` server doesn’t grant Claude access to every app on your machine. The first time Claude needs a specific app in a session, a prompt appears in your terminal showing:
+
+ * Which apps Claude wants to control
+ * Any extra permissions requested, such as clipboard access
+ * How many other apps will be hidden while Claude works
+
+Choose **Allow for this session** or **Deny**. Approvals last for the current session. You can approve multiple apps at once when Claude requests them together. Apps with broad reach show an extra warning in the prompt so you know what approving them grants:
+
+Warning| Applies to
+---|---
+Equivalent to shell access| Terminal, iTerm, VS Code, Warp, and other terminals and IDEs
+Can read or write any file| Finder
+Can change system settings| System Settings
+
+These apps aren’t blocked. The warning lets you decide whether the task warrants that level of access. Claude’s level of control also varies by app category: browsers and trading platforms are view-only, terminals and IDEs are click-only, and everything else gets full control. See [app permissions in Desktop](</docs/en/desktop#app-permissions>) for the complete tier breakdown.
+
+##
+
+
+
+How Claude works on your screen
+
+Understanding the flow helps you anticipate what Claude will do and how to intervene.
+
+###
+
+
+
+One session at a time
+
+Computer use holds a machine-wide lock while active. If another Claude Code session is already using your computer, new attempts fail with a message telling you which session holds the lock. Finish or exit that session first.
+
+###
+
+
+
+Apps are hidden while Claude works
+
+When Claude starts controlling your screen, other visible apps are hidden so Claude interacts with only the approved apps. Your terminal window stays visible and is excluded from screenshots, so you can watch the session and Claude never sees its own output. When Claude finishes the turn, hidden apps are restored automatically.
+
+###
+
+
+
+Stop at any time
+
+When Claude acquires the lock, a macOS notification appears: “Claude is using your computer · press Esc to stop.” Press `Esc` anywhere to abort the current action immediately, or press `Ctrl+C` in the terminal. Either way, Claude releases the lock, unhides your apps, and returns control to you. A second notification appears when Claude is done.
+
+##
+
+
+
+Safety and the trust boundary
+
+Unlike the [sandboxed Bash tool](</docs/en/sandboxing>), computer use runs on your actual desktop with access to the apps you approve. Claude checks each action and flags potential prompt injection from on-screen content, but the trust boundary is different. See the [computer use safety guide](<https://support.claude.com/en/articles/14128542>) for best practices.
+
+The built-in guardrails reduce risk without requiring configuration:
+
+ * **Per-app approval** : Claude can only control apps you’ve approved in the current session.
+ * **Sentinel warnings** : apps that grant shell, filesystem, or system settings access are flagged before you approve.
+ * **Terminal excluded from screenshots** : Claude never sees your terminal window, so on-screen prompts in your session can’t feed back into the model.
+ * **Global escape** : the `Esc` key aborts computer use from anywhere, and the key press is consumed so prompt injection can’t use it to dismiss dialogs.
+ * **Lock file** : only one session can control your machine at a time.
+
+##
+
+
+
+Example workflows
+
+These examples show common ways to combine computer use with coding tasks.
+
+###
+
+
+
+Validate a native build
+
+After making changes to a macOS or iOS app, have Claude compile and verify in one pass:
+
+ Build the MenuBarStats target, launch it, open the preferences window,
+ and verify the interval slider updates the label. Screenshot the
+ preferences window when you're done.
+
+Claude runs `xcodebuild`, launches the app, interacts with the UI, and reports what it finds.
+
+###
+
+
+
+Reproduce a layout bug
+
+When a visual bug only appears at certain window sizes, let Claude find it:
+
+ The settings modal clips its footer on narrow windows. Resize the app
+ window down until you can reproduce it, screenshot the clipped state,
+ then check the CSS for the modal container.
+
+Claude resizes the window, captures the broken state, and reads the relevant stylesheets.
+
+###
+
+
+
+Test a simulator flow
+
+Drive the iOS Simulator without writing XCTest:
+
+ Open the iOS Simulator, launch the app, tap through the onboarding
+ screens, and tell me if any screen takes more than a second to load.
+
+Claude controls the simulator the same way you would with a mouse.
+
+##
+
+
+
+Differences from the Desktop app
+
+The CLI and Desktop surfaces share the same computer use engine. A few Desktop-specific controls aren’t yet in the CLI:
+
+Feature| Desktop| CLI
+---|---|---
+Enable| Toggle in **Settings > Desktop app > General**| Enable `computer-use` in `/mcp`
+Denied apps list| Configurable in Settings| Not yet available
+Auto-unhide toggle| Optional| Always on
+Dispatch integration| Dispatch-spawned sessions can use computer use| Not applicable
+
+##
+
+
+
+Troubleshooting
+
+###
+
+
+
+”Computer use is in use by another Claude session”
+
+Another Claude Code session holds the lock. Finish the task in that session or exit it. If the other session crashed, the lock is released automatically when Claude detects the process is no longer running.
+
+###
+
+
+
+macOS permissions prompt keeps reappearing
+
+macOS sometimes requires a restart of the requesting process after you grant Screen Recording. Quit Claude Code completely and start a new session. If the prompt persists, open **System Settings > Privacy & Security > Screen Recording** and confirm your terminal app is listed and enabled.
+
+###
+
+
+
+`computer-use` doesn’t appear in `/mcp`
+
+The server only appears on eligible setups. Check that:
+
+ * You’re on macOS. Computer use is not available on Linux or Windows.
+ * You’re running Claude Code v2.1.85 or later. Run `claude --version` to check.
+ * You’re on a Pro or Max plan. Run `/status` to confirm your subscription.
+ * You’re authenticated through claude.ai. Computer use is not available with third-party providers like Amazon Bedrock, Google Cloud Vertex AI, or Microsoft Foundry. If you access Claude exclusively through a third-party provider, you need a separate claude.ai account to use this feature.
+ * You’re in an interactive session. Computer use is not available in non-interactive mode with the `-p` flag.
+
+##
+
+
+
+See also
+
+ * [Computer use in Desktop](</docs/en/desktop#let-claude-use-your-computer>): the same capability with a graphical settings page
+ * [Claude in Chrome](</docs/en/chrome>): browser automation for web-based tasks
+ * [MCP](</docs/en/mcp>): connect Claude to structured tools and APIs
+ * [Sandboxing](</docs/en/sandboxing>): how Claude’s Bash tool isolates filesystem and network access
+ * [Computer use safety guide](<https://support.claude.com/en/articles/14128542>): best practices for safe computer use