Uno
Uno provider for ComputeSDK - full Linux microVMs (Firecracker) for AI agents and builds.
Every Uno machine is a full Linux microVM on Firecracker, not a container: systemd, apt, passwordless sudo and a real disk. It boots from a warm snapshot in seconds. Machines in the US region run on High-end servers, on our fastest processors.
Installation
npm install @computesdk/unoSetup
Create an API key in the Uno console (Settings → API keys) and add it to your environment:
UNO_API_KEY=your_uno_api_key
UNO_REGION=us # optional: 'us' (High-end) or 'nl'; defaults to your account's regionCreating machines needs an Uno plan. Machine sizes fit inside your plan's limits (for example, 8 vCPU / 16 GiB needs Pro or Max).
Usage
import { uno } from '@computesdk/uno'
const compute = uno({ apiKey: process.env.UNO_API_KEY, region: 'us' })
const sandbox = await compute.sandbox.create({ vcpus: 8, memoryMiB: 16384 })
const result = await sandbox.runCommand('uname -a && nproc')
console.log(result.stdout)
await sandbox.filesystem.writeFile('/tmp/hello.txt', 'Hello from Uno')
console.log(await sandbox.filesystem.readFile('/tmp/hello.txt'))
await sandbox.destroy()Configuration
create() reads the size from vcpus / cpus / cpu, memoryMiB / memMiB / memoryMb / memory and diskMiB / diskMb. Memory is rounded up to a multiple of 256 MiB. templateId selects the OS template.
How commands run
Commands run as user
unoin a loginbashshell, in the home directory. Usesudofor root.A command can run for up to 1 hour (
timeout, default 5 minutes). Long commands are long-polled, so no single HTTP response hangs on proxy time limits. Retries use an idempotency key, so a dropped connection never starts a command twice.Up to 256 KiB of stdout and 64 KiB of stderr are returned per command; if either was cut,
stderrends with an[uno] … truncatedline. Command text is limited to 64 KiB: write bigger inputs withfilesystem.writeFilefirst.filesystem.readFile,writeFileandreaddirhave no size limit: they move data in chunks, andwriteFilerenames a temp file into place only after every chunk landed.One command runs on a machine at a time. A concurrent
runCommandon the same machine is retried for a few seconds, then fails withBOX_BUSY: use one machine per parallel job, orbackground: true.
Supported
create / getById / list / destroy
✅
runCommand (cwd, env, timeout, background)
✅
filesystem (read, write, mkdir, readdir, exists, remove)
✅ via shell
getUrl
port 80 only, at https://<name>.uno4.dev
live output streaming, snapshots, templates API
not yet
Links
Uno: https://uno.place
API reference:
GET https://console.uno4.dev/api/v1/openapi.yaml
Last updated
Was this helpful?