github trycua/cua agent-v0.4.53
cua-agent v0.4.53

12 hours ago

cua-agent is a general Computer-Use framework with liteLLM integration for running agentic workflows on macOS, Windows, and Linux sandboxes. It provides a unified interface for computer-use agents across multiple LLM providers with advanced callback system for extensibility.

Installation

pip install cua-agent==0.4.53

Usage

import asyncio
from agent import ComputerAgent
from computer import Computer

async def main():
  # Initialize cloud computer
  computer = Computer(
    os_type="linux",
    provider_type="cloud",
    name="your-container-name",
    api_key="your-cua-api-key"
  )

  # Initialize agent with ByteDance UI-TARS-2
  agent = ComputerAgent(
    tools=[computer],
    model="cua/bytedance/ui-tars-2",
    api_key="your-cua-api-key",
    instructions="You are a helpful assistant that can control computers",
    only_n_most_recent_images=3
  )

  # Run a task
  async for result in agent.run("Open a browser and search for Python tutorials"):
    print(result)

if __name__ == "__main__":
  asyncio.run(main())

What's Changed

New Contributors

Full Changelog: agent-v0.4.35...agent-v0.4.53

Don't miss a new cua release

NewReleases is sending notifications on new releases.