{
  "skills": {
    "entries": {
      "1password": { "enabled": false },
      "apple-notes": { "enabled": false },
      "apple-reminders": { "enabled": false },
      "bear-notes": { "enabled": false },
      "blogwatcher": { "enabled": false },
      "blucli": { "enabled": false },
      "bluebubbles": { "enabled": false },
      "camsnap": { "enabled": false },
      "clawhub": { "enabled": false },
      "coding-agent": { "enabled": false },
      "discord": { "enabled": false },
      "eightctl": { "enabled": false },
      "gemini": { "enabled": false },
      "gifgrep": { "enabled": false },
      "gog": { "enabled": false },
      "goplaces": { "enabled": false },
      "himalaya": { "enabled": false },
      "imsg": { "enabled": false },
      "mcporter": { "enabled": false },
      "model-usage": { "enabled": false },
      "nano-pdf": { "enabled": false },
      "notion": { "enabled": false },
      "obsidian": { "enabled": false },
      "openai-whisper": { "enabled": false },
      "openai-whisper-api": { "enabled": false },
      "openhue": { "enabled": false },
      "oracle": { "enabled": false },
      "ordercli": { "enabled": false },
      "peekaboo": { "enabled": false },
      "sag": { "enabled": false },
      "sherpa-onnx-tts": { "enabled": false },
      "slack": { "enabled": false },
      "songsee": { "enabled": false },
      "sonoscli": { "enabled": false },
      "spotify-player": { "enabled": false },
      "summarize": { "enabled": false },
      "things-mac": { "enabled": false },
      "tmux": { "enabled": false },
      "trello": { "enabled": false },
      "voice-call": { "enabled": false },
      "wacli": { "enabled": false },
      "xurl": { "enabled": false }
    }
  },
  "wizard": {
    "lastRunAt": "2026-05-25T21:11:58.200Z",
    "lastRunVersion": "2026.5.22",
    "lastRunCommand": "doctor",
    "lastRunMode": "local"
  },
  "meta": {
    "lastTouchedVersion": "2026.5.7",
    "lastTouchedAt": "2026-05-25T21:11:58.270Z"
  },
  "gateway": {
    "auth": {
      "mode": "token",
      "token": "<REDACTED_GATEWAY_TOKEN>"
    },
    "mode": "local",
    "port": 18789,
    "bind": "loopback",
    "tailscale": {
      "mode": "serve",
      "resetOnExit": true
    },
    "controlUi": {
      "allowInsecureAuth": true,
      "allowedOrigins": ["https://<YOUR_TAILSCALE_HOSTNAME>"]
    }
  },
  "agents": {
    "defaults": {
      "workspace": "~/.openclaw/workspace",
      "models": {
        "zai/glm-5.1": { "alias": "GLM" },
        "zai/glm-5-turbo": {},
        "openrouter/owl-alpha": {},
        "openrouter/nvidia/nemotron-3-super-120b-a12b:free": {},
        "openrouter/moonshotai/kimi-k2.6": {},
        "openrouter/minimax/minimax-m2.5:free": {},
        "openrouter/google/gemma-4-31b-it": {},
        "openrouter/free": {},
        "openrouter/anthropic/claude-sonnet-4.6": {}
      },
      "model": {
        "primary": "zai/glm-5.1",
        "fallbacks": ["zai/glm-5-turbo"]
      },
      "memorySearch": {
        "enabled": true,
        "provider": "openai",
        "model": "thenlper/gte-base",
        "remote": {
          "baseUrl": "https://openrouter.ai/api/v1",
          "apiKey": {
            "source": "env",
            "provider": "default",
            "id": "OPENROUTER_API_KEY"
          }
        },
        "sources": ["memory", "sessions"],
        "experimental": {
          "sessionMemory": true
        },
        "query": {
          "hybrid": {
            "enabled": true,
            "vectorWeight": 0.7,
            "textWeight": 0.3,
            "candidateMultiplier": 4,
            "mmr": {
              "enabled": true,
              "lambda": 0.7
            },
            "temporalDecay": {
              "enabled": true,
              "halfLifeDays": 30
            }
          }
        }
      },
      "contextPruning": {
        "mode": "cache-ttl",
        "ttl": "6h"
      },
      "compaction": {
        "memoryFlush": {
          "enabled": true,
          "model": "zai/glm-5-turbo",
          "softThresholdTokens": 40000,
          "prompt": "Write durable decisions, state changes, blockers, user preferences, and important operational context to memory/YYYY-MM-DD.md. Skip routine chatter. Reply NO_REPLY if nothing needs saving.",
          "systemPrompt": "Pre-compaction memory flush. Save only durable context. Do not summarize routine chatter. Do not reveal secrets."
        }
      },
      "contextInjection": "always",
      "bootstrapMaxChars": 20000,
      "bootstrapTotalMaxChars": 150000
    }
  },
  "session": {
    "dmScope": "per-channel-peer"
  },
  "tools": {
    "profile": "coding",
    "web": {
      "search": {
        "provider": "duckduckgo",
        "enabled": true,
        "openaiCodex": {}
      },
      "fetch": {
        "enabled": true
      }
    }
  },
  "plugins": {
    "entries": {
      "zai": { "enabled": true },
      "telegram": { "enabled": true },
      "duckduckgo": { "enabled": true },
      "bluebubbles": { "enabled": true },
      "openrouter": { "enabled": true }
    }
  },
  "models": {
    "mode": "merge",
    "providers": {
      "zai": {
        "baseUrl": "https://api.z.ai/api/coding/paas/v4",
        "api": "openai-completions",
        "models": [
          {
            "id": "glm-5.1",
            "name": "GLM-5.1",
            "reasoning": true,
            "input": ["text"],
            "cost": { "input": 1.2, "output": 4, "cacheRead": 0.24, "cacheWrite": 0 },
            "contextWindow": 202800,
            "maxTokens": 131100
          },
          {
            "id": "glm-5",
            "name": "GLM-5",
            "reasoning": true,
            "input": ["text"],
            "cost": { "input": 1, "output": 3.2, "cacheRead": 0.2, "cacheWrite": 0 },
            "contextWindow": 202800,
            "maxTokens": 131100
          },
          {
            "id": "glm-5-turbo",
            "name": "GLM-5 Turbo",
            "reasoning": true,
            "input": ["text"],
            "cost": { "input": 1.2, "output": 4, "cacheRead": 0.24, "cacheWrite": 0 },
            "contextWindow": 202800,
            "maxTokens": 131100
          },
          {
            "id": "glm-5v-turbo",
            "name": "GLM-5V Turbo",
            "reasoning": true,
            "input": ["text", "image"],
            "cost": { "input": 1.2, "output": 4, "cacheRead": 0.24, "cacheWrite": 0 },
            "contextWindow": 202800,
            "maxTokens": 131100
          },
          {
            "id": "glm-4.7",
            "name": "GLM-4.7",
            "reasoning": true,
            "input": ["text"],
            "cost": { "input": 0.6, "output": 2.2, "cacheRead": 0.11, "cacheWrite": 0 },
            "contextWindow": 204800,
            "maxTokens": 131072
          },
          {
            "id": "glm-4.7-flash",
            "name": "GLM-4.7 Flash",
            "reasoning": true,
            "input": ["text"],
            "cost": { "input": 0.07, "output": 0.4, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 200000,
            "maxTokens": 131072
          },
          {
            "id": "glm-4.7-flashx",
            "name": "GLM-4.7 FlashX",
            "reasoning": true,
            "input": ["text"],
            "cost": { "input": 0.06, "output": 0.4, "cacheRead": 0.01, "cacheWrite": 0 },
            "contextWindow": 200000,
            "maxTokens": 128000
          },
          {
            "id": "glm-4.6",
            "name": "GLM-4.6",
            "reasoning": true,
            "input": ["text"],
            "cost": { "input": 0.6, "output": 2.2, "cacheRead": 0.11, "cacheWrite": 0 },
            "contextWindow": 204800,
            "maxTokens": 131072
          },
          {
            "id": "glm-4.6v",
            "name": "GLM-4.6V",
            "reasoning": true,
            "input": ["text", "image"],
            "cost": { "input": 0.3, "output": 0.9, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 128000,
            "maxTokens": 32768
          },
          {
            "id": "glm-4.5",
            "name": "GLM-4.5",
            "reasoning": true,
            "input": ["text"],
            "cost": { "input": 0.6, "output": 2.2, "cacheRead": 0.11, "cacheWrite": 0 },
            "contextWindow": 131072,
            "maxTokens": 98304
          },
          {
            "id": "glm-4.5-air",
            "name": "GLM-4.5 Air",
            "reasoning": true,
            "input": ["text"],
            "cost": { "input": 0.2, "output": 1.1, "cacheRead": 0.03, "cacheWrite": 0 },
            "contextWindow": 131072,
            "maxTokens": 98304
          },
          {
            "id": "glm-4.5-flash",
            "name": "GLM-4.5 Flash",
            "reasoning": true,
            "input": ["text"],
            "cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 131072,
            "maxTokens": 98304
          },
          {
            "id": "glm-4.5v",
            "name": "GLM-4.5V",
            "reasoning": true,
            "input": ["text", "image"],
            "cost": { "input": 0.6, "output": 1.8, "cacheRead": 0, "cacheWrite": 0 },
            "contextWindow": 64000,
            "maxTokens": 16384
          }
        ]
      }
    }
  },
  "auth": {
    "profiles": {
      "zai:default": {
        "provider": "zai",
        "mode": "api_key"
      },
      "openrouter:default": {
        "provider": "openrouter",
        "mode": "api_key"
      }
    }
  },
  "hooks": {
    "internal": {
      "enabled": true,
      "entries": {
        "compaction-notifier": { "enabled": true },
        "bootstrap-extra-files": { "enabled": true },
        "boot-md": { "enabled": true },
        "session-memory": { "enabled": true },
        "command-logger": { "enabled": true }
      }
    }
  },
  "channels": {
    "telegram": {
      "enabled": true,
      "groups": {
        "*": {
          "requireMention": true
        }
      },
      "botToken": "<REDACTED_TELEGRAM_BOT_TOKEN>",
      "dmPolicy": "allowlist",
      "allowFrom": ["<YOUR_TELEGRAM_USER_ID>"],
      "linkPreview": false,
      "groupAllowFrom": ["<YOUR_TELEGRAM_GROUP_ID>"]
    },
    "bluebubbles": {
      "enabled": true,
      "webhookPath": "/bluebubbles-webhook",
      "serverUrl": "https://<YOUR_BLUEBUBBLES_SERVER>",
      "password": "<REDACTED_BLUEBUBBLES_PASSWORD>"
    }
  },
  "messages": {
    "groupChat": {
      "visibleReplies": "message_tool"
    }
  }
}
