OpenClaw & ZeroClaw SBC Daemon Config Generator & Security Linter

Manifest Target
openclaw.json
Active Channels
2 Bound
Memory Cap
1536 MB
Security Posture
Hardened
[OK] Zero schema deprecations, public gateway exposures, or hardcoded tokens detected.
{
  "agents": {
    "ownership": "explicit",
    "defaults": {
      "workspace": "~/.openclaw/workspace",
      "systemAgent": {
        "agentId": "main"
      },
      "model": {
        "primary": "anthropic/claude-sonnet-4.6",
        "fallbacks": [
          "openai/gpt-5.4-mini",
          "ollama/qwen3:8b"
        ]
      },
      "skills": [
        "github",
        "web-fetch",
        "filesystem"
      ],
      "thinkingDefault": "low",
      "elevatedDefault": "on",
      "sandbox": {
        "mode": "non-main",
        "scope": "session",
        "backend": "docker",
        "workspaceRoot": "~/.openclaw/sandboxes",
        "docker": {
          "image": "openclaw-sandbox:trixie-slim",
          "workdir": "/workspace",
          "readOnlyRoot": true,
          "tmpfs": [
            "/tmp",
            "/var/tmp",
            "/run"
          ],
          "network": "none",
          "user": "1000:1000"
        }
      }
    },
    "entries": {
      "main": {
        "workspace": "~/.openclaw/workspace",
        "identity": {
          "name": "CrabPi",
          "theme": "reliable self-hosted edge assistant",
          "emoji": "🦀"
        }
      }
    }
  },
  "session": {
    "scope": "per-sender",
    "dmScope": "per-channel-peer",
    "reset": {
      "mode": "daily",
      "atHour": 4,
      "idleMinutes": 120
    },
    "maintenance": {
      "mode": "warn",
      "pruneAfter": "30d",
      "maxEntries": 500,
      "maxDiskBytes": "500mb"
    }
  },
  "channels": {
    "telegram": {
      "enabled": true,
      "botToken": "${TELEGRAM_BOT_TOKEN}",
      "allowFrom": [
        "123456789"
      ],
      "groupPolicy": "allowlist",
      "groups": {
        "*": {
          "requireMention": true
        }
      }
    },
    "discord": {
      "enabled": true,
      "token": "${DISCORD_BOT_TOKEN}",
      "dmPolicy": "allowlist",
      "allowFrom": [
        "123456789012345678"
      ],
      "guilds": {
        "123456789012345678": {
          "requireMention": true,
          "channels": {
            "general": {
              "enabled": true,
              "requireMention": true
            }
          }
        }
      }
    }
  },
  "bindings": [
    {
      "agentId": "main",
      "match": {
        "channel": "telegram",
        "accountId": "*"
      }
    },
    {
      "agentId": "main",
      "match": {
        "channel": "discord",
        "accountId": "*"
      }
    }
  ],
  "gateway": {
    "mode": "local",
    "port": 18789,
    "bind": "loopback",
    "controlUi": {
      "enabled": true,
      "basePath": "/openclaw"
    },
    "auth": {
      "mode": "token",
      "allowTailscale": true
    },
    "tailscale": {
      "mode": "serve"
    }
  },
  "models": {
    "mode": "merge",
    "providers": {
      "ollama": {
        "baseUrl": "http://127.0.0.1:11434/v1",
        "api": "openai-completions",
        "models": [
          {
            "id": "qwen3:8b",
            "name": "Local Ollama (qwen3:8b)",
            "reasoning": false,
            "input": [
              "text"
            ],
            "cost": {
              "input": 0,
              "output": 0,
              "cacheRead": 0,
              "cacheWrite": 0
            },
            "contextWindow": 32768,
            "maxTokens": 4096
          }
        ]
      }
    }
  }
}

Hardening Self-Hosted *Claw Daemons on Raspberry Pi & Homelab Nodes

Running an always-on automation daemon on your home LAN requires strict network and filesystem boundaries: bind control ports to loopback or Tailscale Serve, isolate per-sender DM sessions, and keep bot tokens strictly in chmod 600 environment files.

  • systemd & Power Provisioning: Running bare-metal instead of Docker? Generate a matching MemoryMax-capped service unit in our Raspberry Pi 5 Power & systemd Tool.
  • 24×7 Host & UPS Sizing: Hosting OpenClaw alongside Proxmox and NAS containers? Check rack wattage and NUT shutdown runtime in our Homelab Power & UPS Calculator.
  • Storage Backing: Store persistent Docker volumes on redundant ZFS mirrors sized with our NAS RAID & ZFS Capacity Calculator.

Related Engineering Calculators & Workbenches

Static Security & Schema Linter Rules Enforced

Rule Code Severity Remediation
PLAINTEXT_SECRET Error Replace sk-ant-* / BotFather strings with env vars
LEGACY_AGENTS_LIST Warning Migrate agents.list[] to agents.entries
RETIRED_HEARTBEAT_KEY Warning Convert to openclaw automations add --idle-only
OPEN_DM_MISSING_WILDCARD Error Use allowlist policy or explicit "*"

Frequently Asked Questions

What changed in OpenClaw v2026.11 compared to legacy openclaw.json examples?

OpenClaw v2026.11 replaced legacy agents.list arrays with keyed agents.entries under agents.ownership = 'explicit', and retired top-level heartbeat keys in favor of isolated 'openclaw automations add' schedules. Run 'openclaw doctor --fix' to migrate older files.

When should I deploy Rust ZeroClaw instead of Node-based OpenClaw on an SBC?

On 512MB–2GB boards (Pi Zero 2 W, Pi 4 2GB) or busy NAS appliances, ZeroClaw v0.8.7 compiles to a single static Rust binary under 25 MB RSS and injects secrets cleanly via ZEROCLAW_* double-underscore environment variables.

Why should session.dmScope be set to per-channel-peer?

When multiple family members, team channels, or chat platforms reach your self-hosted bot, shared DM scope merges conversation state across senders. Setting dmScope = 'per-channel-peer' isolates memory per sender and channel.