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.

334 B
Raw Blame
# docs: test="docs" prelude="spacesd,spacesd-vars"
import asyncio

from cua_sandbox import Sandbox


async def main():
    async with Sandbox.connect(url=URL, token=TOKEN) as sb:
        await sb.files.write_text("/tmp/note.txt", "hi")
        print([await sb.files.read_text("/tmp/note.txt")])
        # ['hi']


asyncio.run(main())