Dashboard
Secure cloud sandboxes for the AI age

Secure sandboxes
that boot in
milliseconds.

Give your AI agents an isolated home. Every sandbox is a real microVM — boots in <100ms, runs any code safely, and syncs your files to the cloud automatically.

mags — sandbox
$ npm install -g @magpiecloud/mags $ mags run 'echo Hello World' $ mags run -w myproject -p 'pip install flask' $ mags new dev && mags ssh dev from mags import Mags client = Mags() job = client.run("echo Hello from Python!") print(job.logs) # Persistent workspace job = client.run( script="pip install flask && python app.py", workspace="my-app", persist=True ) import { Mags } from '@magpiecloud/mags'; const mags = new Mags(); const job = await mags.run('echo Hello!'); console.log(job.logs); // Persistent workspace const app = await mags.run({ script: 'npm install && npm start', workspace: 'my-app', persist: true, });
Run a script, persist your files, then jump in with SSH.
<100ms
Sandbox boot time
100%
Isolated microVMs
4 SDKs
CLI, Python, Node.js, REST
0 config
Works out of the box

Built for developers and AI agents

From running untrusted code to spinning up full dev environments, Mags handles the infrastructure so you can focus on building.

AI Agent Code Execution

Let your agents execute code in fully isolated sandboxes. No risk to your infrastructure. Every run starts clean or picks up where it left off.

Cloud Dev Environments

Spin up a full dev environment in seconds. Install packages, clone repos, and SSH in. Workspaces persist between sessions automatically.

Data Processing Pipelines

Upload files, run transformations, and download results. Each pipeline runs in isolation with its own filesystem and network stack.

CI/CD & Test Runners

Run your test suite in a clean environment every time. Cache dependencies with persistent workspaces and get results in seconds.

Prototype Deployments

Ship a working prototype with a public URL in one command. Expose ports, serve web apps, and share instantly with your team.

Scheduled Jobs & Cron

Schedule recurring tasks with standard cron expressions. Scrape data, generate reports, or run health checks on autopilot.

From zero to running in 60 seconds

Install the CLI, authenticate, and start running sandboxes. No Docker, no YAML, no infra to manage.

1

Install

One command to install the CLI or SDK.

npm install -g @magpiecloud/mags
2

Authenticate

Log in with your browser or an API token.

mags login
3

Run

Execute any script in an isolated sandbox.

mags run 'python train.py'

Everything you need, nothing you don't

Mags handles compute, isolation, persistence, and networking. You bring the code.

<100ms Boot Time

Sandboxes start in milliseconds. No cold starts, no waiting. Your agents get compute instantly.

Full Isolation

Every sandbox is a real microVM with its own kernel, filesystem, and network. Not a container.

Persistent Workspaces

Files sync to the cloud automatically with -p. Pick up exactly where you left off, every time.

Public URLs & SSH

Expose any port with HTTPS URLs. SSH into running sandboxes for debugging. Full network access.

Multi-SDK Support

Use the CLI for quick tasks, Python or Node.js SDKs for automation, or the REST API for full control.

Always-On Servers

Keep sandboxes running 24/7 as lightweight servers. Auto-recovery if they crash. Perfect for background services.

Your language, your workflow

First-class support for CLI, Python, Node.js, and a full REST API. Pick what fits your stack.

# Install
npm install -g @magpiecloud/mags

# Run a script
mags run 'pip install pandas && python analyze.py'

# Persistent workspace with file upload
mags run -w myproject -p -f data.csv 'python process.py'

# SSH into a running sandbox
mags new dev-env && mags ssh dev-env

# Expose a web server
mags run -w webapp -p --url 'npm start'
from mags import Mags

client = Mags()

# Simple script execution
job = client.run("echo Hello World")
print(job.logs)

# With persistent workspace
job = client.run(
    script="pip install flask && python app.py",
    workspace="my-app",
    persist=True,
    url=True  # expose public URL
)
print(f"App running at: {job.url}")

# Upload files and process them
job = client.run(
    script="python train.py",
    files=["model.py", "data.csv"],
    workspace="ml-training",
    persist=True
)
import { Mags } from '@magpiecloud/mags';

const mags = new Mags();

// Simple script execution
const job = await mags.run('echo Hello World');
console.log(job.logs);

// With persistent workspace
const app = await mags.run({
  script: 'npm install && npm start',
  workspace: 'my-app',
  persist: true,
  url: true,
});
console.log(`App running at: ${app.url}`);
# Submit a job
curl -X POST https://api.magpiecloud.com/api/v1/mags-jobs \
  -H "Authorization: Bearer $TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "script": "echo Hello World",
    "type": "inline"
  }'

# Check job status
curl https://api.magpiecloud.com/api/v1/mags-jobs/$JOB_ID \
  -H "Authorization: Bearer $TOKEN"

# Get logs
curl https://api.magpiecloud.com/api/v1/mags-jobs/$JOB_ID/logs \
  -H "Authorization: Bearer $TOKEN"

Works with your AI stack

Use Mags as the execution layer for any AI framework. Give your agents the power to run real code safely.

Claude Code Skill

Install the Mags skill and let Claude execute scripts in isolated microVMs directly from your conversation.

Any LLM Framework

Use the REST API or SDKs as a tool in LangChain, LlamaIndex, CrewAI, or any agent framework you prefer.

Ready to give your agents a home?

Get started in under a minute. No credit card required. Free tier included.