Surrender.py lets Claude(Computer Use) take control of your machine through a tool-based interface.
demo.mp4
There are no safety features. Run at your own risks. You need an Anthropic API key and around 0.15€ to reproduce the video above.
- 🏳️ No safety features (CTRL-C should work)
- Screenshot-Click debugging: logs where Claude clicked
- 🖥️ Full computer control (mouse, keyboard, screenshots)
- 🔧 Bash command execution & 📝 File editing capabilities
git clone https://github.com/vmerckle/Aifor-Loop.git
cd Aifor-Loop ; pip install -r requirements.txt
Only if your API key is not exported:
echo ANTHROPIC_API_KEY = "your api key here" > .env
python surrender.py "Apply for some machine learning jobs, but please don't delete my home folder by accident"
- Python 3.10+
- Anthropic API key
- Linux with X11 (for computer control features)
- Required system packages:
xdotool
scrot
orgnome-screenshot
imagemagick
Install system requirements on Fedora:
sudo dnf install xdotool scrot imagemagick
Variable | Description | Required |
---|---|---|
ANTHROPIC_API_KEY | Your Anthropic API key | Yes |
WIDTH | Screen width in pixels | No |
HEIGHT | Screen height in pixels | No |
DISPLAY_NUM | X11 display number | No |
Aifor-Loop uses a tool-based architecture where Claude can only interact with your computer through well-defined tool interfaces:
ComputerTool
: Screen, keyboard, and mouse controlBashTool
: Command executionEditTool
: File operations