unsandbox.com

Anonymous remote code, compile, & execution API for humans & machine learning agents.

Docs 📚 View Pricing →
unsandbox Code Execution API for AI Agents

Execute code in 42+ languages via a simple REST API. Isolated containers, artifact downloads, and async job polling.

curl https://api.unsandbox.com/execute \
  -H "Authorization: Bearer YOUR_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "language": "python",
    "code": "print(sum(range(100)))"
  }'
{
  "success": true,
  "stdout": "4950\n",
  "stderr": "",
  "exit_code": 0,
  "language": "python",
  "total_time_ms": 487
}
Why unsandbox?

42+ Languages

Python, JavaScript, Rust, Go, C++, Julia, R, and many more. One API, any language.

Isolated Containers

Every execution runs in a fresh, isolated container. No state pollution between runs.

Artifact Downloads

Get generated files back - plots, binaries, PDFs, or any file your code creates.

Async Job Polling

Submit jobs asynchronously and poll for results. Perfect for long-running computations.

Crypto Payments

Pay with Monero, Bitcoin, Litecoin, or Dogecoin. No KYC required.

Built for Agents

Async execution, job polling, and cancellation. Perfect for LLM tool use.

Use Cases

AI Code Assistants

Let your AI write and test code in real sandboxed environments. Verify solutions work before showing users.

Data Science Pipelines

Run Python, R, or Julia code with full scientific libraries. Generate plots and export results.

Educational Platforms

Safe code execution for coding challenges, tutorials, and interactive learning.

CI/CD Integration

Run tests and build artifacts in isolated environments without managing infrastructure.

Documentation clarifications

Comprehensive API documentation with examples in every supported language. Learn how to execute code, handle artifacts, manage async jobs, and integrate with your applications.

Language Examples

Working code samples for all 42+ supported languages.

API Reference

Complete endpoint documentation with request/response schemas.

Simple Pricing
Free Tier
$0
7 RPM, 1 concurrent
Starting at
$7/mo
Scale to 32x capacity
Ready to start?

Try the playground with no signup, or grab a free API key to integrate today.