Microsoft Foundry hosted agents vs Railway Sandboxes

Microsoft Foundry hosted agents costs $0.0994 per vCPU-hour and Railway Sandboxes costs $0.069444 per vCPU-hour. Microsoft Foundry hosted agents runs microVMs. Railway Sandboxes runs full VMs and has no session limit.

Updated

Microsoft Foundry hosted agents

Isolation
MicroVM
Free tier
Not listed
Max session
Not listed

Railway Sandboxes

Isolation
Full VM
Free tier
$5 trial credit for 30 days
Max session
No limit

What is different

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

Microsoft Foundry hosted agents
Railway Sandboxes
vCPU, per hour
Microsoft Foundry hosted agents: $0.0994
Railway Sandboxes: $0.069444
RAM, per GiB-hour
Microsoft Foundry hosted agents: $0.0118
Railway Sandboxes: $0.069444
Paid plan from
Microsoft Foundry hosted agents: Pay as you go
Railway Sandboxes: $5 / month
Billing
Microsoft Foundry hosted agents: Per second
Railway Sandboxes: Active CPU time only
Idle stop
Microsoft Foundry hosted agents: After 15 minutes
Railway Sandboxes: After 30 minutes
Largest sandbox
Microsoft Foundry hosted agents: 2 vCPU · 4 GiB
Railway Sandboxes: 32 vCPU · 32 GiB
Concurrent sandboxes
Microsoft Foundry hosted agents: Up to 2,000
Railway Sandboxes: Up to 100
Isolation
Microsoft Foundry hosted agents: MicroVM
Railway Sandboxes: Full VM
SDKs
Microsoft Foundry hosted agents: Python, JavaScript / TypeScript
Railway Sandboxes: TypeScript
Integrations
Microsoft Foundry hosted agents: Claude Agent SDK, LangChain, MCP, OpenAI Agents SDK
Railway Sandboxes: Claude Code

Full comparison

18 fields, at each provider's list price

Pricing

vCPU, per hour
Microsoft Foundry hosted agents: $0.0994
Railway Sandboxes: $0.069444
RAM, per GiB-hour
Microsoft Foundry hosted agents: $0.0118
Railway Sandboxes: $0.069444
Storage
Microsoft Foundry hosted agents: Not listed
Railway Sandboxes: Not listed
Free tier
Microsoft Foundry hosted agents: Not listed
Railway Sandboxes: $5 trial credit for 30 days
Paid plan from
Microsoft Foundry hosted agents: Pay as you go
Railway Sandboxes: $5 / month
Billing
Microsoft Foundry hosted agents: Per second
Railway Sandboxes: Active CPU time only

Limits

Max session
Microsoft Foundry hosted agents: Not listed
Railway Sandboxes: No limit
Idle stop
Microsoft Foundry hosted agents: After 15 minutes
Railway Sandboxes: After 30 minutes
Largest sandbox
Microsoft Foundry hosted agents: 2 vCPU · 4 GiB
Railway Sandboxes: 32 vCPU · 32 GiB
Concurrent sandboxes
Microsoft Foundry hosted agents: Up to 2,000
Railway Sandboxes: Up to 100

Platform

Isolation
Microsoft Foundry hosted agents: MicroVM
Railway Sandboxes: Full VM
GPU
Microsoft Foundry hosted agents: Not listed
Railway Sandboxes: Not listed
Snapshots
Microsoft Foundry hosted agents: Not listed
Railway Sandboxes:
Pause and resume
Microsoft Foundry hosted agents:
Railway Sandboxes: Not listed

Developer

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

Trust

License
Microsoft Foundry hosted agents: Not listed
Railway Sandboxes: Not listed
BYOC
Microsoft Foundry hosted agents: Not listed
Railway Sandboxes: Not listed

Hourly cost

One sandbox running for one hour

Microsoft Foundry hosted agents
Railway Sandboxes
1 vCPU · 2 GiB
Microsoft Foundry hosted agents: $0.123
Railway Sandboxes: $0.208
2 vCPU · 4 GiB
Microsoft Foundry hosted agents: $0.246
Railway Sandboxes: $0.417
4 vCPU · 8 GiB
Microsoft Foundry hosted agents: $0.492
Railway Sandboxes: $0.833

Compute only, at list rates.

Open the calculator

Which one fits

Based on the fields above

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, MCP or the OpenAI Agents SDK.
  • You want the lower list price: $0.246 against $0.417 an hour for 2 vCPU and 4 GiB.

Railway Sandboxes fits when

  • You want each sandbox to be a full VM.
  • You use Claude Code.
  • You need snapshots.
  • Your code waits a lot: CPU is billed only while it is in use.

More comparisons

See all comparisons

Related