Hosted sandbox API for AI-generated code

Run AI-generated Python safely in a restricted sandbox.

Disposable-exec is a short-lived remote execution API for AI agents, automations, and developer products. Send Python code, run it inside a restricted Docker sandbox, and get structured results back.
Built for agent tools, automation products, and developer workflows that need safer remote execution without building a full sandbox stack from scratch.
POST /run

{
  "script": "print(7 + 7)"
}

→

{
  "execution_id": "2f1f8a50-0b70-4af0-b9ba-b9d4b9ef2d56",
  "plan": "Starter",
  "used": 1,
  "quota": 3000
}
Structured output stdout, stderr, exit_code, duration
Restricted runtime Docker sandbox, timeout, no outbound network

What it does

Disposable-exec gives AI products a hosted execution layer for short-lived Python jobs. It is not a general cloud compute platform. It is meant for safer execution of untrusted or AI-generated code.

Safer code execution

Run generated code in an isolated Docker sandbox instead of on your main application host or customer machine.

Lower integration overhead

Use an API instead of building and operating your own queue, worker, auth, quota, and sandbox layer.

Built for AI workflows

Designed for agents, automations, and LLM-powered tools that need fast remote execution for short-lived tasks.

How it works

The model is simple: submit code, process it through a queue, run it in a restricted worker sandbox, and return the result.

1

Send code

POST a Python script to /run with an API key.

2

Sandbox execution

The worker pulls the job from Redis and runs it inside a restricted Docker environment.

3

Read results

Poll /status/{execution_id} and fetch stdout, stderr, exit code, and duration from /result/{execution_id}.

Current feature set

Included now

  • Short-lived Python execution
  • Queue + worker model
  • API key auth
  • Plan quota enforcement
  • Basic subscription-aware access control
  • Rate limiting
  • API key lifecycle endpoints
  • Paddle and Lemon webhook base support

Current sandbox direction

  • Docker-based isolation
  • Timeout enforcement
  • No outbound network
  • Restricted process limits
  • Read-only root filesystem direction
  • Structured execution result output

Who this is for

AI agent builders

Teams that need a remote tool for short Python execution without exposing their main systems.

Automation products

Builders who want to execute generated logic without maintaining a full sandbox stack.

Developer platforms

Products that need a hosted runtime layer with keys, quotas, and billing hooks already started.

Current project stage

Disposable-exec is currently a launch-stage MVP with a working execution core. The focus now is security hardening, billing closure, deployment preparation, and documentation cleanup.

Already in place

  • FastAPI server
  • Redis queue
  • Worker execution model
  • SQLite-backed state and results
  • Basic plan and quota handling

Still being tightened

  • Webhook signature verification
  • Deployment and restart strategy
  • Production environment secrets
  • Docs/examples expansion

Pricing

The current pricing model is designed to keep higher tiers discounted without turning the product into a low-margin bulk execution channel.

  • Free — 50 executions
  • Starter — $9 / month — 3,000 executions
  • Pro — $29 / month — 12,000 executions
  • Scale — $99 / month — 40,000 executions

See the full breakdown on the pricing page.