Skip to main content

Unified CLI for CUA - Computer-Use Agents

Project description

CUA CLI

Unified command-line interface for CUA (Computer-Use Agents).

Installation

pip install cua-cli

Usage

# Authentication
cua auth login              # Authenticate via browser
cua auth login --api-key    # Authenticate with API key
cua auth logout             # Clear credentials
cua auth env                # Export API key to .env file

# Sandbox Management
cua sb list                 # List all sandboxes
cua sb create --os linux --size medium --region north-america
cua sb get <name>           # Get sandbox details
cua sb start <name>         # Start a stopped sandbox
cua sb stop <name>          # Stop a running sandbox
cua sb restart <name>       # Restart a sandbox
cua sb suspend <name>       # Suspend a sandbox
cua sb delete <name>        # Delete a sandbox
cua sb vnc <name>           # Open sandbox in browser

# Image Management
cua image list              # List cloud images
cua image list --local      # List local images
cua image push <name>       # Upload image to cloud
cua image pull <name>       # Download image from cloud
cua image delete <name>     # Delete cloud image

# Skills Management
cua skills list             # List recorded skills
cua skills read <name>      # Read a skill's content
cua skills record <name>    # Record a new skill
cua skills replay <name>    # Replay a skill
cua skills delete <name>    # Delete a skill
cua skills clean            # Delete all skills

# MCP Server (for AI assistants)
cua serve-mcp               # Start MCP server with all permissions
cua serve-mcp --permissions sandbox:all,computer:readonly

Installation Options

# Basic installation
pip install cua-cli

# With MCP server support
pip install cua-cli[mcp]

# With skills recording (VLM captioning)
pip install cua-cli[skills]

# Full installation
pip install cua-cli[all]

MCP Integration

To use CUA with Claude Code or other MCP-compatible AI assistants:

# Add CUA as an MCP server
claude mcp add cua -- cua serve-mcp

# With specific permissions
claude mcp add cua -- cua serve-mcp --permissions sandbox:all,computer:readonly

# With a default sandbox
claude mcp add cua -- cua serve-mcp --sandbox my-sandbox

Available Permissions

  • all - All permissions
  • sandbox:all - Full sandbox management
  • sandbox:readonly - List and get sandboxes only
  • computer:all - Full computer control
  • computer:readonly - Screenshots only
  • skills:all - Full skills management
  • skills:readonly - List and read skills only

Individual permissions: sandbox:list, sandbox:create, sandbox:delete, sandbox:start, sandbox:stop, sandbox:restart, sandbox:suspend, sandbox:get, sandbox:vnc, computer:screenshot, computer:click, computer:type, computer:key, computer:scroll, computer:drag, computer:hotkey, computer:clipboard, computer:file, computer:shell, computer:window, skills:list, skills:read, skills:record, skills:delete

Environment Variables

  • CUA_API_KEY: API key for authentication
  • CUA_API_BASE: API base URL (default: https://api.cua.ai)
  • CUA_WEBSITE_URL: Website URL for OAuth (default: https://cua.ai)
  • CUA_MCP_PERMISSIONS: Default MCP permissions (comma-separated)
  • CUA_SANDBOX: Default sandbox name for computer commands

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_cli-0.1.5.tar.gz (59.1 kB view details)

Uploaded Source

Built Distribution

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

cua_cli-0.1.5-py3-none-any.whl (67.6 kB view details)

Uploaded Python 3

File details

Details for the file cua_cli-0.1.5.tar.gz.

File metadata

  • Download URL: cua_cli-0.1.5.tar.gz
  • Upload date:
  • Size: 59.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for cua_cli-0.1.5.tar.gz
Algorithm Hash digest
SHA256 d492568ed160ea374320ad723335c8145f8f1375598a04c5287a9b7a252e6f0c
MD5 e9709c9bf7aa4ff5bb5ce4ebb858c6b0
BLAKE2b-256 2c11c982aa4f3345c82da075b34b886722e442b2f5674ebf02753cd8e8d08945

See more details on using hashes here.

File details

Details for the file cua_cli-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: cua_cli-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 67.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.9

File hashes

Hashes for cua_cli-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 df598858e12c301f40d5bd0b7e58ef0a4a8441f36a2f31c424001b6b34e006db
MD5 09d43b2695b2d5d56eb69670f544f60b
BLAKE2b-256 8ba7f82bdebe73527bc6236ff513af8c748d5a9128f4c012cb626d22bbe88d98

See more details on using hashes here.

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