Skip to content

philfung/computer-use

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Computer Use for MacOS 💻 Frame 1

A macOS app (forked from Anthropic's computer use demo for Ubuntu) demonstrating LLM-based computer use on your laptop.

Frame 1

Caution ⚠️

Computer use is a beta feature from Anthropic that has direct access to the internet and sends screenshots of your desktop to Anthropic.

Running the App

1. Ensure you have the latest Python 3 (>= 3.11) and Chrome installed, and an Anthropic API key.

2. Enable Screen Recording permissions so that this application can take screenshots of the desktop.

  • Open the Settings app → click on Privacy and Security → click on Screen and System Recording.

      Screenshot 2024-11-06 at 3 48 30 PM → Screenshot 2024-11-06 at 3 44 47 PM → Screenshot 2024-11-07 at 6 28 23 PM
  • Click the little + on the lower-left and add the Terminal application, and click on the toggle next to the app so it turns blue.

      Screenshot 2024-11-06 at 3 46 28 PM →  Screenshot 2024-11-06 at 3 47 23 PM

3. Enable Accessibility permissions so that this application can control your mouse and keyboard.

  • Open the Settings app->click on Privacy and Security->click on Accessibility.

      Screenshot 2024-11-06 at 3 48 30 PM → Screenshot 2024-11-06 at 3 44 47 PM → Screenshot 2024-11-07 at 6 29 40 PM
  • Click the little + on the lower-left and add the Terminal application, and click on the toggle next to the app so it turns blue.

      Screenshot 2024-11-06 at 3 46 28 PM →  Screenshot 2024-11-06 at 3 47 23 PM

4. Open the Terminal app and run the script.

# Do this in Terminal App
git clone https://github.com/philfung/computer-use.git
cd computer-use
chmod u+x install_and_run.sh
./install_and_run.sh

  The Computer Use app should automatically open in the Chrome browser.

    Frame 1

5. Enter your Anthropic API Key in the left panel of the Chrome application.

    Screenshot 2024-11-06 at 3 55 11 PM

6. Try Computer Use by entering commands!

For example:

"Open cnn.com and click on the latest article"


"Open the Settings app and change to Dark mode"

Talks

Resources

For more information, check out my recommended reading list on computer use.