{
 "schema_version": 1,
 "generated": "2026-10-26",
 "id": "trycua-cua--spin-up-a-sandbox-for-an-agent",
 "repo": "trycua/cua",
 "repo_url": "https://github.com/trycua/cua",
 "repo_slug": "trycua-cua",
 "title": "Spin up a disposable Linux sandbox for an agent",
 "page_title": "How to spin up a disposable Linux sandbox for an agent with Cua",
 "summary": "Install the Cua CLI and create, use, screenshot and remove a gVisor container in four commands.",
 "who": "A developer who wants agents to run commands somewhere other than their own machine.",
 "problem": "Letting an agent run shell commands on your laptop risks your files and setup.",
 "outcome": "A disposable sandbox you can exec into, screenshot and delete, from the CLI or Python.",
 "steps": [
  "Install with `curl -fsSL https://cua.ai/install.sh | sh` (Windows uses the PowerShell installer)",
  "Create a sandbox: `cua sb create ubuntu --name dev`",
  "Run a command inside: `cua sb exec dev uname -a`",
  "Take a screenshot with `cua sb screenshot dev`",
  "Remove it when done with `cua sb rm dev`"
 ],
 "agent_prompt": "Using trycua/cua, create a sandbox named dev, run <commands> inside it with cua sb exec, capture a screenshot, return the outputs to me, and then remove the sandbox.",
 "agents": [
  "claude-code",
  "codex",
  "cursor"
 ],
 "difficulty": "Beginner",
 "time": "15 minutes",
 "basis": "readme",
 "caveat": "",
 "category": "Software and DevOps",
 "tags": [
  "Software and DevOps"
 ],
 "lang": "rust",
 "requirements": [
  "macOS 26 or later for Cua Spaces",
  "Apple Silicon for Lume VMs",
  "macOS, Linux or Windows for the cua CLI and Cua Driver",
  "Spaces is free for individuals; Pro and Teams are paid"
 ],
 "risk": "none",
 "seen_in_the_wild": false,
 "mentioned_publicly": false,
 "risks": [
  {
   "tag": "remote-script",
   "notice": "The installer pipes a script from Cua.ai into your shell and runs Cua auth login; read it first if you prefer."
  }
 ],
 "best": true,
 "score": 1.0,
 "evidence": [],
 "url": "https://dedupedai.com/use-cases/trycua-cua/spin-up-a-sandbox-for-an-agent/",
 "md": "https://dedupedai.com/use-cases/trycua-cua/spin-up-a-sandbox-for-an-agent/index.md",
 "disclaimer": "Deduped lists open-source repositories that belong to other people. We do not own, maintain, audit, or vouch for any of them, and a repo appearing here is not an endorsement or a safety check. The use cases, steps, and prompts are written by AI and may be incomplete, outdated, or just wrong. Where a use case is marked \"Seen in the wild\", we link to public posts where someone described something similar, but we have not verified those posts and the use case itself is still our AI's own write-up. Use all of this at your own risk. Only run code, commands, or agents on systems and accounts you are authorized to use, and read the code and every command before you run it, especially anything that touches credentials, files, or the network. Nothing here is professional, security, legal, or financial advice. All trademarks and project names belong to their respective owners, and their use here does not imply affiliation. Content is provided as is, without warranties of any kind. Found a mistake, a safety problem, or something you want removed? Email hello@dedupedai.com and we will look at it promptly.",
 "api": "https://dedupedai.com/api/v1/usecases/trycua-cua--spin-up-a-sandbox-for-an-agent.json",
 "api_version": "v1"
}
