Quickstart

Get up and running with cua-sdk in minutes!

1. Install the SDK

Follow the Installation guide to set up your environment.

2. Minimal Working Example

Create a file named main.py:

from cua_sdk import ComputerAgent

# Instantiate an agent
agent = ComputerAgent()

# Run a simple task
result = agent.run_task("Open Notepad and type 'Hello, world!'")
print(result)

3. Run Your Script

python main.py

4. Using Multiple Agents

from cua_sdk import ComputerAgent

agents = [ComputerAgent(name=f"Agent{i}") for i in range(3)]
for agent in agents:
    agent.run_task("Check system status")

5. Using Docker

See Docker Setup for running agents in containers.


Next: Configuration