NodeOps
UK

Examples

Runnable, self-contained programs, one per directory under examples/. Each ships an .env.example listing the keys it needs; copy it to .env, fill it in, and run the entry file with bun.

This index is generated from examples/manifest.json. Edit the manifest, then run bun run docs:gen; do not hand-edit this file.

At a glance

  • Package: @nodeops-createos/sandbox (npm)
  • Import: import { createClient } from "@nodeops-createos/sandbox"
  • Base URL: https://api.sb.createos.sh (override with CREATEOS_SANDBOX_BASE_URL)
  • Auth: API key via the apiKey option or CREATEOS_SANDBOX_API_KEY

AI agents & frameworks

#ExampleWhat it showsSetup
0404-ai-code-agentUse a sandbox as the code-execution environment for a Claude agent.None
0606-openai-agents-fc-toolsExpose sandbox operations as tools to the OpenAI Agents SDK.None
0909-mcp-claude-codeRun the Claude Code CLI inside a sandbox.None
1010-mcp-browserbaseRun the Browserbase MCP server in a sandbox, driven by Claude.extra setup
1212-radicle-multi-agentThree networked sandboxes running a Radicle p2p git mesh with role-specialized agents.None
1313-llamaindex-ragBuild a LlamaIndex vector index; persist it across pause/resume.None
1515-acp-hello-worldRun an Agent Client Protocol agent in a sandbox over JSON-RPC.None
1616-firecrawl-scrape-analyzeScrape pages with Firecrawl, have Claude write analysis code, run it, pull the chart.None
1717-analyze-data-with-aiUpload a CSV, have Claude write the analysis from its schema, read back the chart.None
1818-text-embeddings-serverServe a CPU embeddings model as a long-lived service over ingress.None
1919-batch-inference-fanoutShard a classification job across many sandboxes in parallel.None
2020-google-adk-agentDrive a Google ADK agent whose tools run inside a VM.None
3232-langgraph-sandbox-orchestratorModel sandbox operations as LangGraph nodes with an OpenAI LLM.None
3333-codex-cliRun the OpenAI Codex CLI in a sandbox to execute a task.None
3434-openclaw-gatewayRun the OpenClaw gateway over ingress and verify /v1/models.None
3535-aio-sandboxAll-in-one tour exercising every core primitive in one run.None
3636-self-hosted-agent-workerBack a Claude Managed Agent with one persistent VM for tool execution.extra setup
3737-self-hosted-sandbox-per-sessionBack a Claude Managed Agent with a fresh VM per session.extra setup
4444-claude-changelog-generatorClone a public git repo inside a sandbox, run the commit log through the Claude Messages API, and download the generated CHANGELOG.md.extra setup
4545-claude-github-wikiClone a public GitHub repo into a sandbox and run a Claude tool-use agent that reads the file tree to answer questions about the codebase.None
4646-mastra-agentInstall the Mastra TypeScript agent framework inside a createos-sandbox VM, upload an agent script, run it against an OpenAI-compatible provider, and capture the response.None
4747-effective-agents-patternsRun three LLM agent patterns (prompt-chaining, routing, parallelization) using the Vercel AI SDK inside a createos-sandbox sandbox, with an OpenAI-compatible model proxy.None

Dev servers & preview URLs

#ExampleWhat it showsSetup
0303-dev-server-preview-urlBind an HTTP server and reach it via a per-sandbox ingress preview URL.None
0808-dev-server-git-previewClone a repo, start a dev server, expose it via a live ingress URL.None
2121-astro-sandboxScaffold an Astro site, run astro dev, reach it via ingress.None
2222-opencode-serverRun the OpenCode headless HTTP server over ingress.None
2525-prometheus-pushgatewayRun a Prometheus Pushgateway, push a metric, scrape it via ingress.None
2727-fastapi-appServe a FastAPI app over ingress and verify its routes.None
2828-code-server-vscodeRun code-server (VS Code in the browser) over ingress.None
3030-headless-chromium-devtoolsRun headless Chrome with the CDP port exposed via ingress.None

Code execution & data

#ExampleWhat it showsSetup
0101-hello-worldSmoke test: create a sandbox, run one buffered command, destroy it.None
0202-code-interpreterUpload a Python script, run it, capture stdout/stderr. Includes a streaming variant.None
1111-tigerfs-postgres-filesystemRun PostgreSQL on a TigerFS filesystem layer in one VM.None
2626-s3-bucket-mountQuery a public S3 bucket via DuckDB httpfs inside a sandbox.None
2929-playwright-headless-browserRun Playwright + headless Chromium to scrape and extract the DOM.None
3131-git-clone-lsp-typescriptClone a TS repo and drive typescript-language-server over stdio.None
4141-python-pdf-extractorUpload a fillable PDF into a sandbox, pip-install PyMuPDF, extract every form-field name and value to JSON, and download the result, with no external API required.None
4242-doc-to-markdownUpload a local document (HTML, DOCX, PDF, …) into a createos-sandbox sandbox, convert it to Markdown with Microsoft MarkItDown (pip-installed inside the guest), and download the result.None
4343-crawl4ai-crawlerInstall Crawl4AI and Playwright/Chromium inside a VM, crawl a public URL to Markdown, download the output to the host.None

Disks, networks & templates

#ExampleWhat it showsSetup
0707-docker-custom-templateBuild a custom rootfs template from a Dockerfile, then run containers inside the VM.None
3838-s3-disk-ffmpeg-transcodeRegister an S3-backed disk, mount at boot, transcode with ffmpeg, detach, destroy.extra setup

Lifecycle, snapshots & cost

#ExampleWhat it showsSetup
0505-filesystem-snapshotsSnapshot/branch a sandbox: pause, fork, resume the clone.None
1414-jupyter-singletonKeep a persistent Python kernel over a socket; pause and fork two branches.None
3939-bandwidth-rechargeRead a sandbox's bandwidth quota and grow it after create with rechargeBandwidth (create no longer accepts bandwidth_quota_bytes).None
4040-idle-auto-pauseSet an idle auto-pause timeout at create with auto_pause_after_seconds and change it live with setAutoPause(secondsnull) so an idle sandbox stops billing.

Notes

  • 02 code-interpreter: Streaming exec currently 404s on the control plane; the buffered path is the default.
  • 03 dev-server-preview-url: Use http:// previews unless your ingress wildcard has a real TLS cert.
  • 10 mcp-browserbase (needs extra setup): Needs a Browserbase account.
  • 14 jupyter-singleton: Fork can occasionally stick in 'pausing' on the control plane.
  • 36 self-hosted-agent-worker (needs extra setup): Needs Anthropic managed-agents access.
  • 37 self-hosted-sandbox-per-session (needs extra setup): Needs Anthropic managed-agents access.
  • 38 s3-disk-ffmpeg-transcode (needs extra setup): Needs an S3-compatible bucket reachable from the createos-sandbox agent.
  • 43 crawl4ai-crawler: Heavy install step (~600 s); needs s-4vcpu-4gb for Chromium headroom.
  • 44 claude-changelog-generator (needs extra setup): Needs ANTHROPIC_AUTH_TOKEN + ANTHROPIC_BASE_URL (or ANTHROPIC_API_KEY) for the Claude Messages API inside the sandbox.
  • 46 mastra-agent: Requires an OpenAI-compatible provider (OPENAI_API_URL + OPENAI_API_KEY + OPENAI_MODEL). OTEL_SDK_DISABLED=true is injected into the sandbox to prevent Mastra's OpenTelemetry flush from blocking exit.
  • 47 effective-agents-patterns: ai and @ai-sdk/openai are installed inside the sandbox, not on the host. ci=false because it needs an external LLM proxy.

See also

100,000+ Builders. One Platform.

Get product updates, builder stories, and early access to features that help you ship faster.

NodeOps is the agentic operating system for production AI. CreateOS is its flagship product.