Overview
This guide shows how to get started with Anthropic’s Claude Computer Use in a couple minutes using Orgo to control a virtual desktop environment.Setup
Install the required packages:Simple Usage
The simplest way to use Orgo with Claude is through the built-inprompt() method:
Tip: The simplest way to use Orgo is
computer.prompt("your instruction"). The advanced usage below is only needed if you want to build a custom agent loop.Customizing the Prompt Method
You can customize the prompt with optional parameters:Advanced Usage
For more control, you can implement your own agent loop using the Anthropic API directly:Using Claude’s Thinking Capability
Claude Sonnet 4.6 can provide its reasoning process through the thinking parameter:Tool Compatibility
Orgo provides a complete set of methods corresponding to Claude’s computer use tools:| Claude Tool Action | Orgo Method (Python) | Orgo Method (TypeScript) | Description |
|---|---|---|---|
screenshot | computer.screenshot() | await computer.screenshot() | Capture the screen (returns PIL Image/Buffer) |
screenshot | computer.screenshot_base64() | await computer.screenshotBase64() | Capture the screen (returns base64 string) |
left_click | computer.left_click(x, y) | await computer.leftClick(x, y) | Left click at coordinates |
right_click | computer.right_click(x, y) | await computer.rightClick(x, y) | Right click at coordinates |
double_click | computer.double_click(x, y) | await computer.doubleClick(x, y) | Double click at coordinates |
type | computer.type(text) | await computer.type(text) | Type text |
key | computer.key(key_sequence) | await computer.key(keySequence) | Press keys (e.g., “Enter”, “ctrl+c”) |
scroll | computer.scroll(direction, amount) | await computer.scroll(direction, amount) | Scroll in specified direction |
wait | computer.wait(seconds) | await computer.wait(seconds) | Wait for specified seconds |
Claude Sonnet 4.6 vs Older Models
When using different Claude models, use the appropriate tool type:- For Claude Sonnet 4.6 / Opus 4.6:
"type": "computer_20251124"with betas["computer-use-2025-11-24", "computer-use-2025-01-24"] - For Claude Sonnet 4.5:
"type": "computer_20250124"with betas["computer-use-2025-01-24"]
TypeScript users: All methods are async and must be awaited. The TypeScript SDK uses camelCase for method names (e.g.,
leftClick instead of left_click).Video Tutorial
Here is a video version showing how to set up Claude Computer Use in 30 seconds:
You can follow the video tutorial above or use this written guide