← Blog

Run Claude computer use on Orgo

Give Claude a remote desktop with the Orgo Python SDK.

Updated

Claude decides what to click and type. Orgo provides the remote desktop. The Python SDK connects the two.

This example uses Orgo Python SDK 0.0.47 and your own Anthropic API key, and sets the display size from the computer's screenshot.

Set up

You need Python 3.10 or newer, an Orgo account with room for a computer, and an Anthropic API key.

Create a virtual environment. On macOS or Linux:

bash
python3 -m venv .venv
source .venv/bin/activate
python -m pip install "orgo==0.0.47" anthropic python-dotenv

On Windows PowerShell, activate it with .venv\Scripts\Activate.ps1 instead.

Create a .env file next to your script and keep it out of version control.

dotenv
ORGO_API_KEY=your_orgo_api_key
ANTHROPIC_API_KEY=your_anthropic_api_key

Run a small task

Save this as computer_use.py. It creates a temporary computer and deletes it when the run ends, including when the agent raises an error. Copy off anything you want to keep before cleanup.

python
from dotenv import load_dotenv
from orgo import Computer
 
load_dotenv()
computer = Computer()
 
try:
    width, height = computer.screenshot().size
    computer.prompt(
        "Open the browser and visit https://example.com. "
        "Read the heading, then stop.",
        provider="anthropic",
        model="claude-sonnet-4-6",
        display_width=width,
        display_height=height,
        max_iterations=15,
    )
finally:
    computer.destroy()
bash
python computer_use.py

You can watch the desktop in the Orgo dashboard while the task runs. Anthropic bills the model usage; Orgo bills the computer.

The model is named because SDK defaults and provider availability change separately. Sonnet 4.6 uses Anthropic's earlier computer tool, which this SDK version implements. For newer tool versions, follow Anthropic's computer use tool reference and keep the model, tool version and SDK in step.

Which provider runs the loop

In this SDK version, leaving out provider selects Orgo's hosted agent. provider="anthropic" runs the loop through your Anthropic account. Having an Anthropic key in your environment does not switch providers by itself.

To work on an existing desktop, use Computer(computer_id="your_computer_id") and leave out the destroy() call.

When a task goes wrong

  • Clicks miss their target: check the screenshot dimensions. If your own loop resizes images, translate the returned coordinates back to desktop pixels.
  • The model repeats itself: set a step limit and look at the last screenshot. More steps rarely fix a blocked task.
  • A model request fails: check the model ID, your account's access and the tool version before changing desktop code.

Start with a result you can check, such as opening a page and reading its heading.

Your own loop

Use screenshot(), left_click(), type(), key() and bash() when you want to control planning and execution yourself. You can replace the agent loop and keep the computer.

See the Orgo integration guide and the SDK on PyPI. The original video walkthrough shows an earlier version of this setup.