Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.
Rust agentai-agentapplecomputer-usecomputer-use-agentcontainerizationcuadesktop-automationhacktoberfestlumemacosmanusoperatorswiftvirtualizationvirtualization-frameworkwindowswindows-sandbox
// docs: test="swift"
import Cua
let sb = try await Cua.embedded().sandboxes().connectUrl(url: "http://10.0.0.5:3211", token: "wrong-token", name: nil)
do {
_ = try await sb.spacesd(probeTimeoutMs: 5000)
} catch CuaError.Unauthenticated(let message) { // one case; any other CuaError propagates
print("rejected:", message)
}