Compute in a real microVM
Run generated code in a virtual machine with its own Linux kernel. Choose CPU and memory within your plan’s resource limits, then read the execution output and exit code.
BoxLite Cloud runs AI-generated Python in isolated microVMs and returns the output. It also hosts apps built with a coding agent and gives you a public HTTPS URL to share.
what you get
Run generated code in a virtual machine with its own Linux kernel. Choose CPU and memory within your plan’s resource limits, then read the execution output and exit code.
Enable inbound access and expose your app’s service port through a tunnel. Open the returned HTTPS URL to check and share your app. Configure outbound access separately.
Keep packages, files and your working environment across a stop and a start. Resume work in the same box without rebuilding your workspace.
Attach a managed volume to keep application data beyond the lifetime of a box. Reuse that data when you create a new workspace.
quickstart
Install the current SDK or CLI and set BOXLITE_REST_URL to https://api.boxlite.ai and BOXLITE_API_KEY to your Cloud key. Run Python with python cloud.py, TypeScript with npx tsx cloud.ts, or the CLI script with bash cloud.sh.
01import asyncio02import os03import boxlite0405async def main():06 rt = boxlite.Boxlite.rest(boxlite.BoxliteRestOptions(07 url=os.environ["BOXLITE_REST_URL"],08 credential=boxlite.ApiKeyCredential(09 os.environ["BOXLITE_API_KEY"]),10 ))11 box = None12 try:13 box = await rt.create(boxlite.BoxOptions(14 image="python:alpine",15 network=boxlite.NetworkSpec(mode="disabled"),16 ))17 await box.start()18 execution = await box.exec(19 "python", args=["-c", "print(2 + 2)"],20 timeout_secs=3,21 )22 async def collect(stream):23 return "".join([s async for s in stream])24 stdout, stderr, result = await asyncio.gather(25 collect(execution.stdout()),26 collect(execution.stderr()), execution.wait(),27 )28 if result.exit_code != 0:29 raise RuntimeError(stderr)30 print(stdout.strip())31 finally:32 try:33 if box is not None:34 await rt.remove(box.id, force=True)35 finally:36 rt.close()3738asyncio.run(main())Expected Python output for print(2 + 2): 4. Follow the Cloud code interpreter guide for stdout, stderr, exit codes and cleanup retries, or deploy an app with a port tunnel.
use cases
Give your agent a code execution tool.
Your agent sends generated Python to an isolated Cloud box, then reads the output or error before responding to the user.
Try the Cloud code interpreterPublish an app on a public HTTPS URL.
Build an app with Claude Code or Codex, deploy it to BoxLite Cloud, and return a public HTTPS URL. Open the link in a separate browser to confirm the app works for someone else.
Deploy your first applocal or cloud
| Local | Cloud | |
|---|---|---|
| Where boxes run | Your laptop, your servers, air-gapped | BoxLite's managed fleet |
| How you reach it | In-process library, no account | REST URL + SDK |
| You operate | Hosts, image cache, capacity | Nothing |
| Isolation | Hardware microVM, own kernel | Hardware microVM, own kernel |
| Storage | Your own disk | Managed volumes and cloud disks that outlive the box |
| Box lifecycle | You manage it | Idle-stop and wake-on-access |
| Concurrency | As far as your own hardware goes | Running limits depend on your plan |
| Support | Discord and GitHub issues | Contact the team about your workload |
| Best for | Local dev, embedding in your app, on-prem | Production agents, bursty scale, teams |
pricing
Usage charged to your prepaid wallet.
$20 included quota, then your wallet.
$400 included quota, then your wallet.
Discuss your workload with our team.
Higher tiers include lower-tier capabilities. Log retention duration is not specified; overdue retention is shown separately. API key usage limits and Enterprise SSO are coming soon, not available entitlements.
Higher tiers include lower-tier capabilities. Box totals and running concurrency are separate limits. CPU · memory · disk are shown in that order. Refund terms
faq
Yes. The docs describe Cloud as a hosted agent runtime built on BoxLite — the same SDK and the same core API, reached with a URL and an API key, with managed storage and a managed box lifecycle.