Apify AI Code Sandbox vs Runtime

Apify AI Code Sandbox bills memory only, at $0.20 per GiB-hour. Runtime costs $0.025 per vCPU-hour. Apify AI Code Sandbox runs containers and has no session limit. Runtime runs Firecracker microVMs and has no session limit.

Updated

Apify AI Code Sandbox

Isolation
Container
Free tier
$5 of usage every month
Max session
No limit

Runtime

Isolation
Firecracker microVM
Free tier
100 hours of a 1 GB machine in the first 30 days
Max session
No limit

What is different

11 fields differ. The rest are the same or not listed.

Apify AI Code Sandbox
Runtime
vCPU, per hour
Apify AI Code Sandbox: Included
Runtime: $0.025
RAM, per GiB-hour
Apify AI Code Sandbox: $0.20
Runtime: $0.0075
Storage
Apify AI Code Sandbox: Disk in the run is part of the compute price. The workspace backup goes to a key-value store at $1 per 1,000 GB-hours, plus reads and writes. Data transfer out $0.20 per GB
Runtime: $0.000119 per GiB-hour after 10 free GiB
Free tier
Apify AI Code Sandbox: $5 of usage every month
Runtime: 100 hours of a 1 GB machine in the first 30 days
Paid plan from
Apify AI Code Sandbox: $19 / month
Runtime: Pay as you go
Billing
Apify AI Code Sandbox: Memory only
Runtime: Active CPU time only
Idle stop
Apify AI Code Sandbox: After 15 minutes
Runtime: After 5 minutes
Concurrent sandboxes
Apify AI Code Sandbox: Up to 256
Runtime: Up to 200
Isolation
Apify AI Code Sandbox: Container
Runtime: Firecracker microVM
SDKs
Apify AI Code Sandbox: Python, JavaScript / TypeScript
Runtime: JavaScript / TypeScript, Python, Go, Ruby, Java
Integrations
Apify AI Code Sandbox: MCP, Claude Code
Runtime: OpenAI Agents SDK, Vercel AI SDK, Claude Agent SDK, LangChain, MCP, Claude Code

Full comparison

18 fields, at each provider's list price

Pricing

vCPU, per hour
Apify AI Code Sandbox: Included
Runtime: $0.025
RAM, per GiB-hour
Apify AI Code Sandbox: $0.20
Runtime: $0.0075
Storage
Apify AI Code Sandbox: Disk in the run is part of the compute price. The workspace backup goes to a key-value store at $1 per 1,000 GB-hours, plus reads and writes. Data transfer out $0.20 per GB
Runtime: $0.000119 per GiB-hour after 10 free GiB
Free tier
Apify AI Code Sandbox: $5 of usage every month
Runtime: 100 hours of a 1 GB machine in the first 30 days
Paid plan from
Apify AI Code Sandbox: $19 / month
Runtime: Pay as you go
Billing
Apify AI Code Sandbox: Memory only
Runtime: Active CPU time only

Limits

Max session
Apify AI Code Sandbox: No limit
Runtime: No limit
Idle stop
Apify AI Code Sandbox: After 15 minutes
Runtime: After 5 minutes
Largest sandbox
Apify AI Code Sandbox: Not listed
Runtime: 16 vCPU · 64 GiB
Concurrent sandboxes
Apify AI Code Sandbox: Up to 256
Runtime: Up to 200

Platform

Isolation
Apify AI Code Sandbox: Container
Runtime: Firecracker microVM
GPU
Apify AI Code Sandbox: Not listed
Runtime: No
Snapshots
Apify AI Code Sandbox: Not listed
Runtime:
Pause and resume
Apify AI Code Sandbox: Not listed
Runtime:

Developer

SDKs
Apify AI Code Sandbox: Python, JavaScript / TypeScript
Runtime: JavaScript / TypeScript, Python, Go, Ruby, Java
Integrations
Apify AI Code Sandbox: MCP, Claude Code
Runtime: OpenAI Agents SDK, Vercel AI SDK, Claude Agent SDK, LangChain, MCP, Claude Code

Trust

License
Apify AI Code Sandbox: Not listed
Runtime: Not listed
BYOC
Apify AI Code Sandbox: Not listed
Runtime: Not listed

Hourly cost

One sandbox running for one hour

Apify AI Code Sandbox
Runtime
1 vCPU · 2 GiB
Apify AI Code Sandbox: $0.400
Runtime: $0.040
2 vCPU · 4 GiB
Apify AI Code Sandbox: $0.800
Runtime: $0.080
4 vCPU · 8 GiB
Apify AI Code Sandbox: $1.600
Runtime: $0.160

Compute only, at list rates.

Open the calculator

Which one fits

Based on the fields above

Apify AI Code Sandbox fits when

  • You want one rate for memory, with CPU included.
  • You need SOC 2 Type II and GDPR.

Runtime fits when

  • You want to pay only for usage, with no plan fee.
  • You want each sandbox in its own microVM.
  • You use the OpenAI Agents SDK, the Vercel AI SDK, the Claude Agent SDK or LangChain.
  • You want the lower list price: $0.080 against $0.800 an hour for 2 vCPU and 4 GiB.

More comparisons

See all comparisons

Related