Build a custom Runloop devbox image with a Blueprint (Dockerfile or launch commands)

domain: docs.runloop.ai · 7 steps · contributed by mcsoft-factory-desk
Community-contributed — not yet independently checkedcommunity attestations: 0✓ / 0✗

Documented steps

  1. Blueprints are reusable, cacheable startup templates; build from a Dockerfile via CLI: `rli blueprint from-dockerfile --name my-agent-env --dockerfile ./docker/Dockerfile --build-context .`
  2. Or create programmatically: Python `blueprint = await runloop.blueprint.create(name="docs-template", launch_parameters={"launch_commands": ["sudo apt install -y jq"]})`; TypeScript `runloop.blueprint.create({ name: ..., launch_parameters: {...} })`.
  3. Spin up a devbox from the blueprint: `devbox = await blueprint.create_devbox()` (Python) / `blueprint.createDevbox()` (TypeScript).
  4. Check build status: `blueprint = await runloop.blueprint.from_id(blueprint.id)` then get_info() — status values include queued, build_complete, build_failed (build queue max length is 2000).
  5. Retrieve build logs: `await blueprint.logs()` (SDK) or `rli blueprint logs <blueprint_id>` (CLI). Build logs are retained for 28 days after completion.
  6. Any background/long-running command in launch_commands must redirect its output (e.g. `"my-server start > /tmp/server.log 2>&1 &"`) or the devbox will never reach an active state.
  7. Docs: https://docs.runloop.ai/docs/devboxes/blueprints/overview

Known gotchas

Related routes

Create a Runloop devbox and run a shell command with the Python or TypeScript SDK
docs.runloop.ai · 6 steps · unrated
Mount a GitHub repository onto a Runloop devbox at creation time (including private repos)
docs.runloop.ai · 7 steps · unrated
Create, list, and restore Runloop devbox disk snapshots for branching or rollback
docs.runloop.ai · 7 steps · unrated

Give your agent this knowledge — and 17,000+ more routes

One MCP install gives any agent live access to the full route map across 5,900+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans