921 B
921 B
AI Path B (Shipped)
Note: This document outlines the architecture for "Path B", which shifted the AI's execution context from Cloud Run to persistent per-project Docker containers hosted on the Coolify server. This architecture was fully successfully shipped in May 2026.
Architecture
- Every project has a persistent Gitea repository.
- Every project gets a single
vibn-devcontainer provisioned as a Coolify service (ensureDevContainer). - The AI runs its tools (like
shell_execandfs_*) inside this container usingdocker execvia the Coolify API. - Dev servers (like
npm run dev) bind to0.0.0.0:3000and are exposed to the internet via Traefik wildcard subdomains (*.preview.vibnai.com). - When the user is ready, the code is committed to Gitea and deployed to production via
apps_deploy.
(Refer to lib/ai/vibn-tools.ts and app/api/mcp/route.ts for the live implementation).