Skip to content

Architecture & Network Flow

Stack: Linear → n8n → Pipeline (CrewAI) → 9router → Providers → GitHub PR Hosts: Mac Mini 2015 (orchestrator), Mac Studio M1 Max (worker), MacBook Air M1 (client) Network: Tailscale Mesh VPN — zero public ports

1. Node topology

NodeRoleHardwareAlways onServices
Mac MiniOrchestratorIntel i7, 16 GBYesDocker: postgres, redis, n8n, telegram-bridge
Mac StudioWorkerM1 Max, 64 GBYesOllama (brew), Docker: pipeline, opencode, 9router
MacBook AirClientM1, 8 GBOn-demandOpenCode CLI, VS Code, git
iPhoneRemote controlYesTelegram app

2. Trust zones

ZoneMembersReachability
MeshAll 3 Macs via Tailscale100.x.x.x (Tailscale IPs only)
LoopbackDocker containers on Mini/StudioLocalhost only
CloudDeepSeek, MiniMax, Claude, GitHub APIsOutbound HTTPS only

Zero public ports. No reverse proxy, no Cloudflare Tunnel, no open firewall rules. All inter-node communication is over Tailscale Mesh.

3. Flow diagram

4. 9router & LLM fallback chain

9router (port 20128) provides:

  • Token compression (RTK) - saves 20-40%
  • Auto-fallback: Subscription → Cheap → Free
  • Real-time quota tracking
  • Dashboard for provider management
Pipeline → 9router → Kiro AI (free, unlimited)
              → MiniMax M2.7 ($0.2/1M)
              → NVIDIA Nemotron ($1.5/1M)
              → DeepSeek V4 ($0.14/1M)
              → Studio Ollama (local, free)

5. Self-healing properties

LayerMechanismRecovery time
Docker containersrestart: unless-stopped< 5 s
Ollamabrew services start ollama< 10 s
9routerdocker compose up -d 9router< 10 s
Tailscale meshmacOS managed extension< 10 s
Power failuresudo pmset -a autorestart 1< 60 s
Git push failurePipeline retries up to 3 timesPer attempt

MIT Licensed | Built with AI Dev Station