Computer Use CLI
Command-line interface for computer automation
Automate computer tasks from the command line.
Quick Start
- Simple Usage
bash praisonai-ts computer screenshot --output ./screenshot.png - With Configuration
bash praisonai-ts computer run "Open browser" --require-approval --browser
Commands
Screenshot
# Take screenshot
praisonai-ts computer screenshot --output ./screenshot.png
# With analysis
praisonai-ts computer screenshot --analyze "What do you see?"Execute Task
# Run automation task
praisonai-ts computer run "Open browser and go to google.com" \
--require-approval \
--model claude-3.5-sonnetInteractive Mode
# Start interactive computer control
praisonai-ts computer interactive \
--require-approval \
--browserOptions
| Option | Type | Default | Description |
|---|---|---|---|
--require-approval | boolean | true | Require approval |
--browser | boolean | false | Enable browser |
--desktop | boolean | false | Enable desktop |
--timeout | number | 30000 | Action timeout |
--model | string | claude-3.5-sonnet | Vision model |
Environment Variables
| Variable | Required | Description |
|---|---|---|
OPENAI_API_KEY | Yes | For the agent |
ANTHROPIC_API_KEY | For Claude | Claude vision |
Examples
Browser Automation
praisonai-ts computer run \
"Go to github.com and search for praisonai" \
--browser \
--require-approvalDesktop Task
praisonai-ts computer run \
"Open the calculator app" \
--desktop \
--require-approval