CUA (Computer Use Agent) provides secure desktop sandboxes where AI agents can safely operate computer interfaces. Each sandbox is an isolated desktop environment where agents can click, type, and navigate — without risking your actual system.
CUA provides secure desktop sandboxes for computer-use agents. Instead of letting AI agents operate your real computer, CUA creates isolated desktop environments where agents can safely click, type, and navigate — perfect for testing and automation without security risks.
from cua import DesktopSandbox
sandbox = DesktopSandbox(os="ubuntu")
sandbox.start()
screenshot = sandbox.screenshot()
sandbox.click(x=100, y=200)
sandbox.type("Hello from the sandbox!")
Task: "Install Firefox and visit example.com"
Agent: Opens terminal → types 'apt install firefox' →
opens Firefox → navigates to example.com → confirms
All in a disposable sandbox.
AI agents that work well with CUA.