Ai Computer Use banner
rohitg00 rohitg00

Ai Computer Use

AI community

Description

A tool that allows Claude to control Mac and iOS devices through the Anthropic API.

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

Mac & iOS Anthropic Control

A tool that allows Claude to control Mac and iOS devices through the Anthropic API.

Acknowledgments

This project builds upon and was inspired by the excellent [Anthropic Computer Use Demo](https://github.com/anthropics/anthropic-quickstarts/tree/main/computer-use-demo). The original demo provides a robust foundation for computer control through Claude, and we've extended it to support native macOS and iOS automation.

We highly recommend checking out the original demo to understand the core concepts and implementation patterns.

Features

  • Control Mac OS through native commands and GUI automation
  • Control iOS devices through Appium/XCUITest
  • Streamlit-based interface for interaction
  • Support for multiple LLM providers (Anthropic, Bedrock, Vertex)
  • Automatic screen resolution scaling
  • File system interaction capabilities

Prerequisites

  • macOS Sonoma 15.7 or later
  • Python 3.12+
  • Homebrew
  • Xcode and iOS Simulator/Device
  • Node.js and npm (for Appium)

Installation

  1. Install system dependencies:
# Install Homebrew if not installed
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

# Install required packages
brew install python@3.12 cliclick node

# Install Appium and dependencies
npm install -g appium
npm install -g appium-xcuitest-driver
  1. Install Python dependencies:
python -m venv venv
source venv/bin/activate
pip install -r requirements.txt
  1. Configure environment:
cp .env.example .env
# Edit .env with your settings

Usage

  1. Start the Streamlit interface:
streamlit run src/ui/streamlit_app.py
  1. Access the interface at http://localhost:8501

Environment Variables

  • ANTHROPIC_API_KEY: Your Anthropic API key
  • API_PROVIDER: anthropic/bedrock/vertex
  • SCREEN_WIDTH: Display width (default: 1280)
  • SCREEN_HEIGHT: Display height (default: 800)
  • IOS_DEVICE_ID: iOS device UDID (optional)

Sec