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.
0606-openai-agents-fc-toolsExpose sandbox operations as tools to the OpenAI Agents SDK.
0909-mcp-claude-codeRun the Claude Code CLI inside a sandbox.
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.
1313-llamaindex-ragBuild a LlamaIndex vector index; persist it across pause/resume.
1515-acp-hello-worldRun an Agent Client Protocol agent in a sandbox over JSON-RPC.
1616-firecrawl-scrape-analyzeScrape pages with Firecrawl, have Claude write analysis code, run it, pull the chart.
1717-analyze-data-with-aiUpload a CSV, have Claude write the analysis from its schema, read back the chart.
1818-text-embeddings-serverServe a CPU embeddings model as a long-lived service over ingress.
1919-batch-inference-fanoutShard a classification job across many sandboxes in parallel.
2020-google-adk-agentDrive a Google ADK agent whose tools run inside a VM.
3232-langgraph-sandbox-orchestratorModel sandbox operations as LangGraph nodes with an OpenAI LLM.
3333-codex-cliRun the OpenAI Codex CLI in a sandbox to execute a task.
3434-openclaw-gatewayRun the OpenClaw gateway over ingress and verify /v1/models.
3535-aio-sandboxAll-in-one tour exercising every core primitive in one run.
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.
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.
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.

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

Code execution & data

#ExampleWhat it showsSetup
0101-hello-worldSmoke test: create a sandbox, run one buffered command, destroy it.
0202-code-interpreterUpload a Python script, run it, capture stdout/stderr. Includes a streaming variant.
1111-tigerfs-postgres-filesystemRun PostgreSQL on a TigerFS filesystem layer in one VM.
2626-s3-bucket-mountQuery a public S3 bucket via DuckDB httpfs inside a sandbox.
2929-playwright-headless-browserRun Playwright + headless Chromium to scrape and extract the DOM.
3131-git-clone-lsp-typescriptClone a TS repo and drive typescript-language-server over stdio.
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 — no external API required.
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.
4343-crawl4ai-crawlerInstall Crawl4AI and Playwright/Chromium inside a VM, crawl a public URL to Markdown, download the output to the host.

Disks, networks & templates

#ExampleWhat it showsSetup
0707-docker-custom-templateBuild a custom rootfs template from a Dockerfile, then run containers inside the VM.
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.
1414-jupyter-singletonKeep a persistent Python kernel over a socket; pause and fork two branches.
3939-bandwidth-rechargeRead a sandbox's bandwidth quota and grow it after create with rechargeBandwidth (create no longer accepts bandwidth_quota_bytes).
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-browserbaseneeds extra setup — Needs a Browserbase account.
  • 14 jupyter-singleton — Fork can occasionally stick in 'pausing' on the control plane.
  • 36 self-hosted-agent-workerneeds extra setup — Needs Anthropic managed-agents access.
  • 37 self-hosted-sandbox-per-sessionneeds extra setup — Needs Anthropic managed-agents access.
  • 38 s3-disk-ffmpeg-transcodeneeds 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-generatorneeds 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 Workspace.

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

CreateOS is a unified intelligent workspace where ideas move seamlessly from concept to live deployment, eliminating context-switching across tools, infrastructure, and workflows with the opportunity to monetize ideas immediately on the CreateOS Marketplace.