Show HN: TakoVM – Esecuzione isolata di modelli e strumenti utilizzata dalle aziende
Sintesi redazionale: URL dell'articolo: https://github.com/las7/TakoVM URL dei commenti: https://news.ycombinator.com/item?id=48431257 Punti: 9 # Commenti: 0. Fonte originale: https://github.com/las7/TakoVM
<p>**File system and python execution for your agents. Job queues and Docker isolation built-in. Used by teams deploying in enterprise.**</p><p>**English** | 日本語</p><p>**A secure file system for your agents to execute code.** Every job runs in its own<br>isolated Docker container, with an ephemeral workspace, optional gVisor sandboxing, job<br>queues, retries, and execution history included.</p><p>Where this is headed:durable, per-agent workspaces that persist and rehydrate across runs, a serverless filesystem for agents. Today each container is single-use; persistent workspaces are on the roadmap. gVisor remains the sole isolation boundary.</p><p>**Documentation** · **Quick Start** · **API Reference**</p><p>```<br># Install (requires Docker + Python 3.10+)<br>pip install "tako-vm[server]"<br>tako-vm setup # pull the executor Docker image<br>tako-vm server # start server (auto-starts PostgreSQL via Docker)<br>```</p><p>```<br># Execute code<br>curl -X POST http://localhost:8000/execute \<br>-H "Content-Type: application/json" \<br>-d '{"code": "print(1 + 1)"}'<br>```</p><p>Sandbox solutions like e2b, daytona and microsandbox give you isolated code execution, but that's it. You still need to build:</p><p>| You build | With sandbox-only | With Tako VM |<br>|---|---|---|<br>| Job queue | Redis + Celery/Bull | Built-in |<br>| Execution history | Postgres + schema | PostgreSQL included |<br>| Retry logic | Custom code | Automatic |<br>| Idempotency | Deduplication logic | `idempotency_key` |<br>| Replay/debugging | Custom tooling | Rerun/fork API |</p><p>**Tako VM is the complete package:**</p><p>**Job queue + workers**- Async execution with worker pool, no Redis/Celery setup**Execution history**- Every job persisted with stdout, stderr, timing, artifacts**Replay to debug**- Rerun past jobs with exact same code and inputs**Docker isolation**- Each job in its own container with seccomp filtering**Network isolation**- No network by default, optional allowlist per job type**Self-hosted**- Your machine, offline-capable, zero per-execution cost</p><p>```<br>tako-vm setup # Pull executor image and verify Docker<br>tako-vm server # Start the API server<br>tako-vm server --port 9000 # Custom port<br>tako-vm dev up # Start local PostgreSQL for development<br>tako-vm dev up --with-server # Start PostgreSQL + API server<br>tako-vm dev status # Check local PostgreSQL status<br>tako-vm dev down # Stop local PostgreSQL<br>tako-vm config # Show current configuration<br>tako-vm config --json # Output as JSON<br>tako-vm validate # Validate current config<br>tako-vm validate my.yaml # Validate specific file<br>tako-vm status # Check server health<br>tako-vm version # Show version<br>tako-vm --config my.yaml server # Use specific config file<br>```</p><p>| Topic | Link |<br>|---|---|<br>| Installation | docs/getting-started/installation.md |<br>| Quick Start | docs/getting-started/quickstart.md |<br>| Configuration | docs/getting-started/configuration.md |<br>| REST API | docs/api/rest.md |<br>| Python SDK | docs/api/sdk.md |<br>| Job Types & Environments | docs/guide/environments.md |<br>| Filesystem, Caches & ML Models | docs/guide/filesystem-and-caches.md |<br>| Security | docs/deployment/security.md |<br>| Deployment | docs/deployment/how-to-deploy.md |<br>| Config Reference | tako_vm.yaml.example |</p><p>Tako VM runs untrusted, often AI-generated, code, so isolation is the core of the project. It uses layered defenses: gVisor (userspace kernel), per-job ephemeral Docker containers, a default-deny seccomp profile, network isolation (`--network=none`</p><p>by default), capability dropping, non-root execution, and enforced resource and input limits.</p><p>`security_mode: strict`</p><p>with `container_runtime: runsc`</p><p>is the default: Tako VM refuses to start a job rather than run it without the gVisor userspace-kernel boundary. Set `security_mode: permissive`</p><p>to allow a fallback to standard Docker (`runc`</p><p>) on hosts without gVisor, e.g. local development or CI; that fallback removes the userspace-kernel boundary, so do not use it for untrusted code.</p><p>See SECURITY.md for the threat model and hardening guidance, and docs/deployment/security.md for full details.</p><p>**Found a vulnerability?** Report it privately via the Security tab → **Report a vulnerability**. Please do not open public issues for security findings.</p><p>Contributions are welcome! See CONTRIBUTING.md for dev setup, testing, and PR conventions. Good entry points are issues labeled `good first issue`</p><p>, and Discussions is open for questions and ideas.</p><p>Questions, feedback, or partnership inquiries? Reach out to seiji@reachpad.dev.</p><p>Apache License 2.0</p>
