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, compile it with gcc there, and run the binary with a time limit and the internet off.
- How to compile and run C++ code in a sandboxWrite the source into a Linux microVM, build it with g++ or CMake there, and run the binary with a time limit and no network.
- 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 and run it there with bash, a time limit and network rules, never on your own machine.
- How to run Bun code in a cloud sandboxBun 1.4.0 is preinstalled in every Runtime sandbox: write your file into the microVM and run bun on it, TypeScript and tests included.
- How to run C# (.NET) code in a sandboxInstall the .NET SDK in a Linux microVM, then build and run the C# there with dotnet, a time limit and no network while it runs.
- How to run Deno code in a sandboxInstall Deno with its one-line installer in an isolated Linux microVM, then run the file with deno run and only the permissions it needs.
- How to run Elixir code in a sandboxInstall Elixir and Erlang in a Linux microVM, from apt or Elixir's own install script, and run the script there with elixir.
- 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, from apt or GHCup, then run the file with runghc or compile it with ghc and run the binary.
- How to run Java code in a sandboxInstall an OpenJDK from Ubuntu in an isolated Linux microVM, write the .java file, and run it with java under a timeout.
- How to run JavaScript and Node.js code in a sandboxWrite the script into an isolated Linux microVM that already has Node.js, run node on it with a timeout, and read the output back.
- How to run Julia code in a sandboxInstall Julia in a Linux microVM with juliaup or the official tarball, write the script there, and run it with julia and a time limit.
- 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, write the script there, and run it with lua5.4 under a time limit and with the network off.
- How to run PHP code in a sandboxInstall php-cli in a Linux microVM, write the script there, and run it with php under a time limit and with the network off.
- 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 lease that ends on its own.