diff --git a/locations/home-cluster-192-168-170.md b/locations/home-cluster-192-168-170.md new file mode 100644 index 0000000..a7ffdd1 --- /dev/null +++ b/locations/home-cluster-192-168-170.md @@ -0,0 +1,172 @@ +# Home AI Cluster — 192.168.170.0/24 + +## Summary + +Four-machine local AI platform for AI agents, media production (ComfyUI, 3D, TTS), workflow +automation (n8n, Flowise), and robotics simulation (NVIDIA Omniverse/Isaac Lab). +No cloud dependency. All services accessible at `poxel.netcraze.link` via Keenetic DDNS. + +## Network + +- Subnet: `192.168.170.0/24` +- Router: `192.168.170.1` (Keenetic Peak, KeeneticOS 5.01.B.4.0-1) +- External domain: `poxel.netcraze.link` → `95.165.0.208` (Keenetic DDNS, auto-updates) +- WAN interface: `GigabitEthernet0/Vlan2` +- Router SSH: port 22, user `admin` + +--- + +## Machine 1 — AI Inference Server + +| Field | Value | +|-------|-------| +| IP | `192.168.170.10` (reserved, not yet configured) | +| CPU | 2× Intel Xeon, 36C/72T total | +| RAM | 256 GB | +| GPU | NVIDIA A6000 48 GB VRAM (+ optional RTX 4090 24 GB) | +| Role | LLM inference, image/3D generation, TTS, STT | + +### Planned services (not yet installed as of 2026-06-06) + +| Service | Port | Purpose | +|---------|------|---------| +| Ollama | 11434 | LLM inference (llama3.3:70b, qwen2.5-coder, phi4) | +| ComfyUI | 8188 | Image/3D generation (SDXL, FLUX.1) | +| AllTalk TTS (XTTS v2) | 5002 | Russian TTS + voice cloning | +| faster-whisper | 9000 | Russian STT | +| TripoSR / InstantMesh | 7860 | Text/Image → 3D mesh (.obj/.glb) | +| LiteLLM Proxy | 4000 | Unified OpenAI-compatible API over all models | +| Sunshine | 47989 | Remote GUI access (Moonlight client) | + +### VRAM strategy + +- A6000 (48 GB): large LLMs + ComfyUI FLUX simultaneously +- RTX 4090 (24 GB, optional): offload ComfyUI or medium LLMs +- 256 GB RAM: llama.cpp partial offload for models exceeding VRAM +- `OLLAMA_KEEP_ALIVE=5m` — auto-unload idle models + +--- + +## Machine 2 — Proxmox `192.168.170.40` + +| Field | Value | +|-------|-------| +| IP | `192.168.170.40` | +| OS | Proxmox VE 9.2.3 | +| Node name | `prmx` | +| RAM | 15 GB | +| Web UI | `https://192.168.170.40:8006` | +| SSH | port 22, user `root` | +| Storage | `ssd` ZFS 1.8 TB (containers), `local` 67 GB, `local-lvm` 141 GB | + +### LXC Containers (Debian 12, unprivileged, nesting=1) + +| VMID | Hostname | IP | RAM | Disk | Service | Port | +|------|----------|----|-----|------|---------|------| +| 100 | forgejo | 192.168.170.41 | 2 GB | 20 GB | Forgejo v10.0.3 | 3000 | +| 101 | authentik | 192.168.170.42 | 2 GB | 20 GB | Authentik SSO | 9000, 9443 | +| 102 | mcp | 192.168.170.43 | 1 GB | 10 GB | MCP servers hub | stdio | +| 103 | monitoring | 192.168.170.44 | 1 GB | 20 GB | Prometheus + Grafana | 9090, 3100 | + +### Access via pct exec (from Proxmox host) + +```bash +pct exec -- bash -c '' +# Example: +pct exec 102 -- bash -c 'task-master-ai --version' +``` + +--- + +## Machine 3 — Docker Engine `192.168.170.30` + +| Field | Value | +|-------|-------| +| IP | `192.168.170.30` | +| OS | Debian 13 trixie | +| CPU | 4 cores | +| RAM | 15 GB | +| Disk | 1.8 TB SSD | +| SSH | port 22, user `root` | +| Stacks | `/opt/stacks/{npm,portainer,webui,n8n,flowise,homarr,minio}` | + +### Running Docker services + +| Service | Port | Subdomain (planned) | +|---------|------|---------------------| +| Nginx Proxy Manager | 80/443/81 | — | +| Portainer | 9000/9443 | portainer.poxel.netcraze.link | +| Open WebUI | 8080 | ai.poxel.netcraze.link | +| n8n | 5678 | n8n.poxel.netcraze.link | +| Flowise | 3000 | flowise.poxel.netcraze.link | +| Homarr | 7575 | home.poxel.netcraze.link | +| MinIO | 9001 | — | + +- Open WebUI is configured to use Ollama at `192.168.170.10:11434` (Machine 1, not yet set up) +- n8n `WEBHOOK_URL=https://n8n.poxel.netcraze.link` + +--- + +## Machine 4 — TrueNAS `192.168.170.22` + +| Field | Value | +|-------|-------| +| IP | `192.168.170.22` | +| OS | TrueNAS SCALE 26.0.0-BETA.1 | +| Hostname | `nas` | +| RAM | 16 GB | +| System disk | 256 GB NVMe | +| Cache | 1 TB NVMe → L2ARC 953 GB (ONLINE) | +| Data | 4× 3 TB HDD | +| SSH | `ssh -i ~/.ssh/id_ed25519 truenas_admin@192.168.170.22` (key auth, password: ``) | + +### ZFS Pool + +``` +Pool: datapool (5.44 TB usable) +├── Mirror vdev 1: sda + sdb +└── Mirror vdev 2: sdc + sdd +Cache: L2ARC nvme0n1 953 GB +``` + +### Datasets and NFS shares + +| Dataset | Mount | Compression | NFS export | +|---------|-------|-------------|------------| +| `datapool/ai-models` | `/mnt/datapool/ai-models` | lz4 | 192.168.170.0/24 | +| `datapool/comfy-models` | `/mnt/datapool/comfy-models` | lz4 | 192.168.170.0/24 | +| `datapool/renders` | `/mnt/datapool/renders` | lz4 | 192.168.170.0/24 | +| `datapool/backup` | `/mnt/datapool/backup` | lz4 | 192.168.170.0/24 | + +NFS service is RUNNING. Known beta bug: `service.start nfs` via API times out — workaround: systemd override with `exportfs -ra`. + +--- + +## Planned Subdomains (Nginx Proxy Manager + Let's Encrypt) + +| Subdomain | Backend | +|-----------|---------| +| git.poxel.netcraze.link | CT100 Forgejo :3000 | +| ai.poxel.netcraze.link | Docker Open WebUI :8080 | +| comfy.poxel.netcraze.link | Machine 1 ComfyUI :8188 | +| n8n.poxel.netcraze.link | Docker n8n :5678 | +| flowise.poxel.netcraze.link | Docker Flowise :3000 | +| home.poxel.netcraze.link | Docker Homarr :7575 | +| monitor.poxel.netcraze.link | CT103 Grafana :3100 | +| portainer.poxel.netcraze.link | Docker Portainer :9443 | +| tts.poxel.netcraze.link | Machine 1 AllTalk TTS :5002 | +| 3d.poxel.netcraze.link | Machine 1 TripoSR :7860 | +| stream.poxel.netcraze.link | Machine 1 Sunshine :47989 | + +--- + +## Setup Status (as of 2026-06-06) + +| Machine | Status | +|---------|--------| +| Machine 4 TrueNAS | ✅ Configured | +| Machine 3 Docker | ✅ Configured | +| Machine 2 Proxmox + LXC | ✅ Configured | +| Keenetic port forwarding 80/443 | ⏳ Pending | +| NPM subdomains + SSL | ⏳ Pending | +| Machine 1 AI PC | ⏳ Not started | diff --git a/locations/index.md b/locations/index.md index ca1c839..7008d9d 100644 --- a/locations/index.md +++ b/locations/index.md @@ -2,6 +2,13 @@ ## Known Machines +### Home AI Cluster (192.168.170.0/24) + +- `home-cluster-192-168-170.md` - full 4-machine home AI cluster: TrueNAS, Docker Engine, Proxmox + LXC (Forgejo/Authentik/MCP/Monitoring), AI Inference Server (planned). Domain: poxel.netcraze.link. +- `mcp-hub-192-168-170-43.md` - CT102 MCP server hub on Proxmox: all official MCP servers installed, config for Claude Code. + +### Other Machines + - `current-codex-mac.md` - current Codex desktop environment. - `pump.md` - planned main simulator computer for the `garage` project; OpenSSH Server and TightVNC Server are configured. - `proxmox-192-168-1-60.md` - Proxmox host or web console endpoint at `192.168.1.60:8006`. diff --git a/locations/mcp-hub-192-168-170-43.md b/locations/mcp-hub-192-168-170-43.md new file mode 100644 index 0000000..f8afef1 --- /dev/null +++ b/locations/mcp-hub-192-168-170-43.md @@ -0,0 +1,99 @@ +# MCP Hub — CT102 `192.168.170.43` + +## Summary + +Dedicated LXC container on Proxmox (VMID 102) running all MCP servers for the home AI cluster. +All active official servers from https://github.com/modelcontextprotocol/servers are installed. +Claude Code on any machine connects via `npx`/`uvx` locally (no SSH needed). + +## Environment + +- IP: `192.168.170.43` +- OS: Debian 12 (LXC on Proxmox `192.168.170.40`) +- Access: `pct exec 102 -- bash -c ''` from Proxmox host +- Node.js: v22.22.3 (NodeSource) +- Python venv: `/opt/mcp/venv/` +- Chromium: 148.x (for Puppeteer) + +## Installed MCP Servers + +### npm — `/usr/lib/node_modules/@modelcontextprotocol/` + +| Server | Purpose | +|--------|---------| +| `server-memory` | Persistent knowledge graph | +| `server-filesystem` | File access (NFS `/mnt`) | +| `server-sequential-thinking` | Structured reasoning | +| `server-everything` | Test/demo server | +| `server-puppeteer` | Browser automation via Chromium (archived upstream, functional) | + +Also: `task-master-ai` at `/bin/task-master-ai` (needs `ANTHROPIC_API_KEY` in `/opt/mcp/taskmaster/.env`) + +### Python — `/opt/mcp/venv/` + +| Package | Run command | Purpose | +|---------|-------------|---------| +| `mcp-server-fetch` | `python -m mcp_server_fetch` | HTTP fetch / web content | +| `mcp-server-git` | `python -m mcp_server_git --repository ` | Git operations | +| `mcp-server-time` | `python -m mcp_server_time` | Time and timezone info | + +Full config on CT102: `/opt/mcp/claude_mcp_config.json` + +## Config for Claude Code on Mac + +Add to `~/.claude.json` under key `mcpServers`. Requires `node`/`npx` and `uv`/`uvx` on the agent machine. + +```json +"mcpServers": { + "memory": { + "command": "npx", + "args": ["-y", "@modelcontextprotocol/server-memory"] + }, + "filesystem": { + "command": "npx", + "args": ["-y", "@modelcontextprotocol/server-filesystem", "/Users/post"] + }, + "sequential-thinking": { + "command": "npx", + "args": ["-y", "@modelcontextprotocol/server-sequential-thinking"] + }, + "everything": { + "command": "npx", + "args": ["-y", "@modelcontextprotocol/server-everything"] + }, + "fetch": { + "command": "uvx", + "args": ["mcp-server-fetch"] + }, + "git": { + "command": "uvx", + "args": ["mcp-server-git", "--repository", "/Users/post/VScode"] + }, + "time": { + "command": "uvx", + "args": ["mcp-server-time"] + }, + "taskmaster": { + "command": "npx", + "args": ["-y", "task-master-ai"] + } +} +``` + +## Adding More MCP Servers Later + +```bash +# npm server +pct exec 102 -- npm install -g @modelcontextprotocol/server- + +# pip server +pct exec 102 -- /opt/mcp/venv/bin/pip install mcp-server- +``` + +Then update `/opt/mcp/claude_mcp_config.json` and this file. + +## Notes + +- MCP SDKs (Go, Rust, Java, etc.) are NOT installed — those are for building custom servers +- `server-puppeteer` needs env vars `PUPPETEER_EXECUTABLE_PATH=/usr/bin/chromium` and `PUPPETEER_NO_SANDBOX=true` when running on CT102 +- Installed: 2026-06-06 diff --git a/projects/home-ai-cluster/status.md b/projects/home-ai-cluster/status.md new file mode 100644 index 0000000..eb4b252 --- /dev/null +++ b/projects/home-ai-cluster/status.md @@ -0,0 +1,56 @@ +# Home AI Cluster — Status + +Last updated: 2026-06-06 + +## Goal + +Full local AI platform — no cloud dependency. AI agents, media production (ComfyUI, FLUX, 3D), +Russian TTS/STT, workflow automation (n8n, Flowise), robotics simulation (Omniverse/Isaac Lab). +Accessible externally at `poxel.netcraze.link`. + +## Current State + +### Done + +| Component | Details | +|-----------|---------| +| TrueNAS `192.168.170.22` | Pool `datapool` 5.44TB, L2ARC 953GB, 4 NFS shares | +| Docker Engine `192.168.170.30` | NPM, Portainer, Open WebUI, n8n, Flowise, Homarr, MinIO | +| Proxmox `192.168.170.40` | PVE 9.2.3, node `prmx` | +| CT100 Forgejo `192.168.170.41:3000` | Git server v10.0.3 | +| CT101 Authentik `192.168.170.42:9000` | SSO, login: admin | +| CT102 MCP Hub `192.168.170.43` | 9 MCP servers (see `locations/mcp-hub-192-168-170-43.md`) | +| CT103 Monitoring `192.168.170.44` | Prometheus :9090 + Grafana :3100 | +| MCP config on Mac | `~/.claude.json` — 8 servers via npx/uvx | + +### In Progress / Pending + +| Task | Blocker | +|------|---------| +| Keenetic port forward 80/443 → `192.168.170.30` | SSH blocked by anti-bruteforce; retry manually | +| NPM subdomains + SSL (Let's Encrypt) | Needs port forwarding first | +| Homarr dashboard configuration | Needs subdomains | +| Authentik forward auth on NPM | Needs NPM subdomains | +| Machine 1 AI PC `192.168.170.10` | Not started | + +## Next Actions + +1. Router: SSH to `192.168.170.1`, run: + ``` + ip nat dnat proto tcp from-port 80 to 192.168.170.30 port 80 + ip nat dnat proto tcp from-port 443 to 192.168.170.30 port 443 + system configuration save + ``` +2. NPM (`192.168.170.30:81`): add all subdomains, request Let's Encrypt SSL +3. Homarr (`192.168.170.30:7575`): add all service tiles +4. Machine 1: install Ollama, ComfyUI, AllTalk TTS, faster-whisper, LiteLLM + +## Open Questions + +- Machine 1 OS: bare metal Ubuntu or existing OS? +- Machine 2 Proxmox: DHCP reservations for all machines configured in Keenetic? + +## Architecture + +See `locations/home-cluster-192-168-170.md` for full IP map and service list. +See `locations/mcp-hub-192-168-170-43.md` for MCP servers. diff --git a/projects/index.md b/projects/index.md index c637b1b..67e410c 100644 --- a/projects/index.md +++ b/projects/index.md @@ -2,6 +2,7 @@ ## Active Projects +- `home-ai-cluster` - 4-machine local AI platform: TrueNAS NFS, Docker services, Proxmox LXC (Forgejo/Authentik/MCP/Monitoring), AI inference server. Domain: poxel.netcraze.link. - `agent-knowledge-base` - private text repository for agent memory, skills, locations, problems, and project state. - `garage` - truck snow-removal simulator project. - `kamaz-ndi-android-display` - Android/NDI tablet display app for KAMAZ rear-view mirror tablets and dashboard tablet.