Include email body snippets. Pass --no-include-body to disable.
--max-bytes <n>
20000
Max bytes per body snippet.
--renew-minutes <n>
720 (12h)
Renew Gmail watch every N minutes.
Tailscale exposure
Flag
Default
Description
--tailscale <mode>
funnel
Expose push endpoint via tailscale: funnel, serve, or off.
--tailscale-path <path>
(none)
Path for tailscale serve/funnel.
--tailscale-target <t>
(none)
Tailscale serve/funnel target (port, host:port, or URL).
Output
Flag
Description
--json
Print a machine-readable summary instead of text.
webhooks gmail run
Run the configured gog gmail watch delivery process plus the watch auto-renew loop in the foreground. Push configs start gog gmail watch serve; pull configs start gog gmail watch pull.
openclaw webhooks gmail run --account you@example.com
run accepts the same push-oriented gog watch serve, OpenClaw delivery, Pub/Sub, and Tailscale flags as setup, except:
--account is optional on run (it falls back to the configured account).
run does not accept --project, --push-endpoint, or --json.
run flags have no built-in defaults; missing values fall back to the values written by setup.
Pull mode is selected from hooks.gmail.delivery.mode in config. Use hooks.gmail.delivery.subscription for the full pull subscription path.