Lesson 2
15 min
Free Preview
Architecture Overview
Explore the complete architecture of Ginto AI and how components interact.
Ginto AI Architecture
Ginto AI is built on a modular architecture that combines several powerful technologies.
Core Components
- Web Layer - Caddy server with PHP-FPM handling HTTP requests
- AI Layer - Multi-provider LLM integration (Groq, Cerebras, OpenAI)
- Sandbox Layer - LXC containers providing isolated development environments
- Cache Layer - Redis for sessions, caching, and real-time pub/sub
- Proxy Layer - Node.js sandbox-proxy routing requests to containers
Request Flow
User Request → Caddy → PHP Router → Controller
↓
LLM Provider (Groq/Cerebras)
↓
Tool Execution (MCP)
↓
Sandbox (LXC Container)
↓
SSE Stream → User