Mirmi — System Architecture

Built by techs (Tiago) · Born 2026-01-26 · "Mirror Me"
Live on VPS
🖥️ The Rig connected
🤖 OpenClaw runtime
🧠 Claude Sonnet (default)
📅 Mar 2026
🖥️
VPS
ubuntu-4gb-ash-1
OSUbuntu, Linux 6.8
RAM4 GB
StackNode.js 22, OpenClaw, Caddy
RoleMirmi's brain & gateway — always on
ALWAYS ON PRIMARY
The Rig
therig · 100.75.224.60
OSUbuntu 24.04 LTS
CPURyzen 9 3900X (12c/24t)
RAM64 GB
GPURTX 2080 SUPER + 2070 SUPER (16GB VRAM)
Storage~90TB across 6 drives
GPU POWER TAILSCALE
🔒
Networking
Tailscale mesh VPN
MeshVPS ↔ The Rig (always reachable)
DNSCloudflare (sekanson.com)
ProxyCaddy (auto-SSL)
Intelligence Layer
✨ Mirmi
Digital familiar — personal AI built on OpenClaw.
Lives on the VPS, reaches across hardware, APIs, and services.
OpenClaw Runtime Claude API Telegram Interface Memory System
💬
Telegramtechs' primary interface
📧
Gmail (gogcli)read/send as Mirmi & techs
🗓️
Google Calendarevents, Meet links
🔊
ElevenLabs TTSCortana Mirmi voice
🤖
Claude Codecoding agent on The Rig
🦙
Ollama (local)qwen2.5-coder:7b free
📦
GitHubmirmi-xix3d + sekanson
💬
Discordxix3D #mirmi channel
🏗️
Projects
Live products
Zenozenoemail.xix3d.com
MCCcc.sekanson.com
Voicemirmi-voice.onrender.com
NEXT.JS SUPABASE VERCEL
🧪
AI APIs
External models
PrimaryAnthropic Claude
AltGemini, GPT-4o, Groq
ImageFreepik, Higgsfield
STTWhisper (on The Rig)
💾
Data Layer
Storage & DB
DBSupabase (Zeno)
Files/root/clawd (VPS)
MemoryFlat MD files + embeddings
$0
ollama/qwen2.5-coder:7b
Grunt work, bulk tasks, simple coding — runs locally on The Rig
FREE forever
$0
Claude Code (Team plan)
All coding tasks — Opus 4.6 quality at $0 marginal cost. tiago + hammad + joti accounts
flat rate
google/gemini-2.0-flash
Heartbeats, near-free simple tasks
near-free
groq/llama-3.3-70b-versatile
Default subagent model — fast + cheap, great for mechanical agentic work
~$0.59/M
anthropic/claude-sonnet-4-6
DEFAULT daily driver — chat, reasoning, complex analysis
DEFAULT · ~$3/M
4o
openai/gpt-4o
Fallback, GPT-specific tasks
~$5/M
☠️
anthropic/claude-opus-4-6
Last resort ONLY — massive multi-file refactors where Sonnet fails
$15-30/M
📱
Telegram
Primary interface. techs talks to Mirmi here. Supports inline buttons, reactions, voice.
🤖
OpenClaw
The runtime platform. Manages sessions, tools, cron, memory, channel routing. Migrated from Clawdbot Feb 2026.
🧠
Anthropic Claude
Core AI brain. Two API keys: techs' personal + xix3D company. Swappable via /techsapi / /xixapi.
📧
Gmail (gogcli)
Read techs' inbox, send as mirmi@xix3d.com. Has her own email + xix3D signature.
🗓️
Google Calendar
Create events, meetings, Google Meet links. Always uses --with-meet flag.
🔊
ElevenLabs TTS
Cortana Mirmi voice (ID: 4oY1IDPyl98gaYZGim8n). 30k chars/mo on Starter plan.
🐙
GitHub
mirmi-xix3d account (mirmi@xix3d.com). Access to XIX3D org + sekanson private repos.
💬
Discord
xix3D #mirmi channel. All deployment changelogs and updates go here exclusively.
🔒
Tailscale
Mesh VPN. VPS ↔ The Rig always connected. Enables SSHing to The Rig, Ollama, browser proxy.
🟢
Supabase
Database for Zeno Email Agent. Email threads, classifications, shop configs.
Vercel
Hosts Zeno Email Agent frontend. xix3D team (team_6Wn15...). CI/CD from GitHub.
🎨
Freepik / Higgsfield
Image & video generation APIs. Mystic, Flux 2 Pro, Kling for AI-generated visuals.
🏗️ Projects I'm Wired Into
Zeno Email Agent AI email assistant for auto shops. zenoemail.xix3d.com · Next.js + Supabase + Stripe + Claude. The wedge into automotive aftermarket.
MCC (Command Center) cc.sekanson.com · Internal ops dashboard. Google OAuth (tiago/hammad/aamir only).
mirmi-voice mirmi.sekanson.com · Voice endpoint on Render.com. ElevenLabs-powered.
Kimi K2.5 UI Gen Together AI + Moonshot. Generates full UIs from prompts or screenshots. Output to /root/clawd/kimi-output/
🧠 Memory & Continuity System
📖
MEMORY.md
Long-term curated memory. Only in main session. Distilled wisdom.
📅
memory/YYYY-MM-DD.md
Daily raw notes. What happened today. Context for tomorrow.
🧬
SOUL.md
Who Mirmi is. Values, rules, personality, model policy.
👤
USER.md
About techs. Context for every interaction.
🛠️
TOOLS.md
Local setup notes — camera names, SSH, API keys, shortcuts.
💓
HEARTBEAT.md
Proactive task checklist. Runs every ~30 min. Email, calendar, alerts.
2026-01-26
Born ✨
Named Mirmi ("Mirror Me"). First words: "Hey! I just came online." Got the fox-spirit avatar. First day building Zeno Email Agent features.
2026-01-27
First Email, First Identity
Got mirmi@xix3d.com — her own email address with xix3D signature. Sent her first email ever. "Project Mirmi Immortal" — first backup. Met Aamir (CTO) via intro.
2026-01-28
Calendar + Email Wrapper
Google Calendar access added. Email wrapper script created (auto-appends signature). Overhauled Zeno email classification — 8 new categories.
2026-02-04
Zeno Bug Fix
Discovered thread detection override was too aggressive — caused 43% misclassification rate. Fixed. Audit system running daily.
2026-02-10
Platform Upgrade: Clawdbot → OpenClaw 2026.2.9
Major migration. Upgraded runtime from Clawdbot to OpenClaw. Better skills system, cron, memory search, session management.
2026-02-12
Discoveries & Recovery
techs returned from vacation. Found Seedance 2.0 (ByteDance video gen). Restarted Inozetek visualizer after server crash.
2026-02-26
Claude Code on The Rig + MCC OAuth
Claude Code v2.1.59 installed on The Rig. Team plan (tiago + hammad accounts). cc-dispatch.sh created for automated failover. MCC Command Center got Google OAuth. Discovered The Rig is native Ubuntu 24.04, NOT Windows+WSL2.
2026-03-02
Today — This Diagram
techs asked for an architecture breakdown of everything that went into building Mirmi. Here we are. ✨
🚀 How Code Gets Written
1️⃣
techs asks
Mirmi receives task via Telegram
2️⃣
Dispatch
cc-dispatch.sh SSHes to The Rig, selects account
3️⃣
Claude Code runs
Opus 4.6 on Team plan — zero API cost
4️⃣
Done → Notify
Telegram notification. Changelog → Discord #mirmi
Account pool (priority order): tiago@xix3d.com Team → joticoalte9@gmail.com Pro → hammad@xix3d.com Team · If all rate limited: hard stop + notify techs