Skip to main content

Computer-Using Agent (CUA) Operator

Project description

cua-operator

Computer-Using Agent (CUA) Operator

CUA is a new and evolving technology, but it currently lacks good documentation, mature libraries, and easy-to-use tools. While some automation or remote control libraries can work with CUA, they are often hard to set up. This project aims to make it simple for anyone to try out CUA without needing to understand it's internal details or complex configurations. It supports both Windows and macOS, and lets you connect your personal computer to a CUA compatible endpoint and explore the potential of CUA more easily.

Quick Start

Use CUA on your personal computer

Get Python Ready

pip install cua-operator openai

Run the following Python script and start your journey.

from cua_operator.bridges import OpenAICuaBridge
from cua_operator.operators import LocalCuaOperator
from openai import OpenAI

client = OpenAI(
    api_key="{OPENAI_API_KEY}"
)

operator = LocalCuaOperator(bridge=OpenAICuaBridge(client))
operator.run()

Customization

CUA-Operator is built around two core concepts: operators and bridges. An operator defines how you intend to interact with the CUA, whether through a local machine, a remote device, or potentially a Docker instance. A bridge specifies the service endpoint you connect to, such as OpenAI, with potential support for alternatives like Claude.

All available operators are in the cua_operator.operators namespace.

  • Local CUA Operator: LocalCuaOperator
  • Remote CUA Operator: RemoteCuaOperatorClient and RemoteCuaOperatorServer

All available bridges are in the cua_operator.bridges namespace.

  • OpenAI CUA Bridge: OpenAICuaBridge

Samples: samples

Project details


Download files

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

Source Distribution

cua_operator-0.0.1.tar.gz (16.3 kB view details)

Uploaded Source

Built Distribution

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

cua_operator-0.0.1-py3-none-any.whl (19.6 kB view details)

Uploaded Python 3

File details

Details for the file cua_operator-0.0.1.tar.gz.

File metadata

  • Download URL: cua_operator-0.0.1.tar.gz
  • Upload date:
  • Size: 16.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cua_operator-0.0.1.tar.gz
Algorithm Hash digest
SHA256 14876f475bd2c17420ef2001b0ea23da07cbfb0479af8f047192c651cb81366a
MD5 28d95e41cb34d5e037412042052d9ab3
BLAKE2b-256 82bbde47c0ac7e4105c47a634e0a9eaec9f6382189395eb533b8fb304a3bc6e6

See more details on using hashes here.

Provenance

The following attestation bundles were made for cua_operator-0.0.1.tar.gz:

Publisher: python-publish.yml on yangyuan/cua-operator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file cua_operator-0.0.1-py3-none-any.whl.

File metadata

  • Download URL: cua_operator-0.0.1-py3-none-any.whl
  • Upload date:
  • Size: 19.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.12.9

File hashes

Hashes for cua_operator-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 1a34843dc922faf05e12ba255e3b384aed8848f69bd5fa73a0b099c158fa8a04
MD5 d3b59bc27804d18bcf50527e90f963a5
BLAKE2b-256 963164ff16ab5e7a3a7979227600af84375fd298fbffe5ab432e6e3c9e33b924

See more details on using hashes here.

Provenance

The following attestation bundles were made for cua_operator-0.0.1-py3-none-any.whl:

Publisher: python-publish.yml on yangyuan/cua-operator

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

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