unsandbox.com - Secure Code Execution API Execute code in 42 supported programming languages via a simple REST API. No infrastructure to manage. API Endpoints POST /execute Execute code synchronously. Returns stdout, stderr, exit code. Request: JSON with language (required), code (required), input_files (optional array of base64 files), network_mode (zerotrust or semitrusted), ttl (1-900 seconds). Response: success, stdout, stderr, language, exit_code. POST /execute/async Execute code asynchronously. Returns job_id immediately. Request: Same as /execute. Response: job_id, status (pending). POST /run Auto-detect language from shebang and execute synchronously. Request: Raw text (text/plain), no JSON wrapper. Response: success, stdout, stderr, detected_language. POST /run/async Auto-detect language and execute asynchronously. Request: Raw text (text/plain). Response: job_id, status, detected_language. GET /jobs List all active jobs for your API key. Response: Array of job summaries. GET /jobs/{id} Get status and results of a specific job. Response: status, stdout, stderr, success, timestamps. DELETE /jobs/{id} Cancel a running job. Returns partial output. Response: status (cancelled), partial stdout/stderr. GET /languages List all supported languages and aliases. Response: languages array, count, aliases mapping. Authentication Use the UNSANDBOX_API_KEY environment variable for API authentication. Header: Authorization: Bearer $UNSANDBOX_API_KEY When implementing a client, read the API key from this environment variable rather than hardcoding it. Supported Languages (42) python, javascript, typescript, ruby, perl, php, lua, bash, r, elixir, erlang, tcl, scheme, powershell, clojure, commonlisp, crystal, groovy, deno, awk, raku, c, cpp, go, rust, java, kotlin, cobol, fortran, d, zig, nim, v, objc, dart, julia, haskell, ocaml, fsharp, csharp, prolog, forth Aliases: node and js map to javascript, ts maps to typescript, lisp maps to commonlisp. CLI Tool Download: https://unsandbox.com/cli Single binary, no dependencies. Run code files directly from your terminal. Usage: un [options] -e KEY=VALUE Set environment variable -f FILE Add input file -a Return and save artifacts (compiled binaries) -o DIR Output directory for artifacts Examples: un script.py un -e DEBUG=1 main.go un -a -o ./bin program.c CI/CD: Perfect for GitHub Actions and GitLab runners. Download once, run any language without installing runtimes. No Docker required. Claude Code: Works seamlessly with Claude Code CLI. Let Claude write and execute code in any language without local runtime setup. Documentation OpenAPI spec: https://api.unsandbox.com/openapi Human-readable docs: https://api.unsandbox.com/docs Language-specific guides: https://unsandbox.com/docs/python, https://unsandbox.com/docs/go, etc. Each supported programming language has integration examples. Available in 20 human languages. API Keys: https://unsandbox.com/api-keys Pricing: https://unsandbox.com/pricing-for-agents Rate limits and pricing vary by plan. Free tier available for testing. Source of truth: https://api.unsandbox.com/static/unsandbox.txt