Apify AI Code Sandbox vs Microsoft Foundry hosted agents

Apify AI Code Sandbox bills memory only, at $0.20 per GiB-hour. Microsoft Foundry hosted agents costs $0.0994 per vCPU-hour. Apify AI Code Sandbox runs containers and has no session limit. Microsoft Foundry hosted agents runs microVMs.

Updated

Apify AI Code Sandbox

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

Microsoft Foundry hosted agents

Isolation
MicroVM
Free tier
Not listed
Max session
Not listed

What is different

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

Apify AI Code Sandbox
Microsoft Foundry hosted agents
vCPU, per hour
Apify AI Code Sandbox: Included
Microsoft Foundry hosted agents: $0.0994
RAM, per GiB-hour
Apify AI Code Sandbox: $0.20
Microsoft Foundry hosted agents: $0.0118
Paid plan from
Apify AI Code Sandbox: $19 / month
Microsoft Foundry hosted agents: Pay as you go
Billing
Apify AI Code Sandbox: Memory only
Microsoft Foundry hosted agents: Per second
Concurrent sandboxes
Apify AI Code Sandbox: Up to 256
Microsoft Foundry hosted agents: Up to 2,000
Isolation
Apify AI Code Sandbox: Container
Microsoft Foundry hosted agents: MicroVM
Integrations
Apify AI Code Sandbox: MCP, Claude Code
Microsoft Foundry hosted agents: Claude Agent SDK, LangChain, MCP, OpenAI Agents SDK

Full comparison

18 fields, at each provider's list price

Pricing

vCPU, per hour
Apify AI Code Sandbox: Included
Microsoft Foundry hosted agents: $0.0994
RAM, per GiB-hour
Apify AI Code Sandbox: $0.20
Microsoft Foundry hosted agents: $0.0118
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
Microsoft Foundry hosted agents: Not listed
Free tier
Apify AI Code Sandbox: $5 of usage every month
Microsoft Foundry hosted agents: Not listed
Paid plan from
Apify AI Code Sandbox: $19 / month
Microsoft Foundry hosted agents: Pay as you go
Billing
Apify AI Code Sandbox: Memory only
Microsoft Foundry hosted agents: Per second

Limits

Max session
Apify AI Code Sandbox: No limit
Microsoft Foundry hosted agents: Not listed
Idle stop
Apify AI Code Sandbox: After 15 minutes
Microsoft Foundry hosted agents: After 15 minutes
Largest sandbox
Apify AI Code Sandbox: Not listed
Microsoft Foundry hosted agents: 2 vCPU · 4 GiB
Concurrent sandboxes
Apify AI Code Sandbox: Up to 256
Microsoft Foundry hosted agents: Up to 2,000

Platform

Isolation
Apify AI Code Sandbox: Container
Microsoft Foundry hosted agents: MicroVM
GPU
Apify AI Code Sandbox: Not listed
Microsoft Foundry hosted agents: Not listed
Snapshots
Apify AI Code Sandbox: Not listed
Microsoft Foundry hosted agents: Not listed
Pause and resume
Apify AI Code Sandbox: Not listed
Microsoft Foundry hosted agents:

Developer

SDKs
Apify AI Code Sandbox: Python, JavaScript / TypeScript
Microsoft Foundry hosted agents: Python, JavaScript / TypeScript
Integrations
Apify AI Code Sandbox: MCP, Claude Code
Microsoft Foundry hosted agents: Claude Agent SDK, LangChain, MCP, OpenAI Agents SDK

Trust

License
Apify AI Code Sandbox: Not listed
Microsoft Foundry hosted agents: Not listed
BYOC
Apify AI Code Sandbox: Not listed
Microsoft Foundry hosted agents: Not listed

Hourly cost

One sandbox running for one hour

Apify AI Code Sandbox
Microsoft Foundry hosted agents
1 vCPU · 2 GiB
Apify AI Code Sandbox: $0.400
Microsoft Foundry hosted agents: $0.123
2 vCPU · 4 GiB
Apify AI Code Sandbox: $0.800
Microsoft Foundry hosted agents: $0.246
4 vCPU · 8 GiB
Apify AI Code Sandbox: $1.600
Microsoft Foundry hosted agents: $0.492

Compute only, at list rates.

Open the calculator

Which one fits

Based on the fields above

Apify AI Code Sandbox fits when

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

Microsoft Foundry hosted agents fits when

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

More comparisons

See all comparisons

Related