This file is auto-generated from metadata in
examples/*.ts. Do not edit this file manually. Runyarn generate:examples-mdinstead.
Runnable examples live in examples/.
- Devbox From Blueprint (Run Command, Shutdown)
- Devbox Snapshot and Resume
- MCP Hub + Claude Code + GitHub
Use case: Create a devbox from a blueprint, run a command, validate output, and cleanly tear everything down.
Tags: devbox, blueprint, commands, cleanup
- Create a blueprint
- Create a devbox from the blueprint
- Execute a command in the devbox
- Validate exit code and stdout
- Shutdown devbox and delete blueprint
RUNLOOP_API_KEY
yarn tsn -T examples/devbox-from-blueprint-lifecycle.tsyarn test:examplesSource: examples/devbox-from-blueprint-lifecycle.ts
Use case: Create a devbox, snapshot its disk, resume from the snapshot, and demonstrate that changes in the original devbox do not affect the clone.
Tags: devbox, snapshot, resume, cleanup
- Create a devbox
- Write a file to the devbox
- Create a disk snapshot
- Create a new devbox from the snapshot
- Modify the file on the original devbox
- Verify the clone has the original content
- Shutdown both devboxes and delete the snapshot
RUNLOOP_API_KEY
yarn tsn -T examples/devbox-snapshot-resume.tsyarn test:examplesSource: examples/devbox-snapshot-resume.ts
Use case: Connect Claude Code running in a devbox to GitHub tools through MCP Hub without exposing raw GitHub credentials to the devbox.
Tags: mcp, devbox, github, commands, cleanup
- Create an MCP config for GitHub
- Store GitHub token as a Runloop secret
- Launch a devbox with MCP Hub wiring
- Install Claude Code and register MCP endpoint
- Run a Claude prompt through MCP tools
- Shutdown devbox and clean up cloud resources
RUNLOOP_API_KEYGITHUB_TOKEN (GitHub PAT with repo scope)ANTHROPIC_API_KEY
GITHUB_TOKEN=ghp_xxx ANTHROPIC_API_KEY=sk-ant-xxx yarn tsn -T examples/mcp-github-tools.tsyarn test:examplesSource: examples/mcp-github-tools.ts