Chapter 05 Kalsofit · Updated 2026-11-02 · 3 min read AI Platform The in-house AI Gateway, five providers, Mastra agents, cost and failover. Contents Chapters 01 System Overview02 Codebase Map03 Request Lifecycle04 Data Model05 AI Platform06 Identity & Billing07 Notifications & Offline Sync08 Deployment & Operations09 Security Posture Decision Records ADR-0001 One Astro SSR app with Svelte islandsADR-0002 Vercel and Railway from one configADR-0003 ISR by default with an exclusion listADR-0004 Feature gating through entitlementsADR-0005 In-house AI Gateway with failover Previous 04 Data Model Next 06 Identity & Billing