Core Architecture
CloviTek is built on a multi-tenant, microservices architecture designed for extreme reuse and rapid composition.
Platform Engine Layer
Shared infrastructure: auth (CloviTek SSO), billing (Chargebee), entitlements, metering (CloviMeter), analytics, monitoring. Every platform inherits these services.
AI Orchestration Layer
CloviAgent: 80+ autonomous agents, tool-use via Claude SDK, multi-model routing (Anthropic, OpenAI, Google), context management, RAG pipelines.
Composition Layer
Platforms embed each other via internal APIs. CloviCover calls CloviImage. CloviLegal uses CloviCFO. Shared data room, SSO, and context flow.
Design System
CloviDOS: design token API, contrast validation, component library. Every platform uses the same visual language — brand-consistent, WCAG AA.
Tech Stack
Modern, proven, cost-efficient infrastructure built for scale.
- Node.js / Express
- React / TypeScript
- PostgreSQL
- Redis
- MongoDB
- ChromaDB (RAG)
- Python (AI agents)
- Docker
- nginx
- PM2
- AWS S3 / CloudFront
- Cloudflare
- Contabo VPS
- n8n (automation)
- Anthropic Claude
- OpenAI GPT
- Google Gemini
- ElevenLabs (voice)
- Chargebee (billing)
- Nango (OAuth)
# Example: Platform provisioning flow
1. New platform registered in app_registry.json
2. CloviAgent generates database schema + migrations
3. Brand agent creates logo + tokens → CloviDOS API
4. nginx vhost created (slug-dash.clovitek.com)
5. PM2 process spawned (port auto-assigned)
6. Chargebee plans created via pricing-strategy-agent
7. Health endpoint registered with monitoring
8. Platform goes live
Defensibility & Moat
Autonomous Agents
CloviAgent workforce builds, maintains, and improves the fleet. Human oversight, AI execution. Competitors hire developers; we deploy agents.
Production Platforms
Every new platform strengthens the engine. Shared learnings, shared code, compounding improvements. Network effect at the infrastructure level.
Code Reuse Rate
New platforms reuse 85–95% of existing code. Only vertical-specific logic is net-new. Marginal cost of a new platform approaches zero.
Cost Intelligence
CloviMeter tracks every API call, every LLM token, every storage byte. Live COGS per platform, per customer, per feature. No competitor has this.
AI Agent Workforce
The fleet is maintained by 80+ specialized AI agents, each with defined responsibilities:
srs-document-writer
Authors software requirements specs for new platforms. Convenes role panel, synthesizes SRS, produces assignment manifest.
srs-verifier
Verifies SRS against live code, CloviDOS API, Chargebee, brand standards. Blocks builds until requirements pass 10 checks.
CloviDOS Agent
Generates UI components using design tokens. Fetches live color/font from API, validates contrast, checks UI/UX RAG for anti-patterns.
Brand Agent
Generates logos, syncs brand colors to CloviDOS, runs brand toolchain. Ensures every platform is on-brand at launch.
Chargebee Agent
Creates pricing plans, syncs entitlements, verifies billing config. Automates the entire billing setup per platform.
Security Agent
Audits platforms for auth gaps, CORS misconfig, SQL injection, file upload risks. Runs pre-deploy security gate.
Onboarding Agent
Verifies platform is user-ready: health check, legal pages, workspace creation, email delivery, billing wired.
Debug Agent
Diagnoses crashes, 502s, health failures. Reads logs, inspects PM2, checks nginx, produces root-cause report.
CloviScout
Research agent: crawls docs, mines competitor data, produces market intel, feeds SRS process with real findings.
These agents are not assistants — they execute production work autonomously. Code reviews, security audits, SRS authoring, brand design, billing setup — all agent-driven. The founder orchestrates; agents build.
Data & Learning Loops
Every platform feeds intelligence back into the engine:
- RAG Compounding: Legal briefs train CloviLegal. Financial patterns sharpen CloviCFO. Every customer interaction improves the model.
- Cost Learning: CloviMeter feeds real COGS into pricing-strategy-agent. Margins improve as the fleet learns optimal resource allocation.
- UI/UX Knowledge Base: 36 buckets of design anti-patterns mined from failures. Every bug cataloged, never repeated.
- Code Reuse Library: Proven patterns extracted from live platforms. New builds start with battle-tested components, not blank files.
Security & Compliance
Per-Tenant Isolation
Multi-tenant by design. Every query scoped by tenant ID. New user starts empty — no data leakage across tenants.
Encryption
Data at rest: AES-256 (S3 SSE). Data in transit: TLS 1.3. Secrets in AES-vault, never plain-text ENV files.
Auth & SSO
CloviTek SSO across all platforms. OAuth via Nango (Google, LinkedIn, GitHub, etc.). Session-based, httpOnly cookies.
Audit Logs
Every data-room access tracked. Investor views logged with timestamp. PII detection before embedding in RAG.
Scalability
Built to serve 10K+ customers per platform without architectural rewrites:
Horizontal Scaling
Node.js microservices behind nginx load balancer. Add instances via PM2 cluster mode. Database read replicas for heavy queries.
Caching Strategy
Redis for sessions, API responses, expensive computations. CDN (CloudFront) for static assets. 95%+ cache hit rate.
Async Processing
Long-running tasks (RAG ingestion, video generation, deck assembly) run via n8n workflows. Non-blocking UX.
Cost Efficiency
$6.16/customer/month COGS at current scale. Decreases as fixed infra spreads over more customers. 84.6% margin sustainable.