BLAZING-FAST SANDBOXES FOR
|
Spin up isolated Linux micro-VMs in milliseconds. Unlimited runtime, secure by default. SDKs for Python, JS/TS, Go, .NET, Java, PHP.
Install the HopX SDK
pip install hopx-aiCreate and use a sandbox
1from hopx_ai import Sandbox
2
3# Create sandbox
4sandbox = Sandbox.create(
5 template="code-interpreter"
6)
7
8# Execute code
9result = sandbox.run_code(
10 "print('Hello, World!')"
11)
12print(result.stdout)
13
14# Cleanup
15sandbox.kill()Startup in ~100ms
Sandboxes launch from prebuilt snapshots, allowing near-instant cold starts instead of seconds or minutes.
Isolated at the VM Level
Firecracker microVMs provide hardware-level security and kernel isolation β far beyond containers or serverless functions.
Run Continuously
No execution time limits. Keep agents, notebooks, or jobs running for hours, days, or weeks β with full state persistence.
Simple, Powerful SDK
Connect to sandboxes with clean APIs in your favorite language
Execute Code
Run Python, JavaScript, and more with rich output capture
Stream Output
Real-time streaming of code execution output via WebSocket
File Operations
Upload, download, watch files with full filesystem access
Commands
Execute shell commands and capture stdout/stderr
Processes
Start, monitor, and manage long-running background processes
Templates
List available templates and create custom sandboxes
Desktop Automation
Control desktop environments and automate GUI interactions
Metrics
Monitor CPU, memory, network, and disk in real time
1import { Sandbox } from '@hopx-ai/sdk';
2
3const sandbox = await Sandbox.create({
4 template: 'code-interpreter',
5 apiKey: process.env.HOPX_API_KEY
6});
7
8// Execute Python code
9const result = await sandbox.runCode(`
10import sys
11print(f"Python {sys.version}")
12print("Hello from HopX!")
13`);
14
15console.log(result.stdout);
16// Output: Python 3.11...
17// Hello from HopX!
18
19await sandbox.kill();Give your AI assistant SUPERPOWERS
with secure, isolated code execution
The Hopx MCP server enables Claude, Cursor, and other AI assistants to execute Python, JavaScript, Bash, and Go code in blazing-fast (0.1s startup), isolated cloud sandboxes.
$ uvx hopx-mcpSelect your IDE
1{
2 "mcpServers": {
3 "hopx-sandbox": {
4 "command": "uvx",
5 "args": ["hopx-mcp"],
6 "env": {
7 "HOPX_API_KEY": "your-api-key-here"
8 }
9 }
10 }
11}Quick Start:
- Get your free API key from console.hopx.ai
- Add the configuration to your IDE's MCP settings file
- Replace
your-api-key-herewith your actual API key - Restart your IDE/assistant and start executing code securely!
Execute Code
Python, JavaScript, Bash, Go in isolated sandboxes
Pre-installed Libraries
pandas, numpy, matplotlib ready to use
Auto-cleanup
Sandboxes destroy after use - no manual cleanup
BUILT FOR AI AGENTS, LLM EXECUTION,
AND SECURE MCP INFRASTRUCTURE
Run Untrusted Code
Safely execute user-submitted or LLM-generated code in isolated microVMs.
Run AI Agents
Launch agents that write and execute code in dedicated runtimes.
Run Data Analysis Notebooks
Spin up Jupyter notebooks with ML libraries preinstalled.
Run Deep Research Agents
Autonomous agents that iterate, gather data, and analyze continuously.
Run Autonomous AI Workflows
Multi-step pipelines that need code execution and tools.
Run Computer Use Agents
Agents that control a full cloud desktop (GUI, browser, apps).
Run Background Automations
Workers, schedulers, and recurring jobs that must keep running.
Run Reinforcement Learning
Train/evaluate RL agents in isolated, repeatable environments.
Run Secure MCP Servers
Host MCP servers/tools in a controlled, isolated perimeter.
Run Long-Running Jobs
Jobs that need hours or days without forced shutdowns.
Run Multi-Agent Mesh
Coordinate specialized agents across a mesh of isolated micro-VMs, orchestrated via LangGraph or AutoGen with fine-grained resource and permission control.
Only Pay When Your Code Is Running.
Hopx lets you launch fully isolated sandboxes in milliseconds β and shut them down instantly when you're done. Build, test, and run agents without waste.
Compute
Memory
Storage
Frequently Asked Questions
Everything you need to know about Hopx sandboxes