# trycua/cua — AlpLab Radar Static Code Audit

- Ring: `trial`
- Category: `agents`
- Overall score: `3.9/5`
- Implementation check: `verified`
- Maturity: `mature`
- Audited commit: `8caa4192312f` (read-only; nothing from the repository was executed)
- Reviewed at: 2026-12-02T10:57:24Z
- Repository: https://github.com/trycua/cua
- Radar entry: https://radar.alplab.co/#repo/trycua/cua
- License: `MIT`
- CI workflows: `.github/workflows`
- Tags: `computer-use`, `sandboxes`, `desktop-automation`, `virtualization`, `mcp`, `rust`

## Summary

A multi-language computer-use platform providing local VM/container sandboxes, desktop automation, a daemon, Spaces orchestration, and benchmark tooling.

## Implementation Check

README.md's SDK and Spaces claims match libs/cua/README.md's crate map and libs/python/cua-sandbox/cua_sandbox/sandbox.py's runtime-backed Sandbox API.

## When to Use

Use for a bounded pilot requiring self-hosted computer-use sandboxes or desktop-agent tooling across local runtimes. Avoid production rollout until telemetry policy and the platform-specific deployment surface are reviewed.

## Sub-scores

| Dimension | Score |
|---|---|
| quality | 4.5/5 |
| usability | 4.0/5 |
| reliability | 3.0/5 |
| security | 3.5/5 |
| integration | 4.5/5 |

## Code Evidence

- libs/cua/README.md documents Cua.embedded(), Cua.connect(), sandbox creation, service requests, forwarding, and expiring public URLs.
- libs/python/cua-sandbox/cua_sandbox/sandbox.py `Sandbox` exposes local container and VM placement plus driver, screen, shell, file, and tunnel interfaces.
- libs/cua/Cargo.toml defines a substantial Rust workspace including cua-sdk, cua-daemon, cua-vmm, cua-spaces, cua-teleport, and cua-driver integrations.
- apps/cua-spaces-desktop/src/control-server.ts `startControlServer` binds loopback only and requires a random bearer token stored owner-only.
- libs/python/cua-sandbox/tests/test_telemetry_privacy.py tests that sandbox telemetry excludes user-chosen names and reduces runtime and image metadata.
- .github/workflows/ci-test-python.yml builds the native SDK and runs a hermetic cua-sandbox test suite on PRs and main.

## Issues Found

- libs/cua/crates/cua-telemetry/src/lib.rs documents default-on analytics, which prevents an adopt verdict under the review rule.

## Key Risks

- libs/cua/crates/cua-telemetry/src/lib.rs enables product telemetry by default after first-run notice; users must opt out explicitly.
- README.md recommends curl-piped shell installers for Spaces, Driver, Lume, and the CLI.
- The repository spans Rust, Python, TypeScript, Swift, and OS-specific runtimes, increasing deployment and operational complexity.
- Cua Spaces app components use FSL-1.1-MIT while the workspace package declares MIT; confirm licensing for the intended component.

## Reviewed Files

- `README.md`
- `pyproject.toml`
- `libs/cua/README.md`
- `libs/cua/Cargo.toml`
- `apps/cua-spaces-desktop/src/control-server.ts`
- `libs/cua/crates/cua-telemetry/src/lib.rs`
- `libs/python/cua-sandbox/cua_sandbox/sandbox.py`
- `libs/python/cua-sandbox/tests/test_telemetry_privacy.py`
