# MIOSA Documentation

> MIOSA is the hardware-isolated compute and operating layer for AI agents: SOMA jailed KVM microVMs, code sandboxes, full CUA Linux desktops with 60fps white-label Voxl streaming, brokered egress secrets, managed Postgres/Redis/S3, AI token gateway, Forge Git+CI, and transparent per-second billing.

Canonical agent indexes: https://miosa.ai/llms.txt and https://miosa.ai/docs/llms.txt (both served as `text/markdown; charset=utf-8`).
Every docs page has a clean Markdown twin: add `.md` to the page URL, or send `Accept: text/markdown` to the page URL.
The whole documentation in one file is https://miosa.ai/llms-full.txt. OpenAPI schema: https://miosa.ai/openapi.yaml. Live pricing JSON: https://api.miosa.ai/api/v1/pricing.
The HTML docs are at https://miosa.ai/docs.

Rules for agents that change MIOSA resources:

- Run `miosa capabilities --json`, `miosa app inspect`, and `miosa app plan` before reconstructing a workflow from old examples.
- Resolve one exact organization, workspace, application, and environment before mutating resources.
- Reuse the linked persistent sandbox unless it is proven terminal. Do not replace resources because an identifier or route was not resolved.
- Use `miosa app preview` to create and test an immutable candidate release. Preview never promotes production.
- Verify and promote one exact release ID. Never promote an inferred latest release.
- Call a release live only when the active release, running artifact digest, route contract, placement, data bindings, and required configuration agree.
- Recover interrupted operations with the recorded operation ID and idempotency key instead of starting duplicates.
- Use URLs returned by MIOSA. Do not construct preview, deployment, or custom-domain hostnames.

If an automated fetcher is blocked by Cloudflare on miosa.ai, the same paths are served at https://miosa.roberto-c49.workers.dev.

## Core compute primitives

- **SOMA Jailed KVM MicroVMs**: Open-source Rust VMM (`runtime: "soma" | "firecracker" | "auto"`), dedicated Linux kernel + jailer per VM, fast certified snapshot restore. [SOMA](https://miosa.ai/docs/soma.md) | [Runtimes](https://miosa.ai/docs/soma/choosing-a-runtime.md)
- **Sandboxes**: Code-execution microVMs (`POST /api/v1/sandboxes`), exec + SSE streaming exec, files API, live preview URLs, checkpoints/forks, built-in Chrome. [Sandboxes](https://miosa.ai/docs/develop/sandboxes.md) | [API](https://miosa.ai/docs/api-reference/sandboxes/create.md)
- **Computers (Desktops)**: Persistent Linux desktop VMs (`template_type: "miosa-desktop"`) for CUA, browser agents, human takeover, and 60fps streaming. [Computers](https://miosa.ai/docs/computers/overview.md) | [vs Sandbox](https://miosa.ai/docs/computers/vs-sandbox.md)
- **Custom Dockerfile Templates**: Built-in + workspace-built templates (`GET /api/v1/sandbox-templates?include_aliases=true`, pass `template_id` on create). [Templates](https://miosa.ai/docs/develop/templates.md) | [API](https://miosa.ai/docs/api-reference/sandbox-templates.md)
- **Persistent Volumes**: Host-local attachable block storage surviving VM restarts (SQLite, caches, model weights). [Volumes](https://miosa.ai/docs/data/volumes.md)
- **Live Zero-Reboot Elastic Autoscale (`virtio-mem`)**: Live vCPU (cgroup quota) + RAM (`virtio-mem` hotplug/unplug) scaling on running SOMA/Firecracker VMs without reboot. [Sizing](https://miosa.ai/docs/develop/sandboxes/sizing.md)
- **Custom Sizing (`1..32 vCPU / 1..64 GiB`)**: Arbitrary vCPU/RAM shapes or presets (`micro`, `tiny`, `xs`, `small`, `quad`, `medium`, `large`, `xl`) on one linear rate. [Sizing](https://miosa.ai/docs/develop/sandboxes/sizing.md)

## Computer-use (CUA) desktop API

Base: `https://api.miosa.ai/api/v1/computers/{id}/desktop` (`Authorization: Bearer $MIOSA_API_KEY`; core actions also on `https://sandboxes.miosa.ai`).

| Action | Endpoint | Payload / Query |
|---|---|---|
| Screenshot (PNG/JPEG) | `GET /screenshot?format=jpeg&quality=80` | PNG default; `format=jpeg&quality=80` for compact vision frames (sandbox browser: `GET /api/v1/sandboxes/{id}/browser/screenshot?format=jpeg&encoding=base64`) |
| Region zoom | `POST /screenshot/region` | `{ "x", "y", "width", "height" }` |
| Batch (up to 25 actions) | `POST /act/batch` | `{ "actions": [ ... ] }` in one round trip |
| AT-SPI tree / Window state | `GET /accessibility-tree`, `GET /window-state` | Nested AT-SPI JSON; `/window-state` returns screenshot + tree in parallel |
| Click / Right-click | `POST /click` | `{ "x", "y", "button": "left" | "right" | "middle" }` (`right_click`) |
| Double-click / Drag / Scroll | `POST /double-click`, `POST /drag`, `POST /scroll` | `{ x, y }`; `{ from_x, from_y, to_x, to_y }`; `{ x, y, direction, clicks }` (`double_click`) |
| Type / Key / Hotkey | `POST /type`, `POST /key`, `POST /hotkey` | `{ text, delay }`; `{ key: "Return" | "ctrl+a" }`; `{ keys: ["ctrl","shift","t"] }` |
| Clipboard | `GET /clipboard`, `POST /clipboard` | `{ "text": "..." }` |
| Low-level & Windows | `/move`, `/mouse-down`, `/mouse-up`, `/key-down`, `/key-up`, `/windows`, `/window/focus`, `/launch`, `/cursor`, `/screen-size`, `/wait` | Fine-grained pointer/key + window control |

- **Chrome CDP / Playwright (`127.0.0.1:9222`)**: Connect Playwright/Puppeteer to `http://127.0.0.1:9222` (`MIOSA_BROWSER_CDP_URL`, `PLAYWRIGHT_CDP_URL`) inside any Sandbox or Computer to drive the live watched session. [CDP](https://miosa.ai/docs/browser-use/cdp.md)
- **White-Label 60fps Voxl Embed + Strict Tenant `CSP frame-ancestors`**: Mint short-lived stream URLs server-side (`GET /api/v1/computers/{id}/urls` or `POST /api/v1/computers/{id}/embed`) with per-tenant `CSP frame-ancestors` and zero MIOSA branding. Never expose `MIOSA_API_KEY` in frontend code. [Embedding](https://miosa.ai/docs/computers/embedding.md) | [White-Label](https://miosa.ai/docs/platform/white-label.md) | [Desktop API](https://miosa.ai/docs/api-reference/desktop.md)

## Enterprise security and platform primitives

- **Brokered Egress Secrets**: Store keys in MIOSA (`sandbox.secrets.set`); VMs only see `miosa-tok-*` placeholders and real secrets are injected at egress — keys never enter the VM. [Secrets](https://miosa.ai/docs/security/secrets.md)
- **Network Egress Allowlists**: Audit-only by default (logs all outbound hosts); reversible one-click `enforce` allowlist lockdown. [Network](https://miosa.ai/docs/security/network.md)
- **MIOSA Connect (OAuth & MCP)**: Managed OAuth (GitHub, Google, Slack) with auto-refresh, outbound managed tool servers, and hosted MCP server at `https://api.miosa.ai/api/v1/mcp` (Streamable HTTP, 151 tools for Claude Code, Codex, Cursor, Windsurf, OSA). [Connect](https://miosa.ai/docs/security/connect-accounts.md) | [MCP](https://miosa.ai/docs/mcp.md)
- **Managed Databases**: Postgres, Redis, MySQL, MongoDB, Qdrant with auto-bindings and measured per-second billing capped at size price. [Data](https://miosa.ai/docs/data/overview.md)
- **S3 Object Storage**: S3-compatible buckets (`$0.0162/GiB-mo`) and static sites. [Storage](https://miosa.ai/docs/data/storage.md)
- **AI Token Gateway**: Unified OpenAI + Anthropic gateway (`https://api.miosa.ai/api/v1/cyber`); per-1M-token rates in `GET /api/v1/pricing` under `ai.models` and [Pricing](https://miosa.ai/pricing#ai-models).
- **Forge Git + CI**: Private Git repos, PRs, branch policies, Forge Automations CI, and Forge Delivery. [Forge](https://miosa.ai/docs/forge.md)
- **Compliance & Encryption**: HIPAA BAA (Enterprise), SOC 2 controls, and LUKS2 512-bit encryption at rest. [Security](https://miosa.ai/docs/security.md) | [Compliance FAQ](https://miosa.ai/docs/faq/security-and-compliance.md)

## Transparent per-second billing and CPU tiers

- **Live price book**: `GET https://api.miosa.ai/api/v1/pricing` (alias `/api/v1/compute/pricing`) — JSON sizes, `cpu_tiers`, `ai.models`, and plans.
- **Per-second metering; pause stops compute billing**: `$0/sec` compute while paused/stopped. Running disk `$0.09/GiB-mo`, paused disk/snapshots `$0.018/GiB-mo`, buckets `$0.0162/GiB-mo`, egress `$0.054/GB`, builds free.
- **Linear formula**: `$0.027216/vCPU-hr` (`$0.00000756/vCPU-sec`) + `$0.0087075/GiB-hr` (`$0.00000241875/GiB-sec`) for all presets and custom `1..32 vCPU / 1..64 GiB` shapes (Sandboxes and Computers identical).
- **CPU tiers**: `Eco` (`0.30x` vCPU / `0.35x` RAM, `8:1` idle-burst, `300s` auto-sleep) | `Shared` (standard rate: `small` 2c/4G `$0.0893/hr`, `medium` 4c/8G `$0.1785/hr`, `large` 8c/16G `$0.3570/hr`, `xl` 16c/32G `$0.7141/hr`) | `Dedicated` (pinned vCPU, `1.5x` vCPU rate, `$0.040824/vCPU-hr`, see `cpu_tiers`) | `Elastic` (SOMA live `virtio-mem` autoscale `1c/1G -> 32c/64G`, zero reboot). [Pricing](https://miosa.ai/docs/pricing.md)
- **Plans**: Free (`$0`, `$1` usage), Developer (`$20`, `$20`), Business (`$500`, `$500`), Enterprise (`$2,000`, `$2,000`). Plans cap concurrency/max size, never unit prices.

## Quickstarts (copy-paste)

```bash
# Live pricing (no auth)
curl -s https://api.miosa.ai/api/v1/pricing | jq .

# Create & exec in a SOMA sandbox
SBX=$(curl -s -X POST https://api.miosa.ai/api/v1/sandboxes -H "Authorization: Bearer $MIOSA_API_KEY" -H "Content-Type: application/json" -d '{"name":"agent-box","size":"small","runtime":"soma"}' | jq -r .id)
curl -s -X POST "https://api.miosa.ai/api/v1/sandboxes/$SBX/exec" -H "Authorization: Bearer $MIOSA_API_KEY" -H "Content-Type: application/json" -d '{"command":"uname -a"}'

# CUA desktop: JPEG screenshot, region zoom, AT-SPI tree, batch (<=25), 60fps Voxl embed URL
curl -s "https://api.miosa.ai/api/v1/computers/$CID/desktop/screenshot?format=jpeg&quality=80" -H "Authorization: Bearer $MIOSA_API_KEY" -o screen.jpg
curl -s -X POST "https://api.miosa.ai/api/v1/computers/$CID/desktop/screenshot/region" -H "Authorization: Bearer $MIOSA_API_KEY" -H "Content-Type: application/json" -d '{"x":120,"y":80,"width":640,"height":360}' -o zoom.png
curl -s "https://api.miosa.ai/api/v1/computers/$CID/desktop/accessibility-tree" -H "Authorization: Bearer $MIOSA_API_KEY" | jq .
curl -s -X POST "https://api.miosa.ai/api/v1/computers/$CID/desktop/act/batch" -H "Authorization: Bearer $MIOSA_API_KEY" -H "Content-Type: application/json" -d '{"actions":[{"type":"click","x":640,"y":420,"button":"left"},{"type":"type","text":"https://miosa.ai"},{"type":"key","key":"Return"}]}'
curl -s "https://api.miosa.ai/api/v1/computers/$CID/urls" -H "Authorization: Bearer $MIOSA_API_KEY" | jq '{desktop_url, expires_at}'
```

```ts
// npm install @miosa/sdk  (CUA toolset: @miosa/sdk/computer-use)
import { Miosa } from "@miosa/sdk";
const miosa = new Miosa({ apiKey: process.env.MIOSA_API_KEY! });
const c = await miosa.computers.create({ name: "cua-1", template_type: "miosa-desktop", size: "small" });
await c.start(); await c.screenshot(); await c.leftClick(640, 480); await c.type("hello"); await c.hotkey("ctrl", "s");
const { desktop_url } = await c.urls(); // short-lived white-label Voxl iframe URL
```

```python
# pip install miosa
import os; from miosa import Miosa
client = Miosa(api_key=os.environ["MIOSA_API_KEY"])
sbx = client.sandboxes.create(name="agent-py", size="small"); sbx.wait_until_ready()
sbx.secrets.set(name="openai_key", value=os.environ["OPENAI_API_KEY"], expose_as_env="OPENAI_API_KEY") # brokered at egress
# Playwright CDP inside VM: playwright.chromium.connect_over_cdp("http://127.0.0.1:9222")
```

```json
{ "mcpServers": { "miosa": { "url": "https://api.miosa.ai/api/v1/mcp", "headers": { "Authorization": "Bearer msk_u_..." } } } }
```

## Get started

- [MIOSA Documentation](https://miosa.ai/docs.md): Build, preview, deploy, prove, and operate AI-generated applications on MIOSA sandboxes, computers, Docker Host, and white-label domains.
- [Quickstart](https://miosa.ai/docs/quickstart.md): Install the CLI, start a sandbox, let an agent build something inside it, and open it at a live URL.
- [Sandbox to deployment](https://miosa.ai/docs/quickstart/sandbox-to-deployment.md): The full first walkthrough: create a sandbox, write code, preview it live, publish to production, and prove the deployment is running.
- [Agent-driven build](https://miosa.ai/docs/quickstart/agent-driven-build.md): Dispatch work to your agent, stream events, and collect artifacts from your backend, tagging every resource with your own customer IDs.
- [Docker Host](https://miosa.ai/docs/quickstart/app-engine.md): Run containerized applications on a workspace Docker Host host, then confirm the app is live.
- [Install and authenticate](https://miosa.ai/docs/cli/install.md): Install the miosa CLI from npm, Homebrew, the install script or a release archive on macOS, Linux and Windows, verify 2.3, then sign in.
- [Sandboxes or Computers?](https://miosa.ai/docs/sandboxes-or-computers.md): Pick where your app or agent runs on MIOSA: a Sandbox for code, previews and a built-in browser, a Computer for a full desktop, Docker Host to publish.
- [Build and deploy a Next.js app](https://miosa.ai/docs/learn/first-production-app.md): Build a small Next.js app in a Sandbox, preview it, publish it as an immutable Deployment, prove it is live, connect a custom domain, and roll back safely - with the miosa CLI 2.x and the SDKs.
- [What you can build with MIOSA](https://miosa.ai/docs/use-cases.md): Concrete product patterns for MIOSA sandboxes, computers, agent runtimes, generated artifacts, previews, and deployments.

## Services & projects

- [Projects](https://miosa.ai/docs/projects.md): Group the resources for one app, site, or deliverable inside a Workspace, without becoming a runtime.
- [Project lifecycle](https://miosa.ai/docs/projects/lifecycle.md): Create a project, add resources, configure environments and secrets, deploy, then retire it.
- [Project resources](https://miosa.ai/docs/projects/resources.md): The project record, everything that attaches to a project, and how a project maps to your own platform.
- [Members and usage](https://miosa.ai/docs/projects/members-and-usage.md): Project members, permissions, usage attribution, the operating checklist, and common mistakes.
- [Services](https://miosa.ai/docs/services/overview.md): Run web services, workers, private services and static sites in a project, with releases, variables, domains and rollback.
- [Services quick start](https://miosa.ai/docs/services/quickstart.md): Take a repository to a live URL, add Postgres and Redis, add a worker, attach a domain, read a failed release and roll back.
- [Services and types](https://miosa.ai/docs/services/services.md): The source, settings, address and limits of a web service, worker, private service, static site, cron job and database service.
- [Static sites from Git](https://miosa.ai/docs/services/static.md): Build a static site from a repository and serve it from the static lane, with an optional build command and output directory.
- [Service settings as code](https://miosa.ai/docs/services/config-file.md): Put a service's settings in a file at the repository root, so the repository says how the service runs and the console shows where each value came from.
- [Services variables](https://miosa.ai/docs/services/variables.md): Set a service's variables, reference another service's, share variables across an environment, and generate secrets.
- [Services environments](https://miosa.ai/docs/services/environments.md): Every project starts with a production environment. Fork it into staging or a preview, and switch between environments on the canvas.
- [Preview environments](https://miosa.ai/docs/services/previews.md): Open a pull request and MIOSA deploys it to its own environment with its own addresses, then removes it when the pull request closes.
- [Services releases](https://miosa.ai/docs/services/releases.md): Deploy a service, follow the release state machine, read a failure reason, promote or roll back, and cancel a release.
- [Moving from Railway](https://miosa.ai/docs/migrate/railway.md): Bring a Railway project to MIOSA with one reviewed plan, every environment in its own Deploy target, services created stopped, and an exact list of what carries over and what you finish by hand.
- [Services replicas and scaling](https://miosa.ai/docs/services/replicas.md): Set how many replicas a service runs, where, and how large they are, and what a scale change does to the running release.
- [Dedicated vCPU](https://miosa.ai/docs/services/dedicated-vcpu.md): Run a service on vCPUs that are one hardware thread each and never shared: sizes, prices, and how to select one.
- [Services logs](https://miosa.ai/docs/services/logs.md): Read a service's runtime logs per replica, the build log of a release, and the events that led to its state.
- [Service metrics](https://miosa.ai/docs/services/metrics.md): Requests, errors and latency per service, and what the series does not measure.
- [Services CLI](https://miosa.ai/docs/services/cli.md): Every miosa service command and flag, from create and deploy to variables, domains, releases and rollback.
- [Services SDKs](https://miosa.ai/docs/services/sdk.md): TypeScript and Python methods for services, releases, variables, addresses and projects.
- [Docker Host](https://miosa.ai/docs/docker-host/overview.md): Your own always-on host that runs apps published from a sandbox, with immutable versions, health checks and rollback. Formerly App Engine.
- [Docker Hosts](https://miosa.ai/docs/docker-host/hosts.md): How a workspace Docker Host works: lifecycle states, publishing flow, proof, updates, recovery, runtime boundary, and domains.
- [Docker Host templates](https://miosa.ai/docs/docker-host/templates.md): Curated app shapes for Docker Host - Dockerfile, Compose, command, port, environment, and persistence defaults.
- [Docker Host](https://miosa.ai/docs/docker-host/docker-deploy.md): Run many small apps on one always-on workspace host while MIOSA owns routing, domains, and attribution.
- [The deployment model](https://miosa.ai/docs/docker-host/deployment-model.md): How a publish becomes a stable production URL - the pipeline, static vs dynamic, deployments, versions, domains, and the proof contract.
- [Publishing](https://miosa.ai/docs/docker-host/publishing.md): Turn a Sandbox into an immutable Deployment Version. Source snapshots, build modes, static artifacts, dynamic runtimes, Docker Host containers, public URLs, and proof.
- [Deploy from GitHub](https://miosa.ai/docs/docker-host/deploy-from-github.md): Build and publish a GitHub repository with miosa deploy create --git - connect GitHub, public and private repositories, the branch, logs, redeploys, and the webhook that rebuilds on every push.
- [Versions](https://miosa.ai/docs/docker-host/versions.md): Immutable history of every publish. Inspect, promote, archive.
- [Releases](https://miosa.ai/docs/docker-host/releases.md): The immutable build artifact: static files or dynamic server artifact, sha256-keyed.
- [Rollback](https://miosa.ai/docs/docker-host/rollback.md): Repoint a deployment at an older version. Seconds, no rebuild.
- [Environments](https://miosa.ai/docs/docker-host/environments.md): Production, staging, preview/<source>: variable and secret scoping for deployments.
- [Dynamic Runtimes](https://miosa.ai/docs/docker-host/runtime-instances.md): Dynamic deployments: production runtimes started from a release, health-checked, and reconciled by MIOSA.
- [Deployment Domains](https://miosa.ai/docs/docker-host/domains.md): Preview domains, tenant deployment domains, managed fallback URLs, exact custom domains, DNS verification, automatic TLS, and route changes.
- [Forge](https://miosa.ai/docs/forge.md): Git hosting built into MIOSA: a home for code written by you, your sandboxes and your agents, with deploys, pull request previews and merge rules.
- [Forge quickstart](https://miosa.ai/docs/forge/quickstart.md): Create a Forge repository, push to it with plain git and open your first pull request, in five minutes.
- [Pull requests and checks](https://miosa.ai/docs/forge/pull-requests.md): Open a pull request on Forge, report checks, set branch policy and merge.
- [Forge from a sandbox](https://miosa.ai/docs/forge/sandboxes.md): Clone and push to Forge from inside a sandbox with plain git, using the sandbox's own identity.
- [Agents and the Forge API](https://miosa.ai/docs/forge/agents.md): Use Forge from the TypeScript and Python SDKs and the REST API: repositories, files, branches, pull requests, checks and releases.
- [Forge CLI reference](https://miosa.ai/docs/forge/cli.md): Every miosa forge command with an example: auth, repositories, pull requests, checks, branch policy, grants, forks and releases.
- [Forge limits and FAQ](https://miosa.ai/docs/forge/faq.md): What Forge does and does not do yet: visibility, permissions, merge methods, issues, repository secrets and CI.
- [CI on MIOSA](https://miosa.ai/docs/ci.md): Run GitHub Actions jobs on MIOSA. Connect the MIOSA CI app, use runs-on miosa in a workflow, and each job runs in its own sandbox, billed per second.

## Sandboxes

- [Sandboxes](https://miosa.ai/docs/develop/sandboxes.md): Fast, isolated Linux VMs for code execution, builds, tests, and dev servers, with live preview URLs and snapshots.
- [Capabilities](https://miosa.ai/docs/develop/sandboxes/capabilities.md): What sandboxes are for, what a sandbox is concretely, and the core exec, files, preview, snapshot, and lifecycle capabilities.
- [Create and connect](https://miosa.ai/docs/develop/sandboxes/create.md): Create a sandbox with the fused run endpoint or a full create, manage its lifetime in Python context managers, and connect to an existing sandbox by id or name.
- [Docker in sandboxes](https://miosa.ai/docs/develop/sandboxes/docker.md): Run containers inside MIOSA sandboxes, publish ports, and reach them through preview URLs. Which templates ship Docker Engine, Compose, and Buildx.
- [Sandbox lifecycle](https://miosa.ai/docs/develop/sandboxes/lifecycle.md): The sandbox state machine from creating to destroyed, what each state means, what stop keeps, what resets the idle clock, and how to stop, pause, resume, and restart.
- [Files & Exec](https://miosa.ai/docs/develop/files-and-exec.md): Read, write, watch files inside a sandbox. Run commands, stream stdout/stderr, manage processes.
- [Sizing and limits](https://miosa.ai/docs/develop/sandboxes/sizing.md): Named sandbox resource contracts, raw resource overrides, how sandbox usage is billed, and the opt-in runner fast path.
- [Timeouts and auto-stop](https://miosa.ai/docs/develop/sandboxes/timeouts.md): The sandbox active-session timeout, how to extend it, and how runtime, CPU, and network usage are measured and reported.
- [Sandbox events](https://miosa.ai/docs/develop/sandboxes/events.md): Subscribe to sandbox lifecycle and activity events over SSE to monitor agent runs and detect unexpected exits.
- [Connecting to a running sandbox](https://miosa.ai/docs/develop/sandboxes/connect.md): Four ways into a live sandbox: the SDK, the CLI, SSH over an authenticated tunnel, and preview URLs. What each is good for, and what does not work.
- [Metadata and labels](https://miosa.ai/docs/develop/sandboxes/metadata.md): Attach arbitrary metadata to a sandbox at create time, read it back, and use external IDs for anything you need to query or bill on.
- [Long-running tasks](https://miosa.ai/docs/develop/sandboxes/long-running-tasks.md): Work that outlives a single exec: background processes, their logs and status, always-on sandboxes, and what comes back after pause and resume.
- [Production checklist](https://miosa.ai/docs/develop/sandboxes/production-checklist.md): The defaults to set on sandboxes before relying on them in production: timeouts, persistence, idempotency, templates, secrets, and event subscription.
- [Machine capabilities](https://miosa.ai/docs/machines.md): What every machine ships with, its sizes, runtimes, and pre-installed tools.
- [Snapshots, restore, pause, and forks](https://miosa.ai/docs/develop/snapshots.md): Create durable sandbox checkpoints, restore or fork new sandboxes, and preserve work through pause and resume.
- [Templates](https://miosa.ai/docs/develop/templates.md): The one sandbox image, the templates that stage content inside it, the desktop, and how to start a Next.js, FastAPI, or static project.
- [Sandbox shares](https://miosa.ai/docs/develop/sandbox-shares.md): Create a public, read-only link to a running sandbox so a teammate or an outside user can view it, and revoke the link at any time.
- [Environment variables](https://miosa.ai/docs/develop/sandboxes/environments.md): Set sandbox-level env at create time, inherit account-level runtime env by scope and target, and understand precedence, the per-sandbox env API, secret files, and secrets, and how a value reaches exec.
- [Secrets  -  Quickstart](https://miosa.ai/docs/security/secrets.md): Store API keys in MIOSA. Your sandbox uses an opaque placeholder. The real key never lives inside the VM.
- [Connect Accounts (OAuth)](https://miosa.ai/docs/security/connect-accounts.md): Authorize accounts (GitHub, Google, Slack, …) once. MIOSA manages token refresh; your sandbox sees an env var.
- [Managed connectors for sandbox agents](https://miosa.ai/docs/guides/managed-connectors.md): Attach MIOSA-managed tools like Refero to sandbox or computer agents without client-supplied vendor tokens.
- [SOMA](https://miosa.ai/docs/soma.md): SOMA is MIOSA's own open-source virtual machine monitor, written in Rust. It gives every sandbox a hardware-isolated machine with its own Linux kernel, restored from a certified snapshot.
- [Choosing a runtime](https://miosa.ai/docs/soma/choosing-a-runtime.md): Choose Firecracker, SOMA or auto when you create a sandbox with the runtime option. List the runtimes your organization offers and see what each runtime reports it supports today.
- [Browser use](https://miosa.ai/docs/browser-use.md): A live browser inside any MIOSA sandbox - watch it, take control, share a view-only link, and let agents drive the same browser over CDP.
- [How browser use works](https://miosa.ai/docs/browser-use/how-it-works.md): The parts of a sandbox browser, the three surfaces that see it, and how the live view and CDP sockets are exposed.
- [Browser use quickstart](https://miosa.ai/docs/browser-use/quickstart.md): Start a live browser in any MIOSA sandbox, read its stream and CDP endpoints, and stop it when you are done.
- [Browser use live viewer](https://miosa.ai/docs/browser-use/live-viewer.md): Watch a sandbox browser live, take control, share a revocable view-only link, and go full screen.
- [Drive a sandbox browser over CDP](https://miosa.ai/docs/browser-use/cdp.md): Connect Playwright and Puppeteer to a live sandbox browser over CDP and drive the same session a viewer is watching.
- [Browser use integrations](https://miosa.ai/docs/browser-use/integrations.md): Connect a Chrome DevTools Protocol client to a MIOSA sandbox browser. Only clients verified end to end are listed.
- [Browser use limits, billing, and security](https://miosa.ai/docs/browser-use/limits.md): Availability and size, lifecycle across pause and resume, how browser use is billed, and how access is enforced.
- [Cookbook](https://miosa.ai/docs/cookbook.md): Every MIOSA recipe in one place, grouped by area. Sandbox procedures and platform-builder walkthroughs, each with a working code path.
- [Agent builds an app](https://miosa.ai/docs/cookbook/agent-builds-app.md): Your AI agent receives a prompt, writes code into a sandbox, iterates visually with live preview, checkpoints progress, branches experiments, shares with stakeholders, and publishes to production.
- [Agent with secrets  -  full walkthrough](https://miosa.ai/docs/cookbook/agent-with-secrets.md): Create a sandbox, store an OpenAI key and connect GitHub via OAuth, run an AI agent, watch the audit log live, lock the network down, then rotate the key mid-run.
- [Streaming code execution](https://miosa.ai/docs/cookbook/streaming-code-execution.md): Run a long Python script in a sandbox and stream stdout to your UI in real time via SSE, with backpressure handling.
- [Browser agent](https://miosa.ai/docs/cookbook/browser-agent.md): Put an LLM in the loop of a real browser running inside a sandbox. Start the sandbox browser, drive it over CDP with Playwright, and run the screenshot → action → screenshot loop.
- [QA Desktop Agent (Playwright CDP + CUA)](https://miosa.ai/docs/cookbook/qa-desktop-agent.md): Run a persistent QA desktop agent with loopback Chrome CDP, batched JPEG CUA actions, Brokered Egress Secrets, and 60fps Voxl streaming.
- [Always-On n8n Workflow Automation](https://miosa.ai/docs/cookbook/n8n-automation.md): Self-host n8n on MIOSA with custom sizing, elastic autoscale, write-only encrypted env, persistent /data/n8n, and Brokered Egress Secrets.

## Computers

- [Computers (Desktop)](https://miosa.ai/docs/computers/overview.md): Durable cloud desktops for browser agents, human takeover, GUI automation, and long-running computer-use workflows.
- [Inside a Computer](https://miosa.ai/docs/computers/anatomy.md): What ships in a Computer and how the desktop, persistent disk, stream gateway, and control API fit together.
- [Computers vs sandbox](https://miosa.ai/docs/computers/vs-sandbox.md): Choose a Computer or a Sandbox for a workload, with the rule of thumb and a side-by-side table.
- [Fast start & readiness](https://miosa.ai/docs/computers/fast-start.md): How MIOSA starts managed desktop Computers quickly, defines browser readiness, and exposes failures without false Live states.
- [Embedding & Streaming](https://miosa.ai/docs/computers/embedding.md): Embed a live Computer desktop in your own UI with a short-lived stream URL. Pixel streaming and input forwarding are handled by MIOSA.
- [Lifecycle and sizing](https://miosa.ai/docs/computers/lifecycle.md): Computer fast startup, the desktop state machine, resource sizes, and workspace-scoped creation for per-tenant attribution.
- [Production checklist](https://miosa.ai/docs/computers/production-checklist.md): The defaults to verify before relying on a Computer in production: workspace attribution, access, secrets, state, observability, and recovery.
- [Computer use](https://miosa.ai/docs/computer-use.md): Let software operate a real Linux desktop on a MIOSA Computer - screenshots, mouse, keyboard, windows, accessibility, and a live viewer a human can take over.
- [Computer use quickstart](https://miosa.ai/docs/computer-use/quickstart.md): Create a MIOSA Computer, run the first screenshot-act-verify loop, and watch the live desktop a human can take over.
- [Computer use API reference](https://miosa.ai/docs/computer-use/api-reference.md): Every MIOSA Computer desktop control endpoint - screenshot, mouse, keyboard, scroll, clipboard, windows, accessibility tree, and the one-shot window-state read.
- [Computer use SDK examples](https://miosa.ai/docs/computer-use/sdk-examples.md): Python and TypeScript method names for driving a MIOSA Computer desktop, with runnable examples for screenshots, input, windows, accessibility, and shell.
- [Computer use limits](https://miosa.ai/docs/computer-use/limits.md): Latency, coordinate space, sizing, authentication, and rate limits for MIOSA Computer desktop control.
- [Computer use vs browser use: which to pick](https://miosa.ai/docs/computer-use/vs-browser-use.md): A short comparison of MIOSA browser use inside a sandbox and full computer use on a durable desktop, to pick the right one for a task.
- [OpenComputers](https://miosa.ai/docs/opencomputers.md): Connect machines you already own to MIOSA and manage them as hosts - commands, containers, meshes, GitHub Actions runners, backups, tunnels, and devices.
- [Connect your first host](https://miosa.ai/docs/opencomputers/connect.md): Install the host agent, enroll a machine, verify a command on that exact host, and configure service startup for Linux, macOS, or Windows.
- [Hosts and capabilities](https://miosa.ai/docs/opencomputers/hosts.md): Inspect enrolled hosts, read their runtime and services, run commands on one host or a group, manage files, apps, compose projects, secrets, SSH keys, and clusters.
- [Containers on a host](https://miosa.ai/docs/opencomputers/containers.md): Run Docker or Podman containers on one of your hosts, stream their logs and resource usage, and keep docker-compose projects running.
- [Meshes](https://miosa.ai/docs/opencomputers/meshes.md): Link several of your hosts on a private encrypted WireGuard network so they reach each other without going over the public internet.
- [GitHub Actions runners](https://miosa.ai/docs/opencomputers/gha-runners.md): Register self-hosted GitHub Actions runners on your own hosts for one repository, and stream their activity from MIOSA.
- [Backups and snapshots](https://miosa.ai/docs/opencomputers/backups.md): Schedule directory backups on your own hosts, keep a rolling snapshot history, and restore a snapshot onto the same host or a different one.
- [Tunnels and exposing services](https://miosa.ai/docs/opencomputers/tunnels.md): Expose a port on a host at a MIOSA-managed address, choose who can reach it, and understand what a tunnel does and does not do.
- [Devices](https://miosa.ai/docs/opencomputers/devices.md): The device model - one id-addressed surface for running commands, moving files, exposing ports, and driving lifecycle across runtime kinds.
- [Security model](https://miosa.ai/docs/opencomputers/security.md): How the host agent connects, what MIOSA can and cannot reach on your machine, which credentials exist, and how audit and revocation work.
- [Billing and limits](https://miosa.ai/docs/opencomputers/billing.md): What a plan allows on OpenComputers - hosts, containers, tunnels - and the operational caps on commands, transfers, backups, and tunnels.
- [OpenComputers troubleshooting](https://miosa.ai/docs/opencomputers/troubleshooting.md): Diagnose offline hosts, rejected credentials, failed commands, container, mesh, runner, backup, and tunnel problems.
- [API, CLI, and SDK reference](https://miosa.ai/docs/opencomputers/reference.md): Every OpenComputers endpoint group, the CLI command families that call them, and the SDK namespaces that wrap them.

## Databases & storage

- [Data](https://miosa.ai/docs/data/overview.md): Managed databases, object storage, auth, and volumes with explicit lifecycle, credentials, and recovery operations.
- [Postgres](https://miosa.ai/docs/data/postgres.md): Managed Postgres per project with lifecycle controls, backup, restore, and DATABASE_URL injection.
- [MySQL](https://miosa.ai/docs/data/mysql.md): Managed MySQL per project with durable storage and DATABASE_URL injection.
- [Redis / Cache](https://miosa.ai/docs/data/redis.md): Managed Redis per project for caching, sessions, and pub/sub.
- [Qdrant (Vector Database)](https://miosa.ai/docs/data/qdrant.md): Per-project vector database for semantic search and embedding storage. QDRANT_URL injected at boot.
- [MongoDB](https://miosa.ai/docs/data/mongodb.md): Managed MongoDB per project for document data.
- [Storage / Buckets](https://miosa.ai/docs/data/storage.md): Per-project object storage with signed-URL uploads and downloads.
- [Volumes](https://miosa.ai/docs/data/volumes.md): Persistent block storage attached to a runtime instance. State that doesn't fit in Postgres.
- [Auth-as-a-Service](https://miosa.ai/docs/data/auth.md): Opt-in end-user signup, login, and JWT issuance for a sandbox or deployment.
- [Transactional Email](https://miosa.ai/docs/data/email.md): Configure MIOSA-managed transactional email for project auth, password reset, email confirmation, and platform notifications.
- [Fractal enterprise data](https://miosa.ai/docs/data/fractal.md): MIOSA and Fractal run dedicated Fractal instances for massive-scale structured data and computation, secure and isolated for enterprise, government, and regulated customers.

## Networking & domains

- [Services addresses and domains](https://miosa.ai/docs/services/domains.md): How services reach databases while private networking is not available, the public miosa.app address a web service or static site can have, and how TLS is handled.
- [Previews](https://miosa.ai/docs/develop/previews.md): Live URLs that proxy into a sandbox port. Public, private, embeddable, share-tokenized.
- [Internet access and egress](https://miosa.ai/docs/develop/sandboxes/internet-access.md): Whether a sandbox can reach the internet by default, the two layers of egress control, how to lock a sandbox to an allowlist, and how to debug a blocked call.
- [Network Allowlist](https://miosa.ai/docs/security/network.md): Watch what your sandbox calls. When you're ready, lock it down with a one-click allowlist. Reversible.
- [Edge middleware](https://miosa.ai/docs/services/middleware.md): Ordered path rules and an optional function that run at the edge, in front of a server service.
- [Protection and WAF](https://miosa.ai/docs/services/protection.md): Put a password in front of a service, mint share links, and set the web application firewall rules the proxy enforces.
- [Public database endpoint](https://miosa.ai/docs/data/public-endpoint.md): Open a TLS-only TCP endpoint for one managed database, with an allowlist, so a laptop or an outside service can connect.

## Agents

- [Agent operating guide](https://miosa.ai/docs/guides/agent-operating-guide.md): The CLI and release workflow for AI agents using MIOSA.
- [What MIOSA agents can do](https://miosa.ai/docs/guides/agent-capabilities.md): Built-in tools, connected app actions, device execution, artifacts, browser work, and the permission model for agents running on MIOSA.
- [Agent CLI workflow](https://miosa.ai/docs/guides/agent-cli-workflow.md): The full CLI release workflow for agents: discovery, scope, sandbox development, preview, publish, promote, recovery, and rollback.
- [Agent safety and status](https://miosa.ai/docs/guides/agent-safety.md): How agents interpret deployment health, preserve durable resources, and respect current capability boundaries.
- [Integrating an AI agent](https://miosa.ai/docs/guides/agent.md): How to bring your own AI agent and drive MIOSA Sandbox or Computer primitives to build, run, and deploy applications autonomously.
- [Configure an agent](https://miosa.ai/docs/guides/configure-agent.md): Configure an agent's identity, instructions, model, devices, tools, memory, connected accounts, triggers, and approval policy.
- [Chat with an agent on a machine](https://miosa.ai/docs/agents/chat-on-a-machine.md): Open a computer, or the Agent section of a sandbox, and chat with an agent bound to that machine.
- [Agent Studio](https://miosa.ai/docs/agents/agent-studio.md): Chat with an agent in a dedicated workspace, with one warm sandbox per chat and honest status and errors.
- [Harnesses and auth](https://miosa.ai/docs/agents/harnesses.md): The agents MIOSA can run on your machine, how each one authenticates, and how MIOSA gets each one ready.
- [Agent confinement](https://miosa.ai/docs/agents/confinement.md): An agent runs inside its machine and cannot use MIOSA's own platform key unless an Environment grants it a scoped one.
- [Agent runtime routing](https://miosa.ai/docs/guides/agent-runtime-routing.md): How MIOSA routes prompts to OSA, Codex, Claude Code, Pi, Hermes, custom runtimes, and assigned devices.
- [Claude Code Skills for MIOSA](https://miosa.ai/docs/guides/skills.md): Install MIOSA skills for Claude Code, so it loads the right sandbox, computer, and deploy knowledge when you ask for cloud infrastructure.
- [Agent Development Kit (ADK)](https://miosa.ai/docs/adk.md): Build LLM agents that use MIOSA sandboxes, desktops, and deploys with the tool-call loop already wired. TypeScript ADK first; Python next.
- [Runtime env for agent devices](https://miosa.ai/docs/guides/runtime-env.md): Define inherited environment variables for sandboxes, computers, and agent runtimes at tenant, workspace, or project scope.
- [Agent product model](https://miosa.ai/docs/guides/agent-product-model.md): The canonical MIOSA model for agents, devices, runs, tools, artifacts, credits, and deployments.
- [Agent product reference map](https://miosa.ai/docs/guides/agent-company-reference-map.md): Reference products and implementation patterns for building Genspark, Emergent, Blackbox AI, Lovable, Replit, Cofounder, Polsia, Nebula, and BusinessOS-style products on MIOSA.
- [Build your own AI platform](https://miosa.ai/docs/guides/build-agent-company.md): Build your own Genspark, Emergent, Blackbox AI, Lovable, Replit, Polsia, Cofounder, or Nebula-style product on MIOSA.
- [Agent workflow patterns](https://miosa.ai/docs/guides/agent-workflow-patterns.md): Simple-to-complex workflows for using MIOSA agents, devices, events, artifacts, and deployments.
- [Agent device selection](https://miosa.ai/docs/guides/agent-device-selection.md): Decide when an agent needs no device, a sandbox, a computer, a local device, or a deployment target.
- [Connect agent accounts (keys and subscriptions)](https://miosa.ai/docs/guides/connect-agent-accounts.md): Connect a model key, a Claude or ChatGPT plan, or a tool-server key to your workspace, or to one of your end users, from your own code. No console visit needed.
- [Agent devices](https://miosa.ai/docs/guides/agent-devices.md): MIOSA's device model for agent work: sandbox workers, computers, local devices, primary devices, persistence, and Docker Host boundaries.
- [Agent orchestration](https://miosa.ai/docs/guides/agent-orchestration.md): How to coordinate multiple agents across MIOSA sandboxes, computers, artifacts, previews, events, and deployments.
- [Runtime profiles and artifacts](https://miosa.ai/docs/guides/agent-company-runtime-artifacts.md): The end-to-end lane from runtime profile to artifact export, the prompt-to-device flow, how env and secrets are inherited, and how agent outputs become downloads.
- [Orchestration patterns](https://miosa.ai/docs/guides/agent-orchestration/patterns.md): Coordination patterns for MIOSA agent systems: prompt dispatch, durable run groups, subagents, sandbox-hosted orchestrators, self-configuring agents, artifact export, credentials, and permissions.
- [Orchestration examples](https://miosa.ai/docs/guides/agent-orchestration/examples.md): Worked orchestration flows on MIOSA: an app builder with browser QA, a sandbox-first code agent, a computer QA agent, a minimal orchestrator shape, and the product UI pattern.

## Optimal

- [Optimal](https://miosa.ai/docs/optimal.md): Optimal is MIOSA's built-in agent. Chat with it to answer questions about your workspace, build on your own sandboxes and computers, and investigate problems.
- [Optimal quickstart](https://miosa.ai/docs/optimal/quickstart.md): Ask Optimal a question, build and preview a small app on a sandbox, then send your first message over the Optimal API.
- [Chats and modes](https://miosa.ai/docs/optimal/chats.md): How an Optimal chat works - the composer, Ask, Build and Investigate, attachments, queued messages, the context meter, and renaming or deleting a chat.
- [Brains and agents](https://miosa.ai/docs/optimal/brains.md): Choose who answers an Optimal chat - the built-in Optimal model, a coding harness on your own account, or a saved agent you built in Agent Studio.
- [Build on your machines](https://miosa.ai/docs/optimal/machines.md): Choose the sandbox or computer Optimal works on, use the side panel to watch and steer it, publish a preview, and take over from the agent at any time.
- [Approvals](https://miosa.ai/docs/optimal/approvals.md): Decide which Optimal steps wait for you, approve or decline them in the chat, allow a step for the rest of a chat, and let an API key approve.
- [Tasks, artifacts and history](https://miosa.ai/docs/optimal/workspace.md): The Optimal sidebar pages - Tasks, Investigations, Artifacts, Approvals, History, Usage and Preferences - and what each one keeps for you.
- [Team chats and sharing](https://miosa.ai/docs/optimal/team-chats.md): Optimal chats are personal until you share them with your workspace. Owners and admins can read and join members' chats, and every view is recorded.
- [Pricing and usage](https://miosa.ai/docs/optimal/pricing.md): What an Optimal chat costs, how the cost strip and the Usage page report it, what happens when credits run out, and how harness brains are billed.
- [Isolation and permissions](https://miosa.ai/docs/optimal/isolation.md): Optimal acts only inside your organization and workspace, with your permissions, and never on MIOSA's own keys.
- [Optimal API](https://miosa.ai/docs/optimal/api.md): HTTP reference for Optimal - mint an Optimal token, create chats, send messages, stream replies, bind a machine, upload attachments, decide approvals, and read a chat's cost.
- [Optimal troubleshooting](https://miosa.ai/docs/optimal/troubleshooting.md): Fixes for common Optimal problems - no credits, no workspace, a missing machine, attachments, harness sign-in, taking over, and API errors.

## Optimal Engine

- [Optimal Engine](https://miosa.ai/docs/optimal-engine.md): Optimal Engine is the self-hosted memory and knowledge engine behind a workspace - it keeps source evidence, builds reviewed memory, and returns cited context to people and agents over HTTP, a CLI, and MCP.
- [Optimal Engine concepts](https://miosa.ai/docs/optimal-engine/concepts.md): The objects Optimal Engine is built from - tenants, workspaces, nodes, signals, source packages, claims, facts, memories, context packages, and projections - and how a source becomes reviewed memory.
- [Optimal Engine quickstart](https://miosa.ai/docs/optimal-engine/quickstart.md): Run Optimal Engine on your own machine, mint an API key, create a workspace, store a source, and search it - from a checkout or with Docker - plus the shortest path on MIOSA.
- [Install and configure Optimal Engine](https://miosa.ai/docs/optimal-engine/install.md): Requirements, the three ways to install a self-hosted Optimal Engine (checkout, Docker, release), every setting it reads, where it stores data, embeddings, and how API keys and scopes work.
- [Operate a self-hosted Optimal Engine](https://miosa.ai/docs/optimal-engine/operations.md): Backups and restore, upgrades and migrations, size profiles and rate limits, replication between Engines, moving a workspace, erasure and retention, and metrics for a self-hosted Optimal Engine.
- [Sources and ingestion](https://miosa.ai/docs/optimal-engine/ingestion.md): Every way to get data into Optimal Engine - text, files, chat sessions, Notion exports, batch imports, and apps such as Slack, GitHub, and Linear - with the file types it parses and the limits that apply.
- [Memory and retrieval](https://miosa.ai/docs/optimal-engine/memory-and-retrieval.md): How Optimal Engine searches (full-text, vector, hybrid), what ask and assemble return, how claims are reviewed into facts, how versioned memories work, and what the benchmark numbers mean.
- [Agents and workflows](https://miosa.ai/docs/optimal-engine/agents-and-workflows.md): What Optimal Engine gives an agent - a boot briefing, open loops, a daily rhythm, an operating protocol, allow, ask, or deny rules, organization policy, scheduled analyses, webhooks, and action traces.
- [Optimal Engine API reference](https://miosa.ai/docs/optimal-engine/api.md): The Optimal Engine HTTP API - base URL, keys, scopes, paging, rate limits, errors, and the main routes for workspaces, ingest, search, ask, memory, claims, and operations, with curl examples.
- [Optimal Engine CLI, SDKs and MCP](https://miosa.ai/docs/optimal-engine/cli-sdks-mcp.md): The optimal client CLI, the Engine's MCP server for Claude Code and Codex, the mix tasks for operators, and the TypeScript and Python clients - how to install each from the repository and point it at an Engine.
- [Optimal Engine on MIOSA](https://miosa.ai/docs/optimal-engine/miosa.md): Run a managed Optimal Engine on MIOSA - workspace Memory in the console, how Optimal chat uses it, the miosa engine commands, client keys for the optimal CLI and MCP server, the API, sizes, backups, and how to get it enabled.
- [Optimal Engine troubleshooting](https://miosa.ai/docs/optimal-engine/troubleshooting.md): Fixes for common Optimal Engine problems - nothing listening, health checks, keys refused, empty search, hybrid search unavailable, busy store, failed migrations, Docker health, and errors from a managed Engine on MIOSA.

## Platform builders

- [Build your product on MIOSA](https://miosa.ai/docs/integrations.md): Ship a white-label SaaS where your end-users never see the MIOSA brand. Isolated compute, custom domains, branded previews, usage rollup, and webhooks - all under your domain.
- [Platform builder guide](https://miosa.ai/docs/platform/overview.md): Run your users' agents, previews, and workspaces on MIOSA: architectures, costs, and provisioning patterns.
- [Platform patterns](https://miosa.ai/docs/platform/patterns.md): The three architectures that cover most products on MIOSA, plus the model and backend jobs every platform shares.
- [Agents in your product](https://miosa.ai/docs/platform/agents-in-your-product.md): Give each of your users a machine with an agent or harness working inside it, and show the result in your own UI.
- [Templates and sizing](https://miosa.ai/docs/platform/templates-and-sizing.md): Pick a template and a size for each user's machine, cap concurrency, and set idle defaults so unused machines pause.
- [Backend orchestration](https://miosa.ai/docs/integrations/backend-orchestration.md): Backend patterns for dispatching prompts into MIOSA sandboxes, computers, and local devices.
- [Example Apps](https://miosa.ai/docs/integrations/examples.md): Four full-stack white-label examples you can clone, run locally, and adapt to your own stack.
- [Build an internal Business OS for your team](https://miosa.ai/docs/guides/internal-business-os.md): Build one internal platform where your team's agents, apps, data, and workflows live together, on MIOSA. Organization and workspaces, a machine per agent, connections, secrets, RBAC, audit, and internal deployments.
- [Resource Ownership and Attribution](https://miosa.ai/docs/platform/attribution.md): Scope resources to MIOSA workspaces and projects while preserving your own workspace / user / project IDs for billing and reconciliation.
- [Browser Tokens](https://miosa.ai/docs/platform/browser-tokens.md): Short-lived scoped credentials your backend mints for end-user-facing access. Never expose `msk_*` to the browser.
- [End-user credentials and OAuth](https://miosa.ai/docs/security/white-label.md): How to scope secrets and OAuth connections to your own end-users on top of MIOSA - with your branding, not ours.
- [Branding and domain setup](https://miosa.ai/docs/platform/white-label.md): Configure organization slug, workspace/project ownership, preview domains, deployment domains, branding, and resource attribution.
- [Webhooks](https://miosa.ai/docs/integrations/webhooks.md): Subscribe to sandbox and deployment lifecycle events, verify HMAC-SHA256 signatures, handle retries, and test locally.
- [Agent credit metering](https://miosa.ai/docs/platform/agent-credit-metering.md): How to meter credits for MIOSA agent runs, model usage, devices, tools, storage, and deployments.
- [Multi-tenant SaaS](https://miosa.ai/docs/cookbook/multi-tenant-saas.md): Embed MIOSA into your SaaS - tag sandboxes per tenant, query usage per workspace, and mint short-lived preview share tokens so customers interact directly with their sandboxes.
- [Per-user quotas and billing](https://miosa.ai/docs/cookbook/per-user-quotas-billing.md): Set per-end-user resource caps, pull monthly usage rollups keyed by external_user_id, and generate invoices for your customers.
- [Embed sandbox in an iframe](https://miosa.ai/docs/cookbook/embed-sandbox-iframe.md): Your server mints a preview token; your frontend uses it as an iframe src. Covers React, Vue, Svelte, and vanilla JS, plus token TTL refresh.
- [Sandbox events in real time](https://miosa.ai/docs/cookbook/sandbox-events-realtime.md): React to sandbox lifecycle events using either HMAC-signed webhooks (server-to-server) or the SSE event stream (in-process). Covers both patterns, idempotency, and when to choose each.
- [Build a virtual-device product](https://miosa.ai/docs/cookbook/build-virtual-device-product.md): Build a Nebula-style product on MIOSA with persistent devices, files, browser work, jobs, artifacts, and connected tools.
- [UI Components](https://miosa.ai/docs/ui-components.md): Drop-in React, Vue, and Svelte components for embedding MIOSA sandboxes in your own frontend.
- [Foundation Component Library](https://miosa.ai/docs/component-library.md): MIOSA Foundation UI reference with design intent, Tailwind v4 tokens, CSS variables, and design tokens.
- [Foundation UI](https://miosa.ai/docs/ui-components/foundation.md): The owned MIOSA frontend primitives used by the platform application.
- [React UI Components](https://miosa.ai/docs/ui-components/react.md): Drop-in React components for embedding MIOSA sandboxes - MiosaPreview, MiosaTerminal, MiosaFileTree, MiosaUsage.
- [Vue UI Components](https://miosa.ai/docs/ui-components/vue.md): Drop-in Vue 3 components for embedding MIOSA sandboxes - MiosaPreview, MiosaTerminal, MiosaFileTree, MiosaUsage.
- [Svelte UI Components](https://miosa.ai/docs/ui-components/svelte.md): Drop-in Svelte 5 components for embedding MIOSA sandboxes - MiosaPreview, MiosaTerminal, MiosaFileTree, MiosaUsage.

## Build

- [Build an app like...](https://miosa.ai/docs/build.md): Guides for platform builders. Run open-source agents and frameworks on MIOSA, or build familiar AI products like Lovable, Manus and Perplexity - app builders, coding agents, autonomous and computer-use agents, chat and companions, answer engines, multi-agent, voice, design, video, vertical apps, and an internal Business OS.
- [Build a Lovable-style app](https://miosa.ai/docs/build/lovable.md): Lovable: Prompt a full-stack app, preview it live, publish it. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Bolt-style app](https://miosa.ai/docs/build/bolt.md): Bolt: Full-stack apps from a prompt, on a real dev server. Build it on MIOSA with the exact resources, steps and commands.
- [Build a v0-style app](https://miosa.ai/docs/build/v0.md): v0: Generate a UI from a prompt and publish it. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Replit-Agent-style app](https://miosa.ai/docs/build/replit.md): Replit Agent: A cloud workspace where a prompt becomes a running app. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Base44-style app](https://miosa.ai/docs/build/base44.md): Base44: Describe an app, get a working, previewed one. Build it on MIOSA with the exact resources, steps and commands.
- [Build an Emergent-style app](https://miosa.ai/docs/build/emergent.md): Emergent: Prompts become running software with real infrastructure. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Rork-style app](https://miosa.ai/docs/build/rork.md): Rork: Prompt to a mobile app you can preview. Build it on MIOSA with the exact resources, steps and commands.
- [Build an Anything-style app](https://miosa.ai/docs/build/anything.md): Anything: Prompt to a working web or mobile app. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Same-style app](https://miosa.ai/docs/build/same-new.md): Same: Clone and rebuild a UI from a screenshot or URL. Build it on MIOSA with the exact resources, steps and commands.
- [Run coding agents in the cloud](https://miosa.ai/docs/build/run-agents.md): Cloud coding agents: Claude Code, Codex, Cursor: background agents in the cloud. Build it on MIOSA with the exact resources, steps and commands.
- [Run Claude Code on MIOSA](https://miosa.ai/docs/build/claude-code.md): Claude Code: Install it in a sandbox; stream and collect its work. Install and run it on a MIOSA sandbox or computer, then wrap it for your team or your customers.
- [Run Codex on MIOSA](https://miosa.ai/docs/build/codex.md): Codex: Install the Codex CLI in a sandbox with streamed events. Install and run it on a MIOSA sandbox or computer, then wrap it for your team or your customers.
- [Run Cursor agents on MIOSA](https://miosa.ai/docs/build/cursor.md): Cursor: Install the Cursor CLI agent and run it headless on isolated machines. Install and run it on a MIOSA sandbox or computer, then wrap it for your team or your customers.
- [Build a Windsurf-style agentic IDE](https://miosa.ai/docs/build/windsurf.md): Windsurf: An editor with an agent that edits across files and runs commands. Build it on MIOSA with the exact resources, steps and commands.
- [Build a GitHub Copilot-style coding agent](https://miosa.ai/docs/build/github-copilot.md): GitHub Copilot coding agent: An agent that takes an issue, works, and opens a PR. Build it on MIOSA with the exact resources, steps and commands.
- [Run OpenHands on MIOSA](https://miosa.ai/docs/build/openhands.md): OpenHands: Install the open-source software agent; the sandbox is its workspace. Install and run it on a MIOSA sandbox or computer, then wrap it for your team or your customers.
- [Run Cline on MIOSA](https://miosa.ai/docs/build/cline.md): Cline: The most-installed open-source coding agent, headless in a sandbox. Install and run it on a MIOSA sandbox or computer, then wrap it for your team or your customers.
- [Build a coding-agent product](https://miosa.ai/docs/build/coding-agent-product.md): A branded coding-agent product: Wrap a harness in your own branded product. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Manus-style agent](https://miosa.ai/docs/build/manus.md): Manus: A general agent with a desktop, browser, and files. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Genspark-style agent](https://miosa.ai/docs/build/genspark.md): Genspark Super Agent: A super-agent that plans and produces finished work. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Devin-style SWE agent](https://miosa.ai/docs/build/devin.md): Devin: An autonomous engineer with a shell, IDE, and browser. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Cowork-style desktop agent](https://miosa.ai/docs/build/claude-cowork.md): Claude Cowork: An agent that works alongside you on your desktop. Build it on MIOSA with the exact resources, steps and commands.
- [Build a browser and computer-use agent](https://miosa.ai/docs/build/chatgpt-agent.md): Browser and computer-use agent: An agent that browses, clicks and fills forms to finish a task. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Polar-style AI browser](https://miosa.ai/docs/build/polar.md): AI browser: Build your own browser that runs hours-long tasks and scheduled workflows, on a live MIOSA browser you control. Exact resources, steps and commands.
- [Run Browser Use on MIOSA](https://miosa.ai/docs/build/browser-use.md): Browser Use: Install the open-source library and let an agent drive a real browser. Install and run it on a MIOSA sandbox or computer, then wrap it for your team or your customers.
- [Run Stagehand on MIOSA](https://miosa.ai/docs/build/stagehand.md): Stagehand: Install the framework and run reliable browser automations on a computer. Install and run it on a MIOSA sandbox or computer, then wrap it for your team or your customers.
- [Build a dots-style companion](https://miosa.ai/docs/build/dots.md): dots: Always-on companions, each with its own cloud computer. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Grok Bot-style chat app](https://miosa.ai/docs/build/grok-bot.md): Grok Bot: A team of named bots sharing one cloud computer. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Muse-style companion](https://miosa.ai/docs/build/meta-muse.md): Muse: A personal companion that acts on your behalf across apps. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Character-style companion](https://miosa.ai/docs/build/character-ai.md): Character.AI: Persona companions users chat with over time. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Replika-style companion](https://miosa.ai/docs/build/replika.md): Replika: A personal companion with long-term memory. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Pi-style companion](https://miosa.ai/docs/build/pi.md): Pi: A warm, conversational personal assistant. Build it on MIOSA with the exact resources, steps and commands.
- [Run OpenClaw on MIOSA](https://miosa.ai/docs/build/openclaw.md): OpenClaw: Install the open-source assistant on a persistent computer that never sleeps. Install and run it on a MIOSA sandbox or computer, then wrap it for your team or your customers.
- [Build a Perplexity-style answer engine](https://miosa.ai/docs/build/perplexity.md): Perplexity: Search, read, and answer with citations. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Comet-style agentic browser](https://miosa.ai/docs/build/comet.md): Comet: A browser that navigates and answers in place. Build it on MIOSA with the exact resources, steps and commands.
- [Build a You.com-style search and answer API](https://miosa.ai/docs/build/you-com.md): You.com: An API your agents call to search and answer, with sources. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Phind-style answer engine](https://miosa.ai/docs/build/phind.md): Phind: Technical answers rendered as interactive mini-apps. Build it on MIOSA with the exact resources, steps and commands.
- [Build a deep-research-style agent](https://miosa.ai/docs/build/deep-research.md): ChatGPT deep research: A long-running research agent producing a report. Build it on MIOSA with the exact resources, steps and commands.
- [Build an OpenSwarm-style multi-agent app](https://miosa.ai/docs/build/openswarm.md): OpenSwarm: An AI desktop built around running several agents in parallel. Build it on MIOSA with the exact resources, steps and commands.
- [Run Hermes Agent on MIOSA](https://miosa.ai/docs/build/hermes-agent.md): Hermes Agent: Install the open-source agent harness and run many tool-using agents. Install and run it on a MIOSA sandbox or computer, then wrap it for your team or your customers.
- [Build an orchestrator that delegates](https://miosa.ai/docs/build/gemini-agent.md): An orchestrator that delegates: One agent that plans, delegates to sub-agents and joins the result. Build it on MIOSA with the exact resources, steps and commands.
- [Build an ElevenLabs-style voice agent](https://miosa.ai/docs/build/elevenlabs.md): ElevenLabs Agents: A voice agent that talks and takes real actions. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Vapi-style voice agent](https://miosa.ai/docs/build/vapi.md): Vapi: Voice agents for phone and web. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Retell-style voice agent](https://miosa.ai/docs/build/retell.md): Retell AI: Phone agents that handle real calls. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Bland-style phone agent](https://miosa.ai/docs/build/bland.md): Bland AI: Programmable phone agents at scale. Build it on MIOSA with the exact resources, steps and commands.
- [Run Pipecat on MIOSA](https://miosa.ai/docs/build/pipecat.md): Pipecat: Install the open-source voice pipeline from speech-to-text to text-to-speech. Install and run it on a MIOSA sandbox or computer, then wrap it for your team or your customers.
- [Run LiveKit Agents on MIOSA](https://miosa.ai/docs/build/livekit-agents.md): LiveKit Agents: The leading open-source realtime voice agent framework. Install and run it on a MIOSA sandbox or computer, then wrap it for your team or your customers.
- [Build a prompt-to-UI design tool](https://miosa.ai/docs/build/figma-make.md): Figma Make: Prompt (and a design file) to a working, previewed UI. Build it on MIOSA with the exact resources, steps and commands.
- [Build a sketch-to-mockup tool](https://miosa.ai/docs/build/uizard.md): Uizard: A sketch or screenshot becomes editable UI code. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Magic-Patterns-style tool](https://miosa.ai/docs/build/magic-patterns.md): Magic Patterns: Generate UI components from a prompt. Build it on MIOSA with the exact resources, steps and commands.
- [Build a video-generation app](https://miosa.ai/docs/build/runway.md): Runway: Generate and edit video on top of video-model APIs. Build it on MIOSA with the exact resources, steps and commands.
- [Build a text-to-video app](https://miosa.ai/docs/build/sora.md): Sora: Prompt to video through a video-model API. Build it on MIOSA with the exact resources, steps and commands.
- [Build an avatar-video app](https://miosa.ai/docs/build/heygen.md): HeyGen: Script to talking-avatar video with TTS and lip-sync APIs. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Higgsfield-style video studio](https://miosa.ai/docs/build/higgsfield.md): Higgsfield: A multi-model studio: brief, steer camera and look, generate. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Gamma-style deck app](https://miosa.ai/docs/build/gamma.md): Gamma: Prompt or document to a polished, shareable deck or page. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Descript-style editor](https://miosa.ai/docs/build/descript.md): Descript: Edit video by editing the transcript. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Fin-style support agent](https://miosa.ai/docs/build/intercom-fin.md): Fin: An AI support agent resolving customer tickets. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Decagon-style support agent](https://miosa.ai/docs/build/decagon.md): Decagon: Resolve tickets across chat and email, with handoff. Build it on MIOSA with the exact resources, steps and commands.
- [Build a Clay-style sales agent](https://miosa.ai/docs/build/clay.md): Clay: Research and enrich leads at scale. Build it on MIOSA with the exact resources, steps and commands.
- [Build a post-call analysis agent](https://miosa.ai/docs/build/gong.md): Gong: Turn call transcripts into sourced insights and next steps. Build it on MIOSA with the exact resources, steps and commands.
- [Build an OpenEvidence-style evidence engine](https://miosa.ai/docs/build/openevidence.md): OpenEvidence: Cited answers over a trusted corpus. Build it on MIOSA with the exact resources, steps and commands.
- [Build an internal Business OS](https://miosa.ai/docs/build/business-os.md): BusinessOS is MIOSA's own Apache-2.0 internal company OS. Clone the real repo, run it on a MIOSA sandbox or computer, preview it, customize the modules, and publish it behind your own domain.
- [Build an internal AI workspace](https://miosa.ai/docs/build/team-ai-workspace.md): Internal AI workspace: One place for your team's agents, apps, and data. Build it on MIOSA with the exact resources, steps and commands.
- [Build an ops and support copilot](https://miosa.ai/docs/build/ops-support-copilot.md): Ops and support copilot: Triage tickets and run runbooks, with human approval. Build it on MIOSA with the exact resources, steps and commands.
- [Build an internal tools builder](https://miosa.ai/docs/build/internal-tools-builder.md): Internal tools builder: Prompt to a shipped dashboard behind your domain. Build it on MIOSA with the exact resources, steps and commands.
- [Build a knowledge-base agent](https://miosa.ai/docs/build/knowledge-base-agent.md): Knowledge-base agent: Answer from the company docs with citations. Build it on MIOSA with the exact resources, steps and commands.
- [Build an employee onboarding agent](https://miosa.ai/docs/build/employee-onboarding-agent.md): Employee onboarding agent: Walks a new hire through their first week. Build it on MIOSA with the exact resources, steps and commands.

## CLI, SDKs & MCP

- [CLI or MCP: which to use](https://miosa.ai/docs/cli/cli-vs-mcp.md): The miosa CLI is for humans and scripts in a terminal; MCP gives AI clients the same capabilities as tools. Both use the same API key and scopes.
- [CLI overview](https://miosa.ai/docs/cli.md): The miosa command line tool. Install, sign in, and drive sandboxes, computers, agents, deployments and every platform resource from the terminal.
- [Account and environment](https://miosa.ai/docs/cli/account.md): Check who you are, which organization pays, the organization's members and limits, and the CLI version.
- [Machines and lifecycle](https://miosa.ai/docs/cli/machines.md): Create, list, inspect, stop, fork, recover and destroy sandboxes and computers with the miosa CLI.
- [Run commands and move files](https://miosa.ai/docs/cli/work-inside.md): exec, ssh, console, files, background processes, services, logs, ports and public previews in a sandbox.
- [Snapshots, checkpoints and restore](https://miosa.ai/docs/cli/snapshots.md): Browse, name, fork and delete snapshots of sandboxes and computers, plus checkpoints and restore.
- [Environments](https://miosa.ai/docs/cli/environments.md): The template a new sandbox or computer starts from: repositories, variables, secret files and credentials, with immutable versions.
- [Agents, chats and runs](https://miosa.ai/docs/cli/agents.md): Run agents on a sandbox or computer, manage saved agent definitions, chats and durable runs, and see how runs stream.
- [Platform resources](https://miosa.ai/docs/cli/platform.md): Deployments, databases, storage, volumes, workflows, schedules, functions, templates, hosts, forge, cloud, egress and the AI gateway from the miosa CLI.
- [Access, org and billing](https://miosa.ai/docs/cli/access-billing.md): API keys, service accounts, webhooks, members, billing, audit log, alerts and notifications from the miosa CLI.
- [Raw API access](https://miosa.ai/docs/cli/api.md): Call any MIOSA API endpoint from the CLI with your stored credentials, using miosa api.
- [Config and profiles](https://miosa.ai/docs/cli/config.md): Named sign-ins and defaults in ~/.miosa/config.toml, plus the config commands, options and environment variables.
- [JSON output and scripting](https://miosa.ai/docs/cli/scripting.md): Machine-readable output, streaming, error shapes, exit codes and CI patterns for the miosa CLI.
- [Devices](https://miosa.ai/docs/cli/devices.md): miosa device is one surface over every runtime kind you can run work on - sandboxes, computers and more - for listing, exec, files, ports and lifecycle.
- [SDKs overview](https://miosa.ai/docs/sdks.md): Official MIOSA client libraries for TypeScript, Python, Go, Elixir, Java and Rust, with package names, versions, install commands and status.
- [TypeScript SDK](https://miosa.ai/docs/sdks/typescript.md): Install, authenticate and use @miosa/sdk 3.7.1 - sandboxes, exec, files, snapshots, computers, agents and typed errors.
- [Python SDK](https://miosa.ai/docs/sdks/python.md): Install, authenticate and use the miosa Python SDK 2.16.5 - sync and async, sandboxes, exec, files, snapshots, computers, agents and typed errors.
- [Go SDK](https://miosa.ai/docs/sdks/go.md): Install, authenticate and use the miosa-go v2 SDK - sandboxes, exec, files, snapshots, computers, agent runs and typed errors.
- [Elixir SDK](https://miosa.ai/docs/sdks/elixir.md): Install, authenticate and use the miosa Elixir SDK 1.1.0 - sandboxes, exec, files, snapshots, computers, agents and typed errors.
- [Java SDK](https://miosa.ai/docs/sdks/java.md): Install, authenticate and use the miosa Java SDK 0.5.1 - sandboxes, exec, files, snapshots, computers, agent runs and thrown exceptions.
- [Rust SDK](https://miosa.ai/docs/sdks/rust.md): Install, authenticate and use the miosa Rust SDK 0.1.0 - sandboxes, exec, files, computers, agents and a typed error enum.
- [Egress SDK reference](https://miosa.ai/docs/sdks/egress.md): Every Secrets, Connect Accounts, Network Allowlist, and Audit Log SDK method across Python, TypeScript, Go, Java, and Elixir - side by side.
- [MCP overview](https://miosa.ai/docs/mcp.md): Connect OSA, Claude Code, Codex, Cursor, Hermes or Claude Desktop to the MIOSA MCP server for sandboxes, computers, deployments, storage and 151 tools across the platform.
- [Install and authenticate](https://miosa.ai/docs/mcp/install.md): Choose the hosted MIOSA MCP endpoint or the local stdio package, create a key, and set organization context.
- [Tools reference](https://miosa.ai/docs/mcp/tools.md): All MIOSA MCP tools, grouped by family. This overview covers workspaces, billing, and API keys; the tool families link to their own pages.
- [Sandbox tools](https://miosa.ai/docs/mcp/tools/sandboxes.md): Hosted MIOSA MCP sandbox tools: create, exec, files, previews, deploy, snapshots and templates.
- [Computer tools](https://miosa.ai/docs/mcp/tools/computers.md): Hosted MIOSA MCP computer tools: lifecycle, files, checkpoints, env, domains, and the desktop surface (screen, pointer, keyboard, windows).
- [Deployment tools](https://miosa.ai/docs/mcp/tools/deployments.md): Hosted MIOSA MCP deployment tools: deployments, Docker Host, versions, env, and logs.
- [Data tools](https://miosa.ai/docs/mcp/tools/data.md): Hosted MIOSA MCP data tools: managed databases and object storage.
- [Platform tools](https://miosa.ai/docs/mcp/tools/platform.md): Hosted MIOSA MCP platform tools: computer services, cron, volumes, webhooks, functions, and regions.
- [Advanced MCP setup](https://miosa.ai/docs/mcp/advanced.md): How the MIOSA MCP server works, per-client configuration for Claude Code, Cursor, and Windsurf, environment variable reference, worked usage examples, troubleshooting, and security considerations.
- [Tool server catalog](https://miosa.ai/docs/mcp/catalog.md): Add an official tool server in one step, test its key before saving, and keep the key in the workspace vault.

## API reference

- [Authentication](https://miosa.ai/docs/authentication.md): How to authenticate with the MIOSA API using msk_ API keys or JWT tokens.
- [Fundamental Concepts](https://miosa.ai/docs/fundamentals.md): The mental model every MIOSA integrator needs - workspace, authentication, resources, attribution, idempotency, rate limits, errors, and events.
- [Authentication](https://miosa.ai/docs/fundamentals/authentication.md): API keys, browser tokens, and the five MIOSA token types with their prefixes, callers, and trust levels.
- [Requests, limits, and errors](https://miosa.ai/docs/fundamentals/requests.md): Idempotency keys, rate limits and quota headers, and the MIOSA error envelope with its HTTP status codes.
- [Events (SSE)](https://miosa.ai/docs/fundamentals/events.md): Stream progress over Server-Sent Events using one-time tickets - per-resource streams, the tenant-wide stream, and the event catalog.
- [Ownership and external attribution](https://miosa.ai/docs/fundamentals/attribution.md): Canonical ownership fields, opaque external attribution, and usage rollup for platforms that resell MIOSA to their own customers.
- [Tenant configuration](https://miosa.ai/docs/fundamentals/tenant-config.md): Tenant-level API surfaces for white-label integrators - webhook subscriptions and per-end-user quotas.
- [Rate limits](https://miosa.ai/docs/rate-limits.md): The per-workspace and per-endpoint API request limits, how to read the rate-limit headers, and how to back off on 429.
- [Regions](https://miosa.ai/docs/regions.md): Which regions MIOSA runs in, what is region-local, how to pin a sandbox or computer to one, and the cross-region story.
- [API Reference](https://miosa.ai/docs/api-reference.md): REST API reference for the MIOSA platform - base URL, auth, request/response envelopes, and endpoint guides.
- [Interactive API Reference](https://miosa.ai/docs/api.md): Browse and try the allowlisted MIOSA Sandbox V1 API interactively. Use the written endpoint guides for the wider platform API.
- [Error Codes](https://miosa.ai/docs/api-reference/errors.md): Every error code the MIOSA API returns, what it means, and how to handle it.
- [Events (SSE)](https://miosa.ai/docs/api-reference/events.md): Server-Sent Event streams for real-time updates from sandboxes, computers, deployments, and builds.
- [Regions API](https://miosa.ai/docs/api-reference/regions.md): List available regions and pin Computers and Sandboxes to a specific region.
- [Sandboxes API](https://miosa.ai/docs/api-reference/sandboxes.md): API reference for creating, managing, and executing code in MIOSA sandboxes - persistent-by-default isolated microVM workspaces.
- [Sandboxes API - create and run](https://miosa.ai/docs/api-reference/sandboxes/create.md): Create a MIOSA sandbox, use the fused run endpoint, start a template app, get artifacts, and the custom-template boundary.
- [Sandboxes API - manage](https://miosa.ai/docs/api-reference/sandboxes/manage.md): List, get, destroy, pause, resume, restart, fork, extend the timeout, and read usage for MIOSA sandboxes.
- [Previews and publish API](https://miosa.ai/docs/api-reference/previews.md): Expose a sandbox port as a preview URL, publish a sandbox to a stable deployment, and promote a running sandbox to a deployment route.
- [Exec API](https://miosa.ai/docs/api-reference/exec.md): API reference for executing bash commands and Python code on MIOSA computers.
- [Streaming Exec API](https://miosa.ai/docs/api-reference/streaming-exec.md): API reference for streaming command output in real-time from MIOSA computers via SSE.
- [Filesystem API](https://miosa.ai/docs/api-reference/filesystem.md): Complete API reference for file and directory operations on MIOSA computers - upload, download, stat, mkdir, rename, copy, chmod, and readdir.
- [Files API](https://miosa.ai/docs/api-reference/files.md): API reference for file upload, download, list, export, and delete operations.
- [Sandbox Files (Advanced) API](https://miosa.ai/docs/api-reference/sandbox-files-advanced.md): Upload a file, write bytes as well as text, traverse the file tree, batch write, and watch file-change events in a sandbox.
- [Sandbox Processes API](https://miosa.ai/docs/api-reference/sandbox-processes.md): Start, monitor, and stream logs for long-running background processes inside sandboxes.
- [Sandbox Env API](https://miosa.ai/docs/api-reference/sandbox-env.md): CRUD for per-sandbox environment variables, encrypted at rest.
- [Snapshots API](https://miosa.ai/docs/api-reference/snapshots.md): API reference for creating, listing, and restoring microVM snapshots (checkpoints).
- [Sandbox Templates API](https://miosa.ai/docs/api-reference/sandbox-templates.md): The templates that stage content inside the one sandbox image, the legacy image ids that are aliases, and how to create a sandbox from a template.
- [Sandbox Shares API](https://miosa.ai/docs/api-reference/sandbox-shares.md): Create and manage public share URLs for sandboxes.
- [Preview Tokens API](https://miosa.ai/docs/api-reference/preview-tokens.md): Generate short-lived signed tokens for iframe embedding without exposing an API key.
- [Computers API](https://miosa.ai/docs/api-reference/computers.md): API reference for creating, managing, and controlling MIOSA computers - full lifecycle, desktop control, files, metrics, and env vars.
- [Desktop API](https://miosa.ai/docs/api-reference/desktop.md): API reference for all desktop control endpoints - screenshot, mouse, keyboard, clipboard, windows, accessibility tree.
- [OpenComputers API](https://miosa.ai/docs/api-reference/open-computers.md): Register and control customer-owned machines, including on-premises servers, via the MIOSA API - exec, files, tunnels, AI agents, inference clusters, and secrets.
- [Cloud and BYOC API](https://miosa.ai/docs/api-reference/cloud.md): Organization-scoped AWS and GCP accounts, regions, pools, nodes, preflight, and host provisioning.
- [Services API](https://miosa.ai/docs/api-reference/services.md): API reference for managing long-running systemd services inside MIOSA computers.
- [Agent Runs](https://miosa.ai/docs/api-reference/agent-runs.md): Dispatch prompts into MIOSA devices with a stable run response shape for agent work.
- [Agent Run Groups](https://miosa.ai/docs/api-reference/agent-run-groups.md): Create durable multi-agent orchestration groups, dispatch run manifests, inspect counts, and cancel grouped work.
- [Agent Runtime Profiles](https://miosa.ai/docs/api-reference/agent-runtime-profiles.md): Configure reusable agent runtime defaults for sandboxes, computers, and custom agent sessions.
- [Runtime Env](https://miosa.ai/docs/api-reference/runtime-env.md): Store inherited runtime environment variables for sandboxes, computers, agents, and deployments.
- [API Reference / Deployments](https://miosa.ai/docs/api-reference/deployments.md): REST API for the Deployment resource - create, list, get, update, delete, publish, rollback.
- [API Reference / Docker Host](https://miosa.ai/docs/api-reference/docker-deploy.md): REST API for Docker Host templates, workspace hosts, and sandbox-to-container publishing.
- [API Reference / Versions](https://miosa.ai/docs/api-reference/versions.md): Immutable deployment version sub-resource. List, get, promote, archive.
- [Releases API](https://miosa.ai/docs/api-reference/releases.md): Inspect and activate exact immutable deployment artifacts.
- [Databases API](https://miosa.ai/docs/api-reference/databases.md): Provision and operate managed databases, backups, restores, branches, replicas, credentials, and placement.
- [Custom Domains API](https://miosa.ai/docs/api-reference/custom-domains.md): API reference for mapping tenant-owned FQDNs to MIOSA previews with automatic TLS.
- [Projects API](https://miosa.ai/docs/api-reference/projects.md): API reference for creating and managing projects inside MIOSA workspaces.
- [Invites API](https://miosa.ai/docs/api-reference/invites.md): API reference for the workspace invite and org invite flows - send, list, revoke, preview, and accept email invitations.
- [Credits API](https://miosa.ai/docs/api-reference/credits.md): API reference for checking credit balance, transaction history, and usage data.
- [Quotas API](https://miosa.ai/docs/api-reference/quotas.md): Set per-end-user resource limits for white-label multi-tenant deployments.
- [Usage Rollup API](https://miosa.ai/docs/api-reference/usage-rollup.md): Aggregate sandbox compute usage and spend by external user, project, or workspace.
- [Audit Log API](https://miosa.ai/docs/api-reference/audit-log.md): Retrieve a cursor-paginated audit log of all actions taken within your tenant.
- [Webhooks API](https://miosa.ai/docs/api-reference/webhooks.md): Subscribe to platform lifecycle events via outgoing HTTP callbacks with HMAC signature verification.
- [Tenant Branding API](https://miosa.ai/docs/api-reference/tenant-branding.md): Customize the logo, name, and colors shown on sandbox 404 and 502 error pages.
- [Tenant Preview Domain API](https://miosa.ai/docs/api-reference/tenant-preview-domain.md): Configure a custom apex domain for sandbox preview URLs (white-label).
- [Tenant Events (SSE) API](https://miosa.ai/docs/api-reference/tenant-events.md): Subscribe to a real-time server-sent event stream of all tenant-wide platform events.
- [Network Policy API](https://miosa.ai/docs/api-reference/network-policy.md): API reference for configuring per-computer network access controls on MIOSA computers.
- [Egress (Security) API](https://miosa.ai/docs/api-reference/egress.md): API reference for the MIOSA Egress credential vault, network allowlist, OAuth Connect, and audit log.

## Organization & billing

- [Workspaces API](https://miosa.ai/docs/api-reference/workspaces.md): API reference for creating and managing MIOSA workspaces - the customer/client layer inside an organization.
- [Workspace Members API](https://miosa.ai/docs/api-reference/members.md): API reference for managing workspace member rosters - add, remove, and update roles for users inside a workspace.
- [API Keys](https://miosa.ai/docs/platform/api-keys.md): User and platform API keys for personal tools, backend automation, and scoped MIOSA API access.
- [Pricing and limits](https://miosa.ai/docs/pricing.md): What a sandbox costs per hour, what a plan buys, how many sandboxes you can run and start, and how that compares to other providers.
- [Plans and limits](https://miosa.ai/docs/plans-and-limits.md): The four MIOSA plans, what each includes, and the limits per service and per account.
- [Usage & Billing](https://miosa.ai/docs/platform/usage-and-billing.md): Track MIOSA usage per workspace, per project, per external customer, and per user. Chargeback to your customers.

## Security & compliance

- [Security](https://miosa.ai/docs/security.md): Built-in credential vault, outbound network controls, and audit log on every MIOSA sandbox and computer. No setup. Free on all plans.
- [API keys](https://miosa.ai/docs/security/api-keys.md): Create, scope, rotate and revoke the keys programs use, with the presets and limits the platform enforces.
- [Audit Log](https://miosa.ai/docs/security/audit-log.md): Egress audit log for outbound calls: rows, live tail, filters and export. Capture is not yet enabled in the current release.
- [Data retention and deletion](https://miosa.ai/docs/data-retention.md): What MIOSA keeps, for how long, and what "delete" actually removes for sandboxes, snapshots, the audit log, usage records, and stored data.
- [Shared responsibility](https://miosa.ai/docs/infrastructure/shared-responsibility.md): Responsibility boundaries for MIOSA-managed, on-premises servers connected through OpenComputers, and customer-cloud infrastructure.
- [Security  -  Troubleshooting](https://miosa.ai/docs/security/troubleshooting.md): Top 15 issues across MIOSA Secrets, Connect Accounts, Network Allowlist, Audit Log, and White-label Credentials - with root causes and fixes.

## Self-hosting

- [Infrastructure options](https://miosa.ai/docs/infrastructure/overview.md): Choose where workloads run: MIOSA-managed compute, on-premises servers through OpenComputers, or customer-cloud regions.
- [Bring Your Own Cloud](https://miosa.ai/docs/infrastructure/byoc/overview.md): Run MIOSA worker capacity inside a customer AWS account or GCP project while MIOSA orchestrates the product.
- [AWS customer-cloud regions](https://miosa.ai/docs/infrastructure/byoc/aws.md): Architecture and readiness contract for running MIOSA worker capacity inside a customer AWS account.
- [Google Cloud customer-cloud regions](https://miosa.ai/docs/infrastructure/byoc/gcp.md): Architecture and readiness contract for running MIOSA worker capacity inside a customer GCP project.
- [External computer providers](https://miosa.ai/docs/integrations/external-computers.md): Which kinds of compute MIOSA can run on today, and why connecting a third-party sandbox or desktop provider is not offered.
- [Compute provider comparison](https://miosa.ai/docs/integrations/comparison.md): How MIOSA's published compute rates compare with Freestyle, E2B, Railway and Vercel Sandbox. Competitor prices checked 2026-10-20.

## Help

- [FAQ](https://miosa.ai/docs/faq.md): Short answers to the questions that come up most, grouped by topic: getting started, sandboxes and computers, agents, browser use, pricing, security, and support.
- [Getting started](https://miosa.ai/docs/faq/getting-started.md): Where to start, how to authenticate, install the CLI, get an API key, attach IDs to a sandbox, and pick a region.
- [Sandboxes and computers](https://miosa.ai/docs/faq/sandboxes-and-computers.md): Sandbox vs Computer, the default sandbox, run length, states, pausing, and snapshots.
- [Browser and computer use](https://miosa.ai/docs/faq/browser-and-computer-use.md): Where browser automation runs, what starting a browser returns, CDP, live takeover, and billing.
- [Agents](https://miosa.ai/docs/faq/agents.md): Supported harnesses, creating and running an agent, OSA, model keys, and where agents run.
- [SOMA and runtimes](https://miosa.ai/docs/faq/runtimes.md): What SOMA is, the default runtime, how to select one, access requests, and availability.
- [White-label and platform builders](https://miosa.ai/docs/faq/white-label.md): White-label architecture, branded URLs, end-user auth, billing your customers, and branding.
- [Business OS and internal use](https://miosa.ai/docs/faq/business-os.md): Running your own company on MIOSA, connectors, device choice, and platform checklists.
- [Security and compliance](https://miosa.ai/docs/faq/security-and-compliance.md): SOC 2, HIPAA, where data lives, how secrets are stored, retention, and publishable keys.
- [Pricing and limits](https://miosa.ai/docs/faq/pricing-and-limits.md): What you are billed for, paused cost, named sizes, hard caps, rate limits, and credits.
- [Support](https://miosa.ai/docs/faq/support.md): How to get help, what to include in a request, status and changes, and the community.
- [Troubleshooting](https://miosa.ai/docs/troubleshooting.md): The front door for things that are not working: sandbox, exec, preview, secret, network, and deploy failures, and where to look for each.
- [Support](https://miosa.ai/docs/support.md): How to reach the MIOSA team, what to include so a ticket resolves fast, and where to check status and what has shipped.

## Optional

- [Learn MIOSA your way](https://miosa.ai/docs/learn.md): Learn MIOSA your way - read the basics, learn the words, or play the games - then follow five steps from zero to production.
- [Learn and earn](https://miosa.ai/docs/learn/earn.md): Earn up to $100 in credits by learning MIOSA - learn the words and play the games, then pass a short final in each. The videos track pays $30 and opens when the videos are ready.
- [MIOSA Glossary](https://miosa.ai/docs/glossary.md): Plain-language definitions for MIOSA resources, services, deployment stages, domains, on-premises infrastructure, OpenComputers, Optimal, agent workflows, data, and billing. Search by topic, study with flashcards, and link straight to any term.
- [Learn with games](https://miosa.ai/docs/learn/games.md): Learn how MIOSA works by playing. One puzzle game for each part of the path, from the words to building a product, with no timers and wording for your level, from like I'm 9 to technical.
- [Learn with videos](https://miosa.ai/docs/learn/videos.md): Every MIOSA video in one place - each topic explained through the documentation's code, and clicked through in the console.
- [Core Concepts](https://miosa.ai/docs/concepts.md): The canonical MIOSA product model, from mutable sandboxes to immutable releases, stable deployments, persistent data, and customer-owned infrastructure.
- [Resource model](https://miosa.ai/docs/concepts/resource-model.md): The MIOSA ownership chain and the mutable development resources - Organization, Workspace, Project, Sandbox, and Preview.
- [The publish pipeline](https://miosa.ai/docs/concepts/publish-pipeline.md): Builder, Release, Runtime Instance, Domain, Deployment, and Version - how a mutable Sandbox becomes an immutable, verified production release.
- [Computers (desktop product)](https://miosa.ai/docs/concepts/computers-desktop.md): The MIOSA cloud desktop product: full GUI environments with screenshot, click, type, and keyboard APIs, and how they differ from Sandboxes.
- [Tenancy](https://miosa.ai/docs/concepts/tenancy.md): White-label tenancy and external attribution - how platforms build a product on MIOSA and map MIOSA resources to their own customers.
- [Tenant configuration](https://miosa.ai/docs/concepts/tenant-config.md): Tenant preview domain and tenant branding - the apex hostname that replaces the MIOSA fallback preview domain and the error pages your end users see.
- [Data and bindings](https://miosa.ai/docs/concepts/data-and-bindings.md): Managed Postgres, Redis, object storage, volumes, and auth - the durable resources a Deployment attaches to, and how bindings inject credentials.
- [Preview and share tokens](https://miosa.ai/docs/concepts/tokens.md): Short-lived preview tokens (mp_*) and revocable share tokens (ms_*) for loading a sandbox preview in a browser without exposing a workspace key.
- [MIOSA vs other platforms](https://miosa.ai/docs/compare.md): How MIOSA compares to Railway, Render, Fly.io, E2B, Daytona, Modal, Vercel, Cloudflare, Freestyle, Runloop, Blaxel, Beam, boat and CodeSandbox, using independent benchmark data and each vendor's public documentation as of 2026-10-23.
- [MIOSA vs Railway](https://miosa.ai/docs/compare/railway.md): A factual comparison of MIOSA and Railway for running services, using Railway's public documentation as of 2026-10-23.
- [MIOSA vs Render](https://miosa.ai/docs/compare/render.md): A factual comparison of MIOSA and Render for running services, using Render's public documentation as of 2026-10-23.
- [MIOSA vs Fly.io](https://miosa.ai/docs/compare/fly.md): A factual comparison of MIOSA and Fly.io for running apps and machines, using Fly.io's public documentation as of 2026-10-23.
- [MIOSA vs E2B](https://miosa.ai/docs/compare/e2b.md): A factual comparison of MIOSA and E2B, using the independent ComputeSDK benchmark and E2B's public documentation as of October 2026.
- [MIOSA vs Daytona](https://miosa.ai/docs/compare/daytona.md): A factual comparison of MIOSA and Daytona, using the independent ComputeSDK benchmark and Daytona's public documentation as of October 2026.
- [MIOSA vs Modal](https://miosa.ai/docs/compare/modal.md): A factual comparison of MIOSA and Modal, using the independent ComputeSDK benchmark and Modal's public documentation as of October 2026.
- [MIOSA vs Vercel Sandbox](https://miosa.ai/docs/compare/vercel.md): A factual comparison of MIOSA and Vercel Sandbox, using the independent ComputeSDK benchmark and Vercel Sandbox's public documentation as of October 2026.
- [MIOSA vs Cloudflare Sandboxes](https://miosa.ai/docs/compare/cloudflare.md): A factual comparison of MIOSA and Cloudflare Sandboxes, using the independent ComputeSDK benchmark and Cloudflare Sandboxes's public documentation as of October 2026.
- [MIOSA vs Freestyle](https://miosa.ai/docs/compare/freestyle.md): A factual comparison of MIOSA and Freestyle, using the independent ComputeSDK benchmark and Freestyle's public documentation as of October 2026.
- [MIOSA vs Runloop](https://miosa.ai/docs/compare/runloop.md): A factual comparison of MIOSA and Runloop, using the independent ComputeSDK benchmark and Runloop's public documentation as of October 2026.
- [MIOSA vs Blaxel](https://miosa.ai/docs/compare/blaxel.md): A factual comparison of MIOSA and Blaxel, using the independent ComputeSDK benchmark and Blaxel's public documentation as of October 2026.
- [MIOSA vs Beam](https://miosa.ai/docs/compare/beam.md): A factual comparison of MIOSA and Beam, using the independent ComputeSDK benchmark and Beam's public documentation as of October 2026.
- [MIOSA vs boat](https://miosa.ai/docs/compare/boat.md): A factual comparison of MIOSA and boat (boat.dev), cloud sandboxes for AI agents, using boat's public documentation as of 2026-10-23.
- [MIOSA vs CodeSandbox](https://miosa.ai/docs/compare/codesandbox.md): A factual comparison of MIOSA and CodeSandbox, using the independent ComputeSDK benchmark and CodeSandbox's public documentation as of October 2026.
- [Changelog](https://miosa.ai/docs/changelog.md): Customer-facing updates to MIOSA products, platform capabilities, SDKs, CLI tools, and documentation.
- [Moving from Vercel](https://miosa.ai/docs/migrate/vercel.md): Import a Vercel project with miosa import vercel, review the plan, and what carries over.
- [Migrating from miosa-sandbox](https://miosa.ai/docs/migrating-from-miosa-sandbox.md): Move off the deprecated @miosa/sandbox, miosa-sandbox, and sandboxes-go packages onto the canonical MIOSA SDKs.
- [Availability & Roadmap](https://miosa.ai/docs/availability.md): Current MIOSA product availability, what is generally available, what is in hardening, and what is planned next.
- [Known Limitations](https://miosa.ai/docs/known-limitations.md): An honest list of what doesn't work yet, what's in progress, and what's intentionally out of scope. Updated continuously.
- [Recovery Playbooks](https://miosa.ai/docs/operations/recovery.md): Symptom-first recovery procedures for deployments, domains, TLS, Docker Host hosts, sandboxes, and production rollback.
- [Evaluations](https://miosa.ai/docs/evaluations.md): Measure sandbox, desktop, and agent workflows with reproducible tasks, traces, and desktop-readiness benchmarks.
- [Benchmarks](https://miosa.ai/docs/benchmarks.md): MIOSA's results in the independent ComputeSDK benchmarks. Burst time-to-interactive and DAX sandbox builds, every run, with links to the raw JSON.
- [Agent docs index (/docs/llms.txt)](https://miosa.ai/docs/llms.txt): canonical alias of /llms.txt served as text/markdown.
- [OpenAPI specification](https://miosa.ai/openapi.yaml): the machine-readable contract of the public API.
- [Docs index JSON](https://miosa.ai/docs-index.json): every page with its headings, as JSON.
- [Full documentation](https://miosa.ai/llms-full.txt): every page below, concatenated as Markdown.
