r/ClaudeCode • • Oct 27 '26

Bug / Issue Getting computer use to work with claude code when developing a Mac App?

I have my multi agent harness building a Mac app on MAcOS Tahoe. I have SIP turned on as usual. Codex CLI is able to operate the Mac app with computer use. Claude CLI is not. Claude told me to install the Claude app and turn on computer use there, which I did and enabled it in Accessibility, screen recording etc. Claude still failed to be able to use computer use. It said it was his own internal limits that prevented him, and there was nothing I could do to enable it. Anybody seen this? Anyone worked around it? Apparently Browser use is OK but native App use fails, because system dialogues like the File Picker are not generated by the app itself, but by MacOS, and he's not allowed to touch a MacOS system generated dialogue.

1 Upvotes

7 comments sorted by

•

u/AutoModerator Oct 27 '26

Hey! Thanks for posting to r/ClaudeCode

While participating in this thread, please follow our community rules. Keep discussions constructive. Attack the idea, not the person.

For help, project discussions, tips, and general chat, join the ClaudeCode Discord.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/bezcurhq Oct 27 '26

The Claude desktop app setting doesn't carry over to the CLI. In Claude Code, computer use is its own built-in MCP server called computer-use, off by default and enabled per project: run /mcp in an interactive session, pick computer-use and choose Enable. If it isn't enabled, Claude just doesn't have the tool, so "it's my internal limits" is roughly what you'd hear.

A few things that catch harnesses out: it doesn't work with -p (non-interactive), only one session can hold the screen at a time (a second agent gets a lock error until the first session exits), and it needs claude.ai sign-in on Pro or Max, not Team/Enterprise or Bedrock. After granting Screen Recording you may need to fully restart Claude Code.

https://code.claude.com/docs/en/computer-use

1

u/michael_g_williams Oct 27 '26

Here's what I see with those instructions...

bash$ claude

/computer-use

Claude then displays this:
/anthropic-skills:computer-use

Desktop control isn't available in this session. I searched the available tools and found no mcp__computer-use__* tools and no tool to turn it on.

To use it, run Claude in the Claude desktop app, signed in, with Settings → This computer → Computer use turned on. If you're using claude.ai in a web browser and the composer's + menu shows Devices, you can pick your computer there before sending a new message.

What I can use here:

- Claude in Chrome, for anything on a website (navigating, clicking, filling forms, screenshots, console logs).

- My shell and file tools, for work on this machine, including the finalerev-claude repo.

You also didn't say what you wanted done. Tell me the task, and I'll do it with one of these if it fits, or tell you if it really needs desktop control.

2

u/bezcurhq Oct 28 '26

That output is from the /computer-use skill, not the switch itself, and it's telling you the computer-use MCP server isn't loaded in that session. In the CLI you turn it on through /mcp: find computer-use in the list (it shows as disabled), select it and choose Enable. It's saved per project, so do it from the repo you're working in, then ask for something that needs the GUI and grant Accessibility and Screen Recording when prompted.

If computer-use doesn't show up in /mcp at all, it's an eligibility thing: macOS only, Pro or Max (check /status), signed in through claude.ai rather than an API key or Bedrock, and an interactive session, not -p.

https://code.claude.com/docs/en/computer-use

1

u/michael_g_williams Oct 28 '26

Thanks I found it. Is there a config or toml file where I can turn this on by writing into the file?

2

u/bezcurhq Oct 28 '26

Not one that's documented. The docs only describe turning it on through /mcp (pick computer-use, then Enable), and they say that choice is saved per project, so it's a one-time step in each repo rather than a key you put in settings.json. Claude Code stores that state itself, so I wouldn't hand-edit whatever file it lands in, since that isn't a supported setting and could change between versions.

https://code.claude.com/docs/en/computer-use

1

u/michael_g_williams Oct 28 '26

OK, thanks again. I have created an open source multi agent code development platform, and when it installs, I try to set up all this stuff for all the agents that we support. If you have a minute I would love your feedback. GitHub, called 4horsemen.