Sandbox Templates

Prototype rapidly with our sandbox templates

Don't reinvent the wheel! Jumpstart your build with our curated collection of ready-to-use sandbox templates and tutorials, from coding agents to full development environments.

๐Ÿค–

Claude Code in a Sandbox

Run Claude Code inside a Blaxel sandbox to execute coding tasks on a hosted codebase, with persistent storage and secure network access.

Read the tutorial
๐Ÿ”Œ

Claude Agent SDK + Sandbox MCP

Connect the Claude Agent SDK to a Blaxel sandbox and operate it via its built-in MCP server for filesystem, process, and code generation tools.

Read the tutorial
๐Ÿง 

OpenAI Agents SDK Sandbox

Build compute-capable agents with the OpenAI Agents SDK backed by Blaxel sandboxes, including streaming, file transfer, and Next.js code generation.

Read the tutorial
๐Ÿ“ฑ

Expo Sandbox

Run an Expo / React Native development environment inside a Blaxel sandbox to preview mobile apps directly from your agent.

Read the tutorial
๐Ÿš€

Astro Sandbox

Configure an Astro application to run in a Blaxel sandbox with managed builds, secure egress, and a shareable preview URL.

Read the tutorial

Featured Template

๐Ÿ”Œ

Claude Agent SDK + Sandbox MCP

Operate a Blaxel sandbox from the Claude Agent SDK

Read the tutorial

Every Blaxel sandbox exposes a Model Context Protocol (MCP) server out of the box, with tools for process management, filesystem operations, and AI-optimized code generation.

With this template, you wire the Claude Agent SDK directly to that MCP server, giving Claude its own isolated cloud computer to install dependencies, write code, run servers and inspect files โ€” without any custom tool plumbing.

What you get with this template:

  • An Express HTTP endpoint your app can call to forward prompts to the agent
  • A Blaxel sandbox auto-created on first request, reused across calls
  • The full sandbox MCP toolset available to Claude with zero glue code
  • Streaming reasoning and tool calls, ready to deploy on Blaxel as a serverless API

It works with any framework you prefer โ€” Claude Agent SDK, OpenAI Agents SDK, LangGraph, Vercel AI SDK, Mastra, or your own custom code โ€” thanks to the standard MCP transport.

Follow the step-by-step tutorial in the Blaxel docs to get the full index.ts / main.py source, environment setup, and deployment instructions.

Achieve near instant latency today.