Architecture: Which code sandbox service to use for Vitto — E2B vs self-ho...

Documentation for Sessions

🏗️ Architecture: Which code sandbox service to use for Vitto — E2B vs self-ho...

Date: 2026-02-20
Time: 00:38:32 UTC
Session: gspace1-125.132
Agent: angular
Confidence: 90%
Status: ✅ Documented


📋 Decision Context

Question:

Which code sandbox service to use for Vitto — E2B vs self-hosted Docker vs isolated-vm?

Task: Session 125: Code sandbox decision


🎯 Decision Made

Chosen:

E2B managed service (free tier $100 credits)

Options Considered:

  1. E2B managed service (free tier $100 credits)
  2. Self-hosted Docker containers
  3. V8 isolated-vm (JavaScript only)

💭 Reasoning

E2B provides Firecracker microVMs with full Linux isolation (~150ms boot), multi-language support (JS/TS/Python/bash), and $0 cost on free tier (thousands of executions). Docker is incompatible with Railway (no Docker-in-Docker). isolated-vm is JS-only. E2B is used by Cursor, Perplexity, Manus — proven at scale. Free tier sufficient for months. Pro ($150/mo) only needed at high volume.


📁 Files Involved


🔗 Related


Auto-generated by MCP Smart Consolidation