Run any language in a sandbox
Run code in each language safely in a Linux microVM, with the install steps and working examples.
- How to compile and run C code in a sandboxWrite the source into a Linux microVM.
- How to compile and run C++ code in a sandboxWrite the source to a Linux microVM, build it there with g++ or CMake, and run the binary with a time limit and without network access.
- How to compile and run Rust code in a sandboxInstall Rust with rustup or Ubuntu's rustc and cargo in an isolated microVM, build the code there, and run it with the network off.
- How to run Bash scripts and shell commands in a sandboxSend the command or script to a Linux microVM.
- How to run Bun code in a cloud sandboxBun 1.4.0 is preinstalled in every Runtime sandbox.
- How to run C# (.NET) code in a sandboxInstall the .NET SDK in a Linux microVM.
- How to run Deno code in a sandboxInstall Deno with its one-line installer in an isolated Linux microVM.
- How to run Elixir code in a sandboxInstall Elixir and Erlang in a Linux microVM, either from apt or with Elixir's own install script.
- How to run Go code in a sandboxInstall Go in an isolated Linux microVM with apt or the official tarball, write main.go, and run it with go run under a timeout.
- How to run Haskell code in a sandboxInstall GHC in a Linux microVM, either from apt or with GHCup.
- How to run Java code in a sandboxInstall an OpenJDK package from Ubuntu in an isolated Linux microVM.
- How to run JavaScript and Node.js code in a sandboxWrite the script to an isolated Linux microVM that already has Node.js.
- How to run Julia code in a sandboxInstall Julia in a Linux microVM with juliaup or the official tarball.
- How to run Kotlin code in a sandboxInstall a JDK and the official Kotlin compiler in an isolated microVM, compile the .kt file to a jar, and run it with java -jar.
- How to run Lua code in a sandboxInstall Lua 5.4 or LuaJIT in a Linux microVM.
- How to run PHP code in a sandboxInstall php-cli in a Linux microVM.
- How to run R code in a sandboxRun R in an isolated microVM with a code interpreter that returns plots as PNG and data frames as tables, or install R and use Rscript.
- How to run Ruby code in a sandboxInstall Ruby from Ubuntu in an isolated Linux microVM, or start from the official Ruby image, then run the file with ruby under a timeout.
- How to run SQL queries in a sandbox (SQLite and PostgreSQL)Run the SQL against a throwaway database inside a Linux microVM: SQLite with the sqlite3 shell, or PostgreSQL installed from apt.
- How to run Swift code on Linux in a sandboxInstall the Swift toolchain for Ubuntu 24.04 in a Linux microVM, then compile with swiftc or swift build and run the result there.
- How to run TypeScript code in a sandboxWrite the .ts file into an isolated microVM and run it with Node.js type stripping or Bun, both already installed, with no build step.
- How to run untrusted Python code safelyRun it in a throwaway Linux microVM with its own kernel, the internet off, a command timeout and a sandbox that pauses itself when idle.
100 free hoursin your first 30 days.
of a 1 GB machine
- No credit card
- Four sandboxes at once, 2 vCPU and 4 GiB each
- Then prepaid credit from $10, no plan fee