Self-hosted desktop app to have AI control your computer, powered by the new Claude computer use capability. Allow Claude to take over your laptop and do your tasks for you (or at least attempt to, lol). Written in Python, using PyQt.
Here, I asked it to use vim to create a game in Python, run it, and play it.
grunty.8x.compressed.mp4
Video was sped up 8x btw. Computer use is pretty slow as of today.
-
This is experimental software - It gives an AI control of your mouse and keyboard. Things can and will go wrong.
-
Tread Lightly - If it wipes your computer, sends weird emails, or orders 100 pizzas... that's on you.
Anthropic can see your screen through screenshots during actions. Hide sensitive information or private stuff.
- Literally ask AI to do ANYTHING on your computer that you do with a mouse and keyboard. Browse the web, write code, blah blah.
- Anything you can run Python on: MacOS, Windows, Linux, etc.
Get an Anthropic API key here.
# Python 3.10+ recommended
python -m venv venv
source venv/bin/activate # or `venv\Scripts\activate` on Windows
pip install -r requirements.txt
# Add API key to .env
echo "ANTHROPIC_API_KEY=your-key-here" > .env
# Run
python run.py
Ctrl + Enter
: Execute the current instructionCtrl + C
: Stop the current agent actionCtrl + W
: Minimize to system trayCtrl + Q
: Quit application
- Claude really loves Firefox. You might want to install it for better UI detection and accurate mouse clicks.
- Be specific and explicit, help it out a bit
- Always monitor the agent's actions
- Sometimes, it doesn't take a screenshot to validate that the input is selected, and types stuff in the wrong place.. Press CMD+C to end the action when this happens, and quit and restart the agent. I'm working on a fix.
Issues and PRs are most welcome! Made this is in a day so don't really have a roadmap in mind. Hmu on Twitter @ishanxnagpal if you're got interesting ideas you wanna share.