Skip to main content

Shows my svg

Python macOS Discord PyPI

Agent is a Computer Use (CUA) framework for running multi-app agentic workflows targeting macOS and Linux sandbox, supporting local (Ollama) and cloud model providers (OpenAI, Anthropic, Groq, DeepSeek, Qwen). The framework integrates with Microsoft's OmniParser for enhanced UI understanding and interaction.

Get started with Agent

from agent import ComputerAgent, AgentLoop, LLMProvider
from computer import Computer

computer = Computer(verbosity=logging.INFO)

agent = ComputerAgent(
    computer=computer,
    loop=AgentLoop.ANTHROPIC,
    # loop=AgentLoop.OMNI,
    model=LLM(provider=LLMProvider.ANTHROPIC, name="claude-3-7-sonnet-20250219"),
    # model=LLM(provider=LLMProvider.OPENAI, name="gpt-4.5-preview"),
    save_trajectory=True,
    trajectory_dir=str(Path("trajectories")),
    only_n_most_recent_images=3,
    verbosity=logging.INFO,
)

tasks = [
"""
Please help me with the following task:
1. Open Safari browser
2. Go to Wikipedia.org
3. Search for "Claude AI" 
4. Summarize the main points you find about Claude AI
"""
]

async with agent:
    for i, task in enumerate(tasks, 1):
        print(f"\nExecuting task {i}/{len(tasks)}: {task}")
        async for result in agent.run(task):
            print(result)
        print(f"Task {i} completed")

Install

cua-agent

pip install "cua-agent[all]"

# or install specific loop providers
pip install "cua-agent[anthropic]"
pip install "cua-agent[omni]"

Run

Refer to these notebooks for step-by-step guides on how to use the Computer-Use Agent (CUA):

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

cua_agent-0.1.6.tar.gz (66.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

cua_agent-0.1.6-py3-none-any.whl (89.5 kB view details)

Uploaded Python 3

File details

Details for the file cua_agent-0.1.6.tar.gz.

File metadata

  • Download URL: cua_agent-0.1.6.tar.gz
  • Upload date:
  • Size: 66.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for cua_agent-0.1.6.tar.gz
Algorithm Hash digest
SHA256 e32ca7a12339ec0ce53b0da479ad042d2a20c169b099d690f62b586de60fb341
MD5 ddfc140dfc0709efaa78e61b8c30ac2a
BLAKE2b-256 472aebf7d7ee5fab521799332686aad5b0123a3a8fa988e750f7a461283da1e2

See more details on using hashes here.

File details

Details for the file cua_agent-0.1.6-py3-none-any.whl.

File metadata

  • Download URL: cua_agent-0.1.6-py3-none-any.whl
  • Upload date:
  • Size: 89.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.10.11

File hashes

Hashes for cua_agent-0.1.6-py3-none-any.whl
Algorithm Hash digest
SHA256 a06195c469c727fd6ef9468245a855684bbc692f27ca1ab91f7e253b8754410d
MD5 1cd56fe24be87d98c41d2e052ce430ca
BLAKE2b-256 81229779a1e970827782a3e475061dc4b44b39773804301d36e98195ef7c2bfd

See more details on using hashes here.

Release history Release notifications | RSS feed

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page