Cua Cloud Python client — control and data plane for Cua Cloud desktop VM pools
Maintained. Last release 5 months ago, commits in 26 of the last 26 weeks. Weaker on release cadence and contributor spread.
$
pip install cua-traincua-train
Python client for the Cua Cloud API.
pip install cua-train
from cua_train import TrainClient
client = TrainClient.from_key(
client_id="ukey-...", # from your Cua Cloud account
client_secret="...",
)
# Control plane — claim a VM
http = client.get_async_httpx_client()
await http.post("/api/k8s/apis/osgym.cua.ai/v1alpha1/namespaces/my-pool/osgymsandboxclaims", json={...})
# Data plane — exec in the VM
await http.post("/api/svc/my-pool/my-sandbox-server/execute", json={"command": "echo hi"})