Anthropic Code Execution vs Microsoft Foundry hosted agents

Anthropic Code Execution costs $0.05 per vCPU-hour and Microsoft Foundry hosted agents costs $0.0994 per vCPU-hour. Anthropic Code Execution runs containers. Microsoft Foundry hosted agents runs microVMs.

Updated

Anthropic Code Execution

Isolation
Container
Free tier
1,550 free hours per month
Max session
Not listed

Microsoft Foundry hosted agents

Isolation
MicroVM
Free tier
Not listed
Max session
Not listed

What is different

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

Anthropic Code Execution
Microsoft Foundry hosted agents
vCPU, per hour
Anthropic Code Execution: $0.05
Microsoft Foundry hosted agents: $0.0994
RAM, per GiB-hour
Anthropic Code Execution: Included
Microsoft Foundry hosted agents: $0.0118
Billing
Anthropic Code Execution: Bundled machine time
Microsoft Foundry hosted agents: Per second
Largest sandbox
Anthropic Code Execution: 1 vCPU · 5 GiB
Microsoft Foundry hosted agents: 2 vCPU · 4 GiB
Isolation
Anthropic Code Execution: Container
Microsoft Foundry hosted agents: MicroVM
SDKs
Anthropic Code Execution: Python, TypeScript, Go, Java, Ruby
Microsoft Foundry hosted agents: Python, JavaScript / TypeScript

Full comparison

18 fields, at each provider's list price

Pricing

vCPU, per hour
Anthropic Code Execution: $0.05
Microsoft Foundry hosted agents: $0.0994
RAM, per GiB-hour
Anthropic Code Execution: Included
Microsoft Foundry hosted agents: $0.0118
Storage
Anthropic Code Execution: Not listed
Microsoft Foundry hosted agents: Not listed
Free tier
Anthropic Code Execution: 1,550 free hours per month
Microsoft Foundry hosted agents: Not listed
Paid plan from
Anthropic Code Execution: Not listed
Microsoft Foundry hosted agents: Pay as you go
Billing
Anthropic Code Execution: Bundled machine time
Microsoft Foundry hosted agents: Per second

Limits

Max session
Anthropic Code Execution: Not listed
Microsoft Foundry hosted agents: Not listed
Idle stop
Anthropic Code Execution: Not listed
Microsoft Foundry hosted agents: After 15 minutes
Largest sandbox
Anthropic Code Execution: 1 vCPU · 5 GiB
Microsoft Foundry hosted agents: 2 vCPU · 4 GiB
Concurrent sandboxes
Anthropic Code Execution: Not listed
Microsoft Foundry hosted agents: Up to 2,000

Platform

Isolation
Anthropic Code Execution: Container
Microsoft Foundry hosted agents: MicroVM
GPU
Anthropic Code Execution: Not listed
Microsoft Foundry hosted agents: Not listed
Snapshots
Anthropic Code Execution: Not listed
Microsoft Foundry hosted agents: Not listed
Pause and resume
Anthropic Code Execution:
Microsoft Foundry hosted agents:

Developer

SDKs
Anthropic Code Execution: Python, TypeScript, Go, Java, Ruby
Microsoft Foundry hosted agents: Python, JavaScript / TypeScript
Integrations
Anthropic Code Execution: Not listed
Microsoft Foundry hosted agents: Claude Agent SDK, LangChain, MCP, OpenAI Agents SDK

Trust

License
Anthropic Code Execution: Not listed
Microsoft Foundry hosted agents: Not listed
BYOC
Anthropic Code Execution: Not listed
Microsoft Foundry hosted agents: Not listed

Hourly cost

One sandbox running for one hour

Anthropic Code Execution
Microsoft Foundry hosted agents
1 vCPU · 2 GiB
Anthropic Code Execution: $0.050
Microsoft Foundry hosted agents: $0.123
2 vCPU · 4 GiB
Anthropic Code Execution: $0.100
Microsoft Foundry hosted agents: $0.246
4 vCPU · 8 GiB
Anthropic Code Execution: $0.200
Microsoft Foundry hosted agents: $0.492

Compute only, at list rates.

Open the calculator

Which one fits

Based on the fields above

Anthropic Code Execution fits when

  • You want the lower list price: $0.100 against $0.246 an hour for 2 vCPU and 4 GiB.
  • You need SOC 2 Type II and ISO 27001.

Microsoft Foundry hosted agents fits when

  • You want each sandbox in its own microVM.
  • You use the Claude Agent SDK, LangChain, MCP or the OpenAI Agents SDK.

More comparisons

See all comparisons

Related