
Apify AI Code Sandbox
Apify Actor that runs AI-generated code in an isolated container, with MCP, REST API and shell access.
Apify AI Code Sandbox runs each sandbox in a container. It costs $0.20 per GiB-hour of memory, with CPU included. New accounts get a $5 of usage every month.
- apify.com/apify/ai-code-sandbox
- docs.apify.com/actors
- apify.com/pricing
- github.com/apify/actor-ai-code-sandbox
- status.apify.com
Updated
Included
vCPU per hour
$0.20
RAM per GiB-hour
No limit
Max session
Not listed
Largest sandbox
Apify AI Code Sandbox specifications
List prices and limits for Apify AI Code Sandbox
Pricing
apify- vCPU per hour
- Included
- RAM per GiB-hour
- $0.20
- Storage
- 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
- Billing
- Memory only
- Free tier
- $5 of usage every month
- Paid plan from
- $19 / monthStarter plan, with $19 of usage every month
Limits
docs- Max session
- No limitSet the run timeout to 0 for no limit. Each HTTP request has a 5-minute limit
- Idle stop
- After 15 minutesDefault of 900 seconds. Can be changed or turned off
- Sandbox size
- Not listed
- Default size
- 1 vCPU · 4 GiB
- Concurrent sandboxes
- Up to 2565 on Free, 32 on Starter, 128 on Scale, 256 on Business. Extra concurrent runs are an add-on at $5 each
- Storage
- Disk is 2 times the run memory. Files are backed up and restored after a container migration
Platform
docs- Isolation
- Container
- GPU
- Not listed
- Snapshots
- Not listed
- Pause and resume
- Not listed
- Desktop
- Not listed
- Regions
- 1AWS us-east-1
Developer
apify- SDKs
- Python, JavaScript / TypeScript
- Integrations
- MCP, Claude Code
Trust
trust- License
- Not listed
- Self-hosting
- Not listed
- BYOC
- Not listed
- Compliance
- SOC 2 Type II (Report on request in the Trust Center), GDPR
Apify AI Code Sandbox plans
Hourly cost
Apify AI Code Sandbox next to other providers
One sandbox with 2 vCPU and 4 GiB of RAM for one hour, at list price.
Compute only. Storage and network are not included.
Open the calculatorCompare Apify AI Code Sandbox

Apify AI Code Sandbox vs Agent Sandbox
Apify AI Code Sandbox vs Agent37 Cloud
Apify AI Code Sandbox vs AgentBay
Apify AI Code Sandbox vs Alibaba Cloud Agent Sandbox
Apify AI Code Sandbox vs Amazon Bedrock AgentCore Code Interpreter
Apify AI Code Sandbox vs Amazon Bedrock AgentCore Runtime
Apify AI Code Sandbox vs Anthropic Code Execution
Apify AI Code Sandbox vs AWS Lambda MicroVMs
Alternatives to Apify AI Code Sandbox
Recent changes
Related
More pages that include Apify AI Code Sandbox
Apify AI Code Sandbox
Apify AI Code Sandbox pricing
Apify AI Code Sandbox alternatives
Apify AI Code Sandbox vs Agent Sandbox
Apify AI Code Sandbox vs Agent37 Cloud
All providers