LLM Computer Use Skill
Desktop automation via LLM vision. The AI sees your screen, decides what to click/type, and executes actions.
When to Use
Apply when automating desktop interactions that require visual understanding:
- Opening and controlling applications
- Clicking buttons, menus, or UI elements
- Typing text into fields
- Navigating file systems
- Browser automation
- System tasks
Requirements
- Python 3.10+
- Anthropic API key (ANTHROPIC_API_KEY environment variable)
- Windows
CLI Usage
# Navigate to skill folder first
cd .devin/skills/llm-computer-use
# Dry-run (safe, no actions executed)
python -m llm_computer_use "Click the Start button"
# Execute mode
python -m llm_computer_use -x "Open Notepad and type Hello World"
# With API key file
python -m llm_computer_use -x -k ../.tools/.api-keys.txt "Open Calculator"
Options
-x, --execute - Execute actions (default: dry-run)
-n, --max-iterations - Max iterations (default: 10, ~$0.01-0.02 each)
-m, --model - Model: claude-sonnet-4-5 (default), claude-haiku-4-5, claude-opus-4
-k, --keys-file - API keys file path
-s, --save-log - Save session log as JSON
-q, --quiet - Minimal output
Programmatic Usage
import sys
sys.path.insert(0, ".devin/skills/llm-computer-use")
from llm_computer_use import AgentSession
session = AgentSession(
task_prompt="Open Notepad",
max_iterations=5,
dry_run=False,
model="claude-sonnet-4-5"
)
summary = session.run()
print(f"Cost: ${summary['estimated_cost_usd']:.4f}")
Cost Estimate
| Model |
Cost per Iteration |
10 Iterations |
| claude-opus-4 |
~$0.05-0.10 |
~$0.50-1.00 |
| claude-sonnet-4-5 |
~$0.01-0.02 |
~$0.10-0.20 |
| claude-haiku-4-5 |
~$0.003-0.005 |
~$0.03-0.05 |
Safety
- Dry-run by default (no actions executed)
- High-risk action confirmation (Alt+F4, delete, shutdown)
- Iteration limits prevent runaway costs
- pyautogui fail-safe (move mouse to corner to abort)
Version
0.5.0
1---2name: llm-computer-use3description: LLM Computer Use Skill4---5# LLM Computer Use Skill67Desktop automation via LLM vision. The AI sees your screen, decides what to click/type, and executes actions.89## When to Use1011Apply when automating desktop interactions that require visual understanding:12- Opening and controlling applications13- Clicking buttons, menus, or UI elements14- Typing text into fields15- Navigating file systems16- Browser automation17- System tasks1819## Requirements2021- Python 3.10+22- Anthropic API key (ANTHROPIC_API_KEY environment variable)23- Windows2425## CLI Usage2627```bash28# Navigate to skill folder first29cd .devin/skills/llm-computer-use3031# Dry-run (safe, no actions executed)32python -m llm_computer_use "Click the Start button"3334# Execute mode35python -m llm_computer_use -x "Open Notepad and type Hello World"3637# With API key file38python -m llm_computer_use -x -k ../.tools/.api-keys.txt "Open Calculator"39```4041## Options4243- `-x, --execute` - Execute actions (default: dry-run)44- `-n, --max-iterations` - Max iterations (default: 10, ~$0.01-0.02 each)45- `-m, --model` - Model: claude-sonnet-4-5 (default), claude-haiku-4-5, claude-opus-446- `-k, --keys-file` - API keys file path47- `-s, --save-log` - Save session log as JSON48- `-q, --quiet` - Minimal output4950## Programmatic Usage5152```python53import sys54sys.path.insert(0, ".devin/skills/llm-computer-use")5556from llm_computer_use import AgentSession5758session = AgentSession(59 task_prompt="Open Notepad",60 max_iterations=5,61 dry_run=False,62 model="claude-sonnet-4-5"63)6465summary = session.run()66print(f"Cost: ${summary['estimated_cost_usd']:.4f}")67```6869## Cost Estimate7071| Model | Cost per Iteration | 10 Iterations |72|-------|-------------------|---------------|73| claude-opus-4 | ~$0.05-0.10 | ~$0.50-1.00 |74| claude-sonnet-4-5 | ~$0.01-0.02 | ~$0.10-0.20 |75| claude-haiku-4-5 | ~$0.003-0.005 | ~$0.03-0.05 |7677## Safety7879- Dry-run by default (no actions executed)80- High-risk action confirmation (Alt+F4, delete, shutdown)81- Iteration limits prevent runaway costs82- pyautogui fail-safe (move mouse to corner to abort)8384## Version85860.5.0