◈ NPR-Hub — Terminal Reference

Alle commands voor beheer van de hub-services. Systemd user-scope — altijd met --user.

Services

ServicePortRol
npr-hub::1:3000Website + API router
llama-host::1:8765LLM inference
openclaw-gateway::1:18789Agent gateway
flush-watchMemory flush (30min cycle)

Algemene Commands

ActieCommand
Statussystemctl --user status <service>
Startsystemctl --user start <service>
Stopsystemctl --user stop <service>
Restartsystemctl --user restart <service>
Logsjournalctl --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

PadRol
skills/npr-hub/public/✅ Live website — 58 pages
skills/npr-hub/html/📦 Templates (niet live)
skills/npr-hub/index.jsServer code
skills/npr-hub/config.jsonConfig
.config/systemd/user/npr-hub.serviceSystemd unit

API Routes

RouteOmschrijving
GET /llama-host-apiHealth + uptime
GET /llama-host-api/systemRAM, CPU, llama/gateway process
GET /llama-host-api/slotsHexa slots + tasks
GET /llama-host-api/sessionsOpenClaw sessions
GET /llama-host-api/logsLive logs
GET /llama-host-api/configConfig + WebSocket info
Llama Host · Grid · Config · Public