Quick start
Spin up macOS sandboxes in under 5 minutes.
Sign up at use.computer; new accounts start with $100 starter credit, no card required. Copy your account API key from Settings. It starts with uc_live_....
pip install daytona-use-computerIf you installed the old use-computer package, run pip uninstall use-computer first: both packages install the same use_computer module. The import stays from use_computer import Computer.
1. Reserve a Mac mini
use.computer gives you macOS sandboxes on dedicated Apple M4, M4 Pro and M5 Pro Mac minis that you reserve for 24 hours or more. Pick an M4 (10 cores, 16 GiB), an M4 Pro (12 cores, 24 GiB) or an M5 Pro (15 cores, 24 GiB), then size each sandbox when you create it. Check the live dashboard for each model's configured price and availability; your starter credit pays for reservations.
Reserve one Mac mini from the dashboard, or reserve directly in the SDK:
import os
from use_computer import Computer
client = Computer(api_key=os.environ["USE_COMPUTER_API_KEY"])
# Reserve 1 Mac mini for 24 hours using your starter credit
reservation = client.reserve(hours=24, mini_count=1, mac_model="m4")
print(f"Reserved Mac mini: {reservation.reservation_id}")Omitting mac_model reserves an M4; use mac_model="m5-pro" for M5 Pro. Its split pool is 8 + 7 cores · 12 GiB each, while vm_layout="whole" gives one 15 vCPU / 24 GiB VM. Default creates and snapshot restores choose the available slot, so an M5 split sandbox reports either 7 or 8 vCPUs. See reservations for sizes, limits and macOS 26.2 guest base images.
2. Create and drive a macOS sandbox
Once reserved, warm macOS VMs launch in under a second. Drive the sandbox with mouse, keyboard, shell execution, screenshots, and live VNC:
import os
from use_computer import Computer
client = Computer(api_key=os.environ["USE_COMPUTER_API_KEY"])
# Create a warm macOS sandbox (under a second)
mac = client.create()
# A second sandbox can take what is left of the Mac (here 5 vCPU / 8 GiB);
# a size other than the warm VMs' boots cold, in a minute or two
# small = client.create(cpu=3, memory_gib=4)
# Run shell commands inside the macOS VM
result = mac.exec("sw_vers")
print(result.stdout)
# Type and click
mac.keyboard.type("hello from use.computer")
mac.mouse.click(x=200, y=300)
# Capture a screenshot
png = mac.screenshot.take_full_screen()
open("/tmp/screen.png", "wb").write(png)
# Live viewer URL
print(f"Live VNC view: {mac.vnc_url}")
# Delete the sandbox when finished
mac.delete()You can also use a context manager to clean up automatically on exit:
with client.create() as mac:
print(mac.exec("hostname").stdout)
mac.keyboard.type("automated agent run")
png = mac.screenshot.take_full_screen()
print(f"Watch live: {mac.vnc_url}")3. View it in your browser (noVNC)
Every running sandbox has a one-click live view. Sandboxes expose vnc_url directly, and the dashboard's Sandboxes tab has an Open button on every running VM. The viewer is a full noVNC session that you can drive with mouse and keyboard.