Skip to main content

Cost Analysis

## §4 — Cost Matrix Monthly (D2 / AC#2)

Load assumptions per forged prompt D2: 200 queries/day × 30d = 6,000 queries/month;
Stop-hook extraction: ~10 sessions/day × 30d = 300 extraction events.

### Scenario (a): $30 combined Pillar #9 + L3 (chip-huyen SC-2 interpretation)

L3 max = $30 − $16.70 (Pillar #9 incremental) = **$13.30/month L3 ceiling**.

| Framework | compute | vector_storage | LLM_inference | embedding | egress | hosted_tier | TOTAL_laptop-only | TOTAL_multi-client-SVE |
|-----------|---------|----------------|---------------|-----------|--------|-------------|-------------------|------------------------|
| Mem0 self-hosted | $0 (ANVIL local) | $0 (Qdrant local) | $0 (Ollama qwen3:8b local) | $0 (bge-m3 local) | $0 | N/A (no SaaS) | **$0** | **$0** |
| claude-mem | $0 (Node.js local) | $0 (filesystem) | $0 (no LLM) | $0 (no embedding) | $0 | N/A | **$0** | **$0** |
| mem-search | NOT VIABLE | — | — | — | — | — | — | — |
| Memipalace | NOT VIABLE | — | — | — | — | — | — | — |
| LightRAG-resurrect | $0 incremental (vm-alai-lightrag already running ~$30/mo in existing budget) | $0 (NanoVectorDB + Neo4J on existing VM) | $0 (Ollama via CF tunnel) | $0 | ~$1/mo CF tunnel egress est. | N/A | **~$1/mo incremental** | **~$1/mo + MC #99093 fix cost (one-time)** |

EVIDENCE (Mem0 cost $0): /Users/makinja/system/mem0/config.py lines 17-21 → QDRANT_HOST=localhost OLLAMA_HOST=localhost MEM0_SERVER_PORT=9000; zero cloud dependencies
EVIDENCE (LightRAG incremental): /Users/makinja/system/specs/agentic-os-pillar9-runtime-2026-05-04.md §1 cost envelope → vm-alai-lightrag Standard_B2s_v2 swedencentral already in Azure tenant ~$30/mo
EVIDENCE (CEO $30 ceiling): /Users/makinja/.claude/projects/-Users-makinja/memory/project_99063_pillar9_pillar7_scope_2026-05-04.md Q1 → "Azure VM $30/month. može biti i više"
EVIDENCE (Pillar #9 incremental $16.70): /Users/makinja/system/specs/agentic-os-pillar9-runtime-2026-05-04.md §1 cost envelope → total incremental $16.70-31.70/month

**Combined Pillar #9 + L3 total (scenario a, Mem0 winner):**
- Pillar #9 incremental: $16.70/month
- L3 Mem0 incremental: $0/month
- **Total: $16.70/month — under $13.30 L3 ceiling AND under $30 combined ceiling**

### Scenario (b): $30 L3-only incremental, Pillar #9 separate

Mem0: $0/month incremental (already deployed). $30 L3 budget entirely unspent.
LightRAG-resurrect: ~$1/month incremental. Also fits.

### Scenario (c): $40-50 combined ("može više" per CEO Q3)

At $40-50 combined, all 3 viable frameworks remain inside envelope. The question is effort
and capability, not cost. This scenario changes nothing about the winner selection.

**CEO Decision Item:** See §11, item #1.

---