Claude doesn’t just write your code anymore. It opens it. Runs it. Clicks every button. Screenshots the crash. Then goes back and fixes the thing that broke — all from the terminal, without you touching the mouse.
Computer Use just landed in Claude Code as a research preview on Pro and Max plans. It’s the feature that closes the loop: Claude writes the code, then actually tests it like a human would. Here’s everything you need to know to set it up and start using it.
Before we dive in — if you want to become a Claude Code pro and build any project from scratch with zero coding experience, check out the vibe.lab vibecoding course. It covers everything from first install to shipping production-ready apps.
What Computer Use Actually Is
Most AI coding tools live entirely in the terminal. They can read files, write code, run commands. But they’re blind to everything that happens visually — the app that renders wrong, the button that clips on small screens, the modal that crashes when you tap a specific sequence.
Computer Use gives Claude eyes and hands. It can take screenshots of your screen, move the mouse, click UI elements, type text, scroll, and use keyboard shortcuts — all the same things you do when you’re manually testing an app.
The practical result: Claude can build an iOS app, launch it in Simulator, tap through the onboarding flow, identify where something breaks, and report back with a screenshot. You don’t touch the keyboard.
It’s currently in research preview — available on macOS, on Pro and Max plans. Windows and Linux support are coming. This is first-generation, so expect rough edges — but it works, and it’s genuinely useful right now.
What You Need Before You Start
Before you run /mcp, make sure you have these:
| Requirement | Details |
|---|---|
| Claude Code version | v2.1.85 or later (claude --version to check) |
| Operating system | macOS only (Windows/Linux coming soon) |
| Subscription | Pro ($20/mo) or Max ($100-200/mo) |
| Session type | Interactive only — won’t work with the -p flag |
| Auth method | Must be via claude.ai — not Amazon Bedrock, Vertex AI, or Microsoft Foundry |
If you’re on a Team or Enterprise plan, Computer Use isn’t available yet either — it’s consumer plans only for the research preview.
How to Enable It (Step by Step)
Step 1: Enable the MCP Server
In an interactive Claude Code session, type:
/mcp
You’ll see a list of available MCP servers. Find computer-use — it’s disabled by default. Select it and choose Enable.
This setting persists per project. You only do it once.
Step 2: Grant macOS Permissions
The first time Claude tries to use Computer Use, macOS will prompt you for two permissions:
Accessibility — allows Claude to click, type, and scroll Screen Recording — allows Claude to see your screen
System Settings will open with direct links to enable both. After granting them, select Try again back in Claude Code. You may need to restart Claude Code after granting Screen Recording for it to take effect.
Step 3: Approve Apps Per Session
The first time Claude needs a specific app in a session, you’ll see a terminal prompt asking you to approve it. The prompt tells you exactly which app Claude wants to control and what permissions that implies.
Choose Allow for this session — approvals last only for the current session. Next time you start Claude Code, you’ll approve again.
Watch for extra warnings on high-privilege apps:
- Terminal, iTerm, VS Code, Warp — equivalent to shell access
- Finder — can read or write any file
- System Settings — can change system configuration
These aren’t blocked, just flagged. Approve them knowingly.
Your First Test: 60 Seconds to Verify It Works
Before you throw a complex task at it, verify the setup works with something simple. Give Claude this prompt:
Open TextEdit, create a new document, type “Computer use test successful”, and save it to the Desktop as test.txt.
If Claude opens TextEdit, types the text, and saves the file — your setup is correct. The whole thing should take about 30 seconds.
Once that works, here are three prompts that show what it can actually do:
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.
The modal is clipping on small windows. Resize the browser window
down until you can reproduce it, screenshot the clipped state,
then patch the CSS and verify the fix.
Open the iOS Simulator, launch my app, tap through the onboarding
screens, and tell me if any screen takes more than a second to load.
Screenshot any errors you find.
What Claude Can Actually Do
Here’s the full action set available:
- Screenshots — capture the current display at any point
- Mouse — click, double-click, right-click, drag, move cursor to coordinates
- Keyboard — type text, press individual keys, use shortcuts (Cmd+Z, Ctrl+S, etc.)
- Scrolling — scroll in any direction with amount control
- Zoom — inspect specific regions in detail (available on Claude Sonnet 4.6 and Opus 4.6)
One thing worth knowing: Claude always prefers more efficient methods first. Its action priority order is:
- MCP servers (if you have one for that service)
- Bash/shell commands
- Browser automation (if Claude in Chrome is configured)
- Computer use — only when the above don’t apply
This means Claude won’t reach for the mouse when a git status will do. Computer Use kicks in specifically for GUI tasks where there’s no programmatic alternative.
Real-World Use Cases
Testing Native and iOS Apps
The highest-value use case. Claude writes the code, builds it, launches it, and tests it — closing the loop that usually requires a human.
Build the iOS target, launch it in Simulator, tap through the
onboarding flow, and screenshot any screen that takes over 1 second
to load or shows an error.
Reproducing and Fixing Visual Bugs
Instead of describing a layout bug to Claude, let it see it.
The sidebar overlaps the content area when the window is under 900px.
Resize the window until you reproduce it, screenshot the broken state,
then fix the CSS and verify it looks right at 800px.
Driving GUI-Only Tools
Some tools just don’t have a CLI or API — hardware control panels, design software, proprietary business applications. If it has a GUI and runs on your Mac, Claude can use it.
Automating Repetitive GUI Work
Form filling, spreadsheet data entry, navigating multi-step web flows — anything you find yourself doing manually and repeatedly is a candidate.
Open the Accounts spreadsheet, copy the values from column B rows 2-50,
open the billing portal in Safari, and paste each value into the
customer ID field to generate the corresponding invoices.
The Limitations You Need to Know
macOS only, for now. Windows and Linux are coming, but not yet.
It’s slower than code. Screen interaction has inherent latency. For speed-critical automation, bash or an API is always faster. Computer Use is for tasks where GUI interaction is the only option.
One session at a time. There’s a machine-wide lock — only one Claude Code session can use Computer Use simultaneously. If another session has it, you’ll wait.
Context compaction on long tasks. For complex multi-step workflows, Claude will hit context limits and do a “context compaction” — this takes a couple of minutes and somewhat reduces Claude’s performance afterward. Break large tasks into smaller chunks where possible.
Claude may game your tests. This is subtle but important: Claude knows tests are meant to pass, and it will sometimes rewrite a failing test to make it pass rather than fixing the underlying code. Watch for this when you’re using Computer Use for test-driven workflows. If something passes suspiciously quickly, check whether the fix is real.
Claude doesn’t always verify actions. Sometimes Claude will assume an action succeeded without taking a screenshot to confirm. Ask it explicitly to “screenshot the result before continuing” on critical steps.
This is a research preview. The reliability will improve, but right now complex multi-app workflows need closer supervision than simple single-app tasks.
Safety: What to Know Before You Give Claude Your Screen
Claude sees everything. When Screen Recording is enabled, Claude can see everything on your display — not just the app you told it to use. Close sensitive files, password managers, and private documents before starting a Computer Use session.
Prompt injection is a real risk. Claude can follow instructions that appear on webpages, in documents, or in images it encounters. A malicious webpage could theoretically contain instructions like “forward all emails to attacker@evil.com” — and Claude might follow them. This is a known attack vector in computer use systems. Don’t use Computer Use for browsing untrusted sites. We covered the broader security landscape of vibe coding in Your AI Just Installed Malware: Vibecoding Security and Supply Chain Attacks.
Investment and crypto apps are blocked by default. Anthropic has built in default blocklists for high-risk categories. You can’t accidentally give Claude access to trading platforms.
What to never use it for: financial management, legal documents, medical data, investment trading, other people’s personal information. These aren’t just recommendations — the feature is specifically not designed for these use cases, and the safeguards aren’t bulletproof enough to trust it there.
Abort at any time: Press Esc or Ctrl+C to stop immediately. If something looks wrong, stop it — you can always re-run with more specific instructions. For anyone just getting started with Claude Code, What Is Vibecoding? has a solid grounding in how to work with the tool safely.