Architecture
How Odel works under the hood
Architecture
Odel is built as a distributed system of Cloudflare Workers, providing global edge deployment with low latency.
Components
Apex API
The main API for authentication, marketplace, and user management.
- Better Auth for authentication
- D1 database for users, modules, and marketplace data
- R2 storage for module assets
Chat API
Orchestrates AI conversations and module execution.
- OpenAI-compatible API
- V8 isolate execution for modules
- Streaming responses
MCP Proxy
Gateway for MCP protocol connections.
- Routes requests to installed modules
- Manages user configurations
- Handles secret encryption
Dev Portal
Developer tools for building and deploying modules.
- Real-time code editor with WebSocket sync
- Container-based builds
- Durable Objects for state management
Module Execution
User Request → Chat API → V8 Isolate → MCP Proxy → Module Worker- User sends a message to Chat API
- AI determines which tools to call
- Tool calls are executed in V8 isolates
- MCP Proxy routes to the appropriate module
- Results are streamed back to the user