◈ NPR-Hub — Terminal Reference
Alle commands voor beheer van de hub-services. Systemd user-scope — altijd met --user.
Services
| Service | Port | Rol |
| npr-hub | ::1:3000 | Website + API router |
| llama-host | ::1:8765 | LLM inference |
| openclaw-gateway | ::1:18789 | Agent gateway |
| flush-watch | — | Memory flush (30min cycle) |
Algemene Commands
| Actie | Command |
| Status | systemctl --user status <service> |
| Start | systemctl --user start <service> |
| Stop | systemctl --user stop <service> |
| Restart | systemctl --user restart <service> |
| Logs | journalctl --user -u <service> -f |
| Logs (laatste 50) | journalctl --user -u <service> -n 50 |
NPR-Hub
systemctl --user restart npr-hub
# Hub herstarten (na wijziging index.js of config)
systemctl --user status npr-hub
# Status + PID + uptime checken
journalctl --user -u npr-hub -n 30
# Laatste 30 logregels
curl -s http://[::1]:3000/llama-host-api
# Health check
lsof -i :3000
# Wie gebruikt port 3000? (bij EADDRINUSE)
Llama-Host
systemctl --user restart llama-host
# LLM server herstarten
systemctl --user status llama-host
# Status + PID + uptime
curl -s http://[::1]:8765/v1/models
# Geladen modellen
OpenClaw Gateway
systemctl --user restart openclaw-gateway
# Gateway herstarten
systemctl --user status openclaw-gateway
# Status
Flush-Watch
systemctl --user restart flush-watch
# Memory flush cycle herstarten
systemctl --user status flush-watch
# Status
EADDRINUSE Fix (port 3000)
lsof -i :3000
# Vind PID
kill <PID>
# Kill oude instance
systemctl --user restart npr-hub
# Start clean
File Structure
| Pad | Rol |
skills/npr-hub/public/ | ✅ Live website — 58 pages |
skills/npr-hub/html/ | 📦 Templates (niet live) |
skills/npr-hub/index.js | Server code |
skills/npr-hub/config.json | Config |
.config/systemd/user/npr-hub.service | Systemd unit |
API Routes
| Route | Omschrijving |
GET /llama-host-api | Health + uptime |
GET /llama-host-api/system | RAM, CPU, llama/gateway process |
GET /llama-host-api/slots | Hexa slots + tasks |
GET /llama-host-api/sessions | OpenClaw sessions |
GET /llama-host-api/logs | Live logs |
GET /llama-host-api/config | Config + WebSocket info |