Sandboxes for running untrusted code

Untrusted code is code you did not write and cannot review first, such as code from a model or from a user of your product. 80 of the 107 providers listed here give each sandbox its own kernel.

Updated

What running untrusted code needs

Four things to look for in the table below

  • Strong isolation

    The sandbox should keep the code away from the host kernel. Look at the isolation type.

  • Short-lived sandboxes

    Start a fresh sandbox for each run and delete it afterwards.

  • A session limit

    A limit stops code that never ends. Look at the session limit and the idle timeout.

  • A low price for short runs

    Many small runs add up. Look at the hourly cost and the free tier.

Providers and what they offer for this107 providers

  • Agent37 CloudPersistent Linux sandboxes and VMs for code and agents.
    Isolation
    gVisor
    Free tier
    $5 credit
    2 vCPU · 4 GiB
    $0.006
  • Hugging Face SandboxesIsolated cloud machines for running AI-generated code.
    Isolation
    Full VM
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.010
  • Krova CloudFirecracker microVMs with root access, billed by the minute.
    Isolation
    Firecracker
    Free tier
    $5 credit
    2 vCPU · 4 GiB
    $0.012
  • ZipboxLong-lived Firecracker microVMs for AI agents, each with its own desktop.
    Isolation
    Firecracker
    Free tier
    $25 credit
    2 vCPU · 4 GiB
    $0.014
  • StateSet SandboxSandboxes for AI agents, one Kubernetes pod each, with gVisor isolation.
    Isolation
    gVisor
    Free tier
    $25 credit
    2 vCPU · 4 GiB
    $0.014
  • Lizard SandboxesFirecracker microVM sandboxes for AI agents.
    Isolation
    Firecracker
    Free tier
    7-day trial
    2 vCPU · 4 GiB
    $0.016
  • boatPersistent Ubuntu VMs with SSH, Docker and a desktop.
    Isolation
    Full VM
    Free tier
    7-day free trial with 25 hours of compute
    2 vCPU · 4 GiB
    $0.018
  • ShellboxLinux microVMs for developers and AI agents, made and controlled over SSH.
    Isolation
    Firecracker
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.020
  • Koyeb SandboxesSandboxes for AI agents, run as Koyeb Instances.
    Isolation
    MicroVM
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.029
  • Celesto CloudCloud computers for AI agents, each in a microVM.
    Isolation
    MicroVM
    Free tier
    $5 credit
    2 vCPU · 4 GiB
    $0.030
  • tamaLinux VMs with GPUs, billed by the second.
    Isolation
    Full VM
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.045
  • Mosaic SandboxLinux microVM sandboxes for coding agents.
    Isolation
    Firecracker
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.050
  • Bunny SandboxIsolated cloud sandboxes for AI agents, run on gVisor.
    Isolation
    gVisor
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.060
  • OrgoCloud Linux and Windows desktops that AI agents control by API or MCP.
    Isolation
    Full VM
    Free tier
    $5 credit
    2 vCPU · 4 GiB
    $0.060
  • Sandbox0Long-running agent sandboxes with durable storage.
    Isolation
    gVisor
    Free tier
    $5 credit
    2 vCPU · 4 GiB
    $0.060
  • SailboxesPersistent Linux VMs for long-horizon AI agents.
    Isolation
    Full VM
    Free tier
    $5 credit each month
    2 vCPU · 4 GiB
    $0.062
  • Northflank SandboxesMicroVM sandboxes for running untrusted code.
    Isolation
    Cloud Hypervisor
    Free tier
    Free plan
    2 vCPU · 4 GiB
    $0.067
  • Alibaba Cloud Agent SandboxManaged microVM sandboxes for AI agents, with E2B SDK support.
    Isolation
    MicroVM
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.071
  • DigitalOcean MicroVMsLightweight virtual machines that run a container image in their own kernel and pause when idle.
    Isolation
    Firecracker
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.078
  • RuntimeFirecracker microVM sandboxes for AI agents, billed on the CPU that code uses.
    Isolation
    Firecracker
    Free tier
    100 free hours
    2 vCPU · 4 GiB
    $0.080
  • VersLinux computers you can branch, checkpoint, and restore.
    Isolation
    Full VM
    Free tier
    Starting credit
    2 vCPU · 4 GiB
    $0.080
  • Buddy SandboxesPersistent Linux VMs that AI agents create and control through an API, SDK, CLI or MCP.
    Isolation
    Full VM
    Free tier
    $1 / mo
    2 vCPU · 4 GiB
    $0.086
  • Prime SandboxesIsolated microVM sandboxes for AI agents and RL.
    Isolation
    MicroVM
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.090
  • Sandbox as a ServiceDedicated virtual machine sandboxes for AI agents.
    Isolation
    Full VM
    Free tier
    $5 credit
    2 vCPU · 4 GiB
    $0.090
  • Oblien WorkspaceHosted microVM workspaces for AI agents.
    Isolation
    Firecracker
    Free tier
    Free tier, no credit card
    2 vCPU · 4 GiB
    $0.092
  • AgentBayCloud sandboxes for browser, desktop, mobile and code.
    Isolation
    Container
    Free tier
    Free Basic plan
    2 vCPU · 4 GiB
    $0.099
  • MIOSACloud sandboxes and persistent computers that AI agents use to build and run software.
    Isolation
    Firecracker
    Free tier
    $1 / month
    2 vCPU · 4 GiB
    $0.099
  • Anthropic Code ExecutionSandboxed Python and bash containers that Claude runs through the Anthropic API.
    Isolation
    Container
    Free tier
    1,550 hours / month
    2 vCPU · 4 GiB
    $0.100
  • MorphSnapshot, branch and restore whole machines.
    Isolation
    Full VM
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.100
  • ixCloud VMs with up to 100 vCPUs, billed by usage.
    Isolation
    Full VM
    Free tier
    None
    2 vCPU · 4 GiB
    $0.101
  • BytePlus AI Cloud Native SandboxIsolated microVM sandboxes for AI inference, reinforcement learning and model evaluation.
    Isolation
    MicroVM
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.103
  • exe.devDisposable VMs for AI agents, billed by the second.
    Isolation
    Full VM
    Free tier
    7-day trial with a paid ChatGPT subscription
    2 vCPU · 4 GiB
    $0.105
  • IsorunIsolated Linux microVMs from any Docker image.
    Isolation
    MicroVM
    Free tier
    $50 credit
    2 vCPU · 4 GiB
    $0.110
  • Novita SandboxCloud sandboxes for AI agents to run code and browsers.
    Isolation
    Not listed
    Free tier
    $100 credit
    2 vCPU · 4 GiB
    $0.117
  • CreateOS SandboxHosted Firecracker microVM sandboxes for AI agents.
    Isolation
    Firecracker
    Free tier
    500 free credits
    2 vCPU · 4 GiB
    $0.119
  • CagedIsolated microVM sandboxes that record every agent action.
    Isolation
    Firecracker
    Free tier
    Free plan
    2 vCPU · 4 GiB
    $0.120
  • Namespace DevboxesDev environments for AI coding agents.
    Isolation
    Full VM
    Free tier
    30-day free trial
    2 vCPU · 4 GiB
    $0.120
  • DigitalOcean Harness RuntimeManaged microVM sandboxes for AI agents and their code.
    Isolation
    Firecracker
    Free tier
    $5 credit
    2 vCPU · 4 GiB
    $0.126
  • CollimateLive-fork microVM sandboxes for RL post-training and coding agents.
    Isolation
    Firecracker
    Free tier
    Free demo
    2 vCPU · 4 GiB
    $0.128
  • Prized SandboxesLinux microVMs in beta that your code creates, runs commands in, pauses, forks and deletes.
    Isolation
    Firecracker
    Free tier
    $30 credit
    2 vCPU · 4 GiB
    $0.130
  • EQVPS SandboxesFirecracker microVM sandboxes for AI agents, paid per second from a prepaid crypto balance.
    Isolation
    Firecracker
    Free tier
    $1 credit
    2 vCPU · 4 GiB
    $0.132
  • Freestyle VMsFull Linux virtual machines for AI agents.
    Isolation
    Full VM
    Free tier
    Free plan
    2 vCPU · 4 GiB
    $0.132
  • EverstackOpen-source platform that runs isolated sandboxes for AI agents.
    Isolation
    Not listed
    Free tier
    $5 credit
    2 vCPU · 4 GiB
    $0.133
  • Docker SandboxesCloud microVM sandboxes for coding agents, run by Docker.
    Isolation
    MicroVM
    Free tier
    $25 credit, one time
    2 vCPU · 4 GiB
    $0.140
  • ShardfluxServerless VMs for cloud agents that park when idle and keep their state.
    Isolation
    Firecracker
    Free tier
    30 days of Pro
    2 vCPU · 4 GiB
    $0.140
  • Together SandboxIsolated runtime environments for code from AI agents.
    Isolation
    Firecracker
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.149
  • Dedalus MachinesLinux virtual machines for AI agents that sleep when idle.
    Isolation
    Full VM
    Free tier
    $20 credit
    2 vCPU · 4 GiB
    $0.149
  • boxdPersistent Linux machines for devs and AI agents.
    Isolation
    MicroVM
    Free tier
    $30 credit
    2 vCPU · 4 GiB
    $0.150
  • Hyperbrowser SandboxesIsolated cloud VMs that run commands for AI agents.
    Isolation
    Full VM
    Free tier
    5,000 credits
    2 vCPU · 4 GiB
    $0.150
  • BoxLite CloudHosted microVM boxes for AI agents, with an SDK.
    Isolation
    MicroVM
    Free tier
    $100 credit
    2 vCPU · 4 GiB
    $0.158
  • Fly.io SpritesPersistent Linux computers that sleep when idle.
    Isolation
    Firecracker
    Free tier
    $30 trial credit
    2 vCPU · 4 GiB
    $0.165
  • microsandbox cloudHosted microVM sandboxes for AI agents and untrusted code.
    Isolation
    MicroVM
    Free tier
    Free plan
    2 vCPU · 4 GiB
    $0.165
  • Smol MachinesHosted Linux microVMs with their own kernel, for agents and untrusted code.
    Isolation
    MicroVM
    Free tier
    $100 credit
    2 vCPU · 4 GiB
    $0.165
  • BlaxelSandboxes that pause when idle and resume with state.
    Isolation
    MicroVM
    Free tier
    Credit of up to $200
    2 vCPU · 4 GiB
    $0.166
  • DaytonaStateful sandboxes that boot from OCI-compliant images.
    Isolation
    Container
    Free tier
    $200 free compute
    2 vCPU · 4 GiB
    $0.166
  • DeclawFirecracker microVM sandboxes for AI agents.
    Isolation
    Firecracker
    Free tier
    $100 credit
    2 vCPU · 4 GiB
    $0.166
  • E2BOpen-source sandbox platform that gives AI agents isolated machines.
    Isolation
    Firecracker
    Free tier
    $100 credit
    2 vCPU · 4 GiB
    $0.166
  • HopXFirecracker microVM sandboxes for AI agents.
    Isolation
    Firecracker
    Free tier
    $200 credit
    2 vCPU · 4 GiB
    $0.166
  • InstaVMHardware-isolated microVMs for AI agent code.
    Isolation
    Firecracker
    Free tier
    $50 credit
    2 vCPU · 4 GiB
    $0.166
  • Leap0Firecracker microVM sandboxes for running untrusted code.
    Isolation
    Firecracker
    Free tier
    Free during public preview
    2 vCPU · 4 GiB
    $0.166
  • RuntaIsolated computers where AI agents work and keep state.
    Isolation
    Not listed
    Free tier
    $50 credit
    2 vCPU · 4 GiB
    $0.166
  • SuperserveFirecracker microVM sandboxes that pause and resume.
    Isolation
    Firecracker
    Free tier
    $5 to start, plus $95 when you add billing
    2 vCPU · 4 GiB
    $0.166
  • Tenki SandboxDisposable Linux VMs for AI agents, driven by SDK or CLI.
    Isolation
    Full VM
    Free tier
    $100 credit
    2 vCPU · 4 GiB
    $0.166
  • Thunder SandboxesIsolated, short-lived sandboxes for agents, GPU optional.
    Isolation
    Firecracker
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.166
  • SolariOne API for cloud browsers, headless microVM sandboxes and desktop VMs for AI agents.
    Isolation
    Cloud Hypervisor
    Free tier
    $3 / mo credit
    2 vCPU · 4 GiB
    $0.171
  • PandaStack SandboxFirecracker microVM sandboxes for AI agents.
    Isolation
    Firecracker
    Free tier
    $5.40 / month
    2 vCPU · 4 GiB
    $0.173
  • Cloudflare SandboxLinux sandboxes that run untrusted or generated code, driven from a Worker.
    Isolation
    Firecracker
    Free tier
    None
    2 vCPU · 4 GiB
    $0.180
  • SF Compute Autoresearch SandboxesIsolated microVMs for AI agents that fork from a saved snapshot, part of SF Compute Autoresearch.
    Isolation
    MicroVM
    Free tier
    None
    2 vCPU · 4 GiB
    $0.183
  • LangSmith SandboxesIsolated sandboxes for running agent-generated code.
    Isolation
    Firecracker
    Free tier
    8 LSU a month
    2 vCPU · 4 GiB
    $0.189
  • BoxComputeLinux VM sandboxes for AI agents, hosted in Malaysia.
    Isolation
    Full VM
    Free tier
    $5 credit
    2 vCPU · 4 GiB
    $0.200
  • Tensorlake SandboxesMicroVM sandboxes for AI agents and AI-generated code.
    Isolation
    Firecracker
    Free tier
    Free plan, $0 forever
    2 vCPU · 4 GiB
    $0.200
  • Upstash BoxIsolated cloud containers that give AI agents a computer.
    Isolation
    Container
    Free tier
    5 CPU hours per month
    2 vCPU · 4 GiB
    $0.200
  • Gemini Enterprise Agent Platform Code ExecutionManaged sandboxes that run code for AI agents.
    Isolation
    Container
    Free tier
    50 vCPU-hours and 100 GiB-hours free per month
    2 vCPU · 4 GiB
    $0.206
  • Azure Container Apps SandboxesIsolated microVM sandboxes that start on demand.
    Isolation
    MicroVM
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.216
  • Amazon Bedrock AgentCore Code InterpreterManaged code sandboxes for AI agents on AWS.
    Isolation
    MicroVM
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.217
  • Amazon Bedrock AgentCore RuntimeHosts AI agents on AWS and runs each user session in its own microVM.
    Isolation
    MicroVM
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.217
  • Beam SandboxesIsolated, secure environments for running untrusted code at scale.
    Isolation
    Container
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.227
  • OpenPond SandboxesIsolated cloud sandboxes for agent work, controlled from a TypeScript SDK.
    Isolation
    Firecracker
    Free tier
    Free plan
    2 vCPU · 4 GiB
    $0.238
  • ModalServerless compute with sandboxes and GPUs.
    Isolation
    gVisor
    Free tier
    $30 / month
    2 vCPU · 4 GiB
    $0.238
  • Microsoft Foundry hosted agentsRuns your AI agent code on Azure, with each session in its own microVM.
    Isolation
    MicroVM
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.246
  • AWS Lambda MicroVMsServerless microVMs on AWS that suspend when idle.
    Isolation
    Firecracker
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.252
  • boxes.devCloud computers for Claude Code and Codex.
    Isolation
    Not listed
    Free tier
    20 free hours
    2 vCPU · 4 GiB
    $0.300
  • Deno SandboxLinux microVMs for running untrusted and generated code.
    Isolation
    Firecracker
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.300
  • Islo MachinesPersistent microVM computers for coding agents.
    Isolation
    MicroVM
    Free tier
    Credits to start
    2 vCPU · 4 GiB
    $0.300
  • RunloopDevboxes built for coding agents.
    Isolation
    MicroVM
    Free tier
    $50 credit
    2 vCPU · 4 GiB
    $0.317
  • Sendblue SandboxesIsolated cloud Linux machines that AI agents control over an HTTP API.
    Isolation
    Container
    Free tier
    $100 free compute
    2 vCPU · 4 GiB
    $0.330
  • CoreWeave SandboxesIsolated environments for running untrusted code.
    Isolation
    MicroVM
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.341
  • Vercel SandboxIsolated Linux microVMs for running untrusted code.
    Isolation
    Firecracker
    Free tier
    5 CPU-hrs / mo
    2 vCPU · 4 GiB
    $0.341
  • Depot SandboxesLinux microVMs for code, tests and agents, made and run from a Node.js SDK.
    Isolation
    MicroVM
    Free tier
    7-day trial
    2 vCPU · 4 GiB
    $0.360
  • OpenAI Code InterpreterSandboxed containers where OpenAI models write and run Python code.
    Isolation
    Container
    Free tier
    Not listed
    2 vCPU · 4 GiB
    $0.360
  • Railway SandboxesIsolated Linux VMs you create on demand and destroy.
    Isolation
    Full VM
    Free tier
    $5 credit
    2 vCPU · 4 GiB
    $0.417
  • Apify AI Code SandboxApify Actor that runs AI-generated code in an isolated container, with MCP, REST API and shell access.
    Isolation
    Container
    Free tier
    $5 / mo
    2 vCPU · 4 GiB
    $0.800
  • Agent SandboxHosted API that runs Python and shell code for AI agents.
    Isolation
    Container
    Free tier
    $10 credit
    2 vCPU · 4 GiB
    Not listed
  • Azure Container Apps dynamic sessionsIsolated sandbox sessions for running code on Azure.
    Isolation
    Full VM
    Free tier
    Not listed
    2 vCPU · 4 GiB
    Not listed
  • Brimble SandboxesSandbox product of the Brimble hosting platform that runs code in gVisor containers.
    Isolation
    gVisor
    Free tier
    7-day trial
    2 vCPU · 4 GiB
    Not listed
  • Containarium CloudHosted Linux boxes for AI agents, reached over SSH.
    Isolation
    Container
    Free tier
    Not listed
    2 vCPU · 4 GiB
    Not listed
  • inis.runIsolated Linux sandboxes for AI-generated code.
    Isolation
    Full VM
    Free tier
    €1.00 trial credit
    2 vCPU · 4 GiB
    Not listed
  • MaritimeHosting for persistent AI agents and Linux desktops, each in its own micro-VM.
    Isolation
    Firecracker
    Free tier
    3 agents, forever
    2 vCPU · 4 GiB
    Not listed
  • Nebius SandboxesSandboxes for AI agents that branch from any checkpoint.
    Isolation
    MicroVM
    Free tier
    Not listed
    2 vCPU · 4 GiB
    Not listed
  • Perplexity SandboxIsolated Linux containers that run Python and bash code inside a Perplexity Agent API request.
    Isolation
    Container
    Free tier
    Not listed
    2 vCPU · 4 GiB
    Not listed
  • PhoneboxCloud Android phones that AI agents control through their screens.
    Isolation
    Not listed
    Free tier
    $2 credit
    2 vCPU · 4 GiB
    Not listed
  • Qiniu Cloud SandboxSandbox service with an E2B-compatible API that runs AI agent code in isolated cloud environments.
    Isolation
    Not listed
    Free tier
    Not listed
    2 vCPU · 4 GiB
    Not listed
  • RemoteHostPersistent, hardware-isolated microVMs for coding agents.
    Isolation
    Firecracker
    Free tier
    7-day trial
    2 vCPU · 4 GiB
    Not listed
  • SandockDocker sandboxes with persistent volumes for AI agents.
    Isolation
    Container
    Free tier
    None
    2 vCPU · 4 GiB
    Not listed
  • Unikraft CloudMicroVM sandboxes that start in under 10 ms.
    Isolation
    Firecracker
    Free tier
    Hobby plan, free forever
    2 vCPU · 4 GiB
    Not listed
  • WatasuIsolated Linux sandboxes for AI agents, hosted in the EU.
    Isolation
    Not listed
    Free tier
    Free plan
    2 vCPU · 4 GiB
    Not listed
  • xShellz Agent ShellAlways-on Linux boxes for AI agents, isolated with gVisor.
    Isolation
    gVisor
    Free tier
    1 small box
    2 vCPU · 4 GiB
    Not listed

Related