maxip2@maxip2-OptiPlex-5050:~$ cat ~/.openclaw/openclaw.json | python3 -c "
import sys, json
d = json.load(sys.stdin)
h = d.get('hooks', {})
if 'token' in h: h['token'] = 'REDACTED'
if 'gmail' in h:
if 'pushToken' in h['gmail']: h['gmail']['pushToken'] = 'REDACTED'
if 'hookToken' in h['gmail']: h['gmail']['hookToken'] = 'REDACTED'
print(json.dumps(h, indent=2))
"
{
"enabled": true,
"path": "/hooks",
"token": "REDACTED",
"presets": [
"gmail"
],
"gmail": {
"account": "assistant@plebelectric.com",
"label": "INBOX",
"topic": "projects/rock-sublime-491020-b5/topics/gog-gmail-watch",
"subscription": "gog-gmail-watch-push",
"pushToken": "REDACTED",
"hookUrl": "http://127.0.0.1:18789/hooks/gmail",
"includeBody": true,
"maxBytes": 20000,
"renewEveryMinutes": 720,
"serve": {
"bind": "127.0.0.1",
"port": 8788,
"path": "/"
},
"tailscale": {
"mode": "funnel",
"path": "/gmail-pubsub"
}
}
}