~5 min cURL TypeScript Python | Layer | Capability | Endpoint / Interface |
|---|
| Browser DOM | Loopback Chromium CDP (browser OS user, /data/chrome-profile) | http://127.0.0.1:9222 (Playwright) |
| Vision & OS UI | Fast JPEG screenshots, AT-SPI tree, batched actions (up to 25) | GET .../desktop/screenshot?format=jpeg&quality=80, POST .../act/batch |
| Secrets | Raw LLM keys never enter VM; non-egress config write-only encrypted | POST /api/v1/egress/secrets, PATCH /api/v1/computers/{id} |
| Persistence | Survives sleep ($0 compute), restart, and image upgrades | /opt/user, Persistent Volume /data, POST .../image |
| Live viewer | 60fps Voxl embed with strict per-tenant CSP frame-ancestors | POST .../stream-token (view_only: true vs false) |
VOL_ID=$(curl -sS -X POST "https://api.miosa.ai/api/v1/volumes" \
-H "Authorization: Bearer $MIOSA_API_KEY" -H "Content-Type: application/json" \
-d '{"name":"qa-chrome-profile","size_bytes":21474836480,"backend":"local"}' | jq -r '.id // .data.id')
COMPUTER_ID=$(curl -sS -X POST "https://api.miosa.ai/api/v1/computers" \
-H "Authorization: Bearer $MIOSA_API_KEY" -H "Content-Type: application/json" \
-d '{"name":"qa-desktop-1","template_id":"miosa-desktop","vcpus":2,"memory_gib":4,"cpu_tier":"shared","settings":{"auto_wake":true},"autosize":{"enabled":true,"min_cpu":1,"max_cpu":8,"min_memory_mb":2048,"max_memory_mb":16384}}' | jq -r '.id')
curl -sS -X POST "https://api.miosa.ai/api/v1/computers/${COMPUTER_ID}/volumes" \
-H "Authorization: Bearer $MIOSA_API_KEY" -H "Content-Type: application/json" \
-d "{\"volume_id\":\"${VOL_ID}\",\"mount_path\":\"/data\"}"
curl -sS -X POST "https://api.miosa.ai/api/v1/egress/secrets" \
-H "Authorization: Bearer $MIOSA_API_KEY" -H "Content-Type: application/json" \
-d '{"name":"anthropic_qa","value":"sk-ant-...","type":"api_key","scope":"workspace","expose_as_env":"ANTHROPIC_API_KEY"}'
curl -sS -X PATCH "https://api.miosa.ai/api/v1/computers/${COMPUTER_ID}" \
-H "Authorization: Bearer $MIOSA_API_KEY" -H "Content-Type: application/json" \
-d '{"env":{"QA_BASE_URL":"https://staging.acme.example","OLD_URL":null}}'
curl -X POST "https://api.miosa.ai/api/v1/computers/${COMPUTER_ID}/stream-token" \
-H "Authorization: Bearer $MIOSA_API_KEY" -H "Content-Type: application/json" \
-d '{"view_only":true}'
curl -X POST "https://api.miosa.ai/api/v1/computers/${COMPUTER_ID}/image" \
-H "Authorization: Bearer $MIOSA_API_KEY" -H "Content-Type: application/json" \
-d '{"template_id":"tpl_qa_desktop_v2"}'