Skip to content

armgit / cua

Public Imported from GitHub
0

Scale computer-use 2.0 with open-source drivers, cross-OS sandboxes, and benchmarks for training, evaluation, and data generation.

371 B
Raw Blame
// docs: test="swift"
import Cua

let spaces = try Cua.embedded().spaces()
let info = try await spaces.add(url: "http://10.0.0.5:3211", token: "TOKEN", name: "lab")  // a computer running cua-spacesd
let space = try await spaces.space(space: info.id)
let out = try await space.bash(command: "echo hi", timeoutMs: nil)
print(info.provider, out.stdout, out.exitCode ?? -1)