Automation & Ops macos-automationcomputer-usestreamlitcliclickscreen-captureanthropic-api

Mac Computer Use

Run computer-use models natively on macOS for direct screen, keyboard, mouse, and file interaction.

FollowAgents review · FARS-2.0
Not yet reviewed
See the full review method →

What does this agent do, and when should you use it?

Mac Computer Use is a macOS-native fork of Anthropic Computer Use for giving models control of a local Mac. Instead of the upstream Ubuntu Docker image, it uses native macOS commands and utilities for direct system control. The repository exposes a Streamlit interface and names Anthropic, Bedrock, and Vertex as supported LLM providers. It captures the screen, drives keyboard and mouse input through cliclick, and supports filesystem interaction and file editing. It is aimed at macOS users who can accept the permissions and safety implications of autonomous local-computer control.

After configuring API_PROVIDER, ANTHROPIC_API_KEY, WIDTH, HEIGHT, and DISPLAY_NUM in .env, the user starts the interface with streamlit run streamlit.py. The project captures the screen with native macOS commands and sends mouse and keyboard actions through cliclick; it can also interact with and edit files. Higher display resolutions are automatically scaled to recommended targets for model performance. The documented providers are Anthropic, Bedrock, and Vertex, with an Anthropic API-key configuration example.

  1. A macOS developer who wants to operate local GUI workflows through an Anthropic model in a Streamlit interface.
  2. An individual automating a desktop task where the model must inspect screenshots, click controls, and type input.
  3. A Computer Use evaluator who wants native Mac system control instead of the upstream Ubuntu Docker environment.
  4. An experimental team using a controlled Mac where a model needs to interact with the filesystem and edit files.

What are this agent's strengths and limitations?

Pros
  • Uses native macOS commands and utilities, eliminating the documented Docker requirement of the upstream approach.
  • Provides a concrete keyboard and mouse control mechanism through cliclick.
  • Includes a Streamlit interface available locally after startup.
  • Documents support for Anthropic, Bedrock, and Vertex providers.
  • Automatically scales higher screen resolutions toward documented performance targets.
Limitations
  • The README warns that the agent can control everything on the Mac, creating substantial safety exposure.
  • Only macOS Sonoma 15.7 or later is documented; support for other operating systems is not evidenced.
  • Adoption requires local Python 3.12+, Homebrew, and cliclick dependencies.
  • The shown setup requires an Anthropic API key, and the referenced Beta API may change.
  • The available documentation does not describe permission setup, recovery behavior, or action auditing.

How do you install or deploy this agent?

Prerequisites: macOS Sonoma 15.7 or later, Python 3.12+, Homebrew, and cliclick. Run:
git clone https://github.com/deedy/mac_computer_use.git
cd mac_computer_use
python3.12 -m venv venv
source venv/bin/activate
brew install cliclick
chmod +x setup.sh
./setup.sh
pip install -r requirements.txt

How do you use this agent?

Create .env in the repository root with at least:
API_PROVIDER=anthropic
ANTHROPIC_API_KEY=<key>
WIDTH=800
HEIGHT=600
DISPLAY_NUM=1
Then run streamlit run streamlit.py. The interface is available at http://localhost:8501. Recommended display sizes include 1024x768, 1280x800, and 1366x768.

How does this agent compare with similar options?

Compared with Anthropic Computer Use as described in the upstream link, which runs an Ubuntu Docker image, this fork runs natively on macOS and uses native commands and utilities for direct system control.

FAQ

Does it require Docker?
No. This fork is documented as native macOS operation rather than the upstream Ubuntu Docker-image approach.
What does it need on the machine?
The documented prerequisites are macOS Sonoma 15.7 or later, Python 3.12+, Homebrew, and cliclick; the project performs screen, keyboard, mouse, and filesystem operations.
How do I connect it to Anthropic?
Set `API_PROVIDER=anthropic` and `ANTHROPIC_API_KEY=<key>` in `.env`, then launch the Streamlit app.
Are there display constraints?
XGA, WXGA, and FWXGA resolutions are recommended. Higher resolutions are automatically scaled down to target sizes for model performance.

Related agents