> ## Documentation Index
> Fetch the complete documentation index at: https://praison.ai/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Computer Use CLI

> Command-line interface for computer automation

Automate computer tasks from the command line.

```mermaid theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
graph LR
    User([User]) --> CLI[CLI]
    CLI --> Auto[Automation]

    classDef agent fill:#8B0000,stroke:#7C90A0,color:#fff
    classDef tool fill:#189AB4,stroke:#7C90A0,color:#fff

    class Auto agent
    class User,CLI tool
    classDef agent fill:#8B0000,color:#fff
    classDef tool fill:#189AB4,color:#fff

```

## Quick Start

**1. Simple Usage**

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai-ts computer screenshot --output ./screenshot.png
```

**2. With Configuration**

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai-ts computer run "Open browser" --require-approval --browser
```

***

## Commands

### Screenshot

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Take screenshot
praisonai-ts computer screenshot --output ./screenshot.png

# With analysis
praisonai-ts computer screenshot --analyze "What do you see?"
```

### Execute Task

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Run automation task
praisonai-ts computer run "Open browser and go to google.com" \
  --require-approval \
  --model claude-3.5-sonnet
```

### Interactive Mode

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
# Start interactive computer control
praisonai-ts computer interactive \
  --require-approval \
  --browser
```

## Options

| 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

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai-ts computer run \
  "Go to github.com and search for praisonai" \
  --browser \
  --require-approval
```

### Desktop Task

```bash theme={"theme":{"light":"vitesse-light","dark":"vitesse-dark"}}
praisonai-ts computer run \
  "Open the calculator app" \
  --desktop \
  --require-approval
```

## Related

> [card] [Computer Use](https://praison.ai/docs/js/computer-use.md)
>
> SDK automation

> [card] [Tool Approval](https://praison.ai/docs/js/approval.md)
>
> Approval workflows


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.