IntegrationsOpenClaw
OpenClaw Hook Setup
Install and verify the ClawVault OpenClaw hook pack for context resilience and session-start context injection.
This is the runtime hook setup for ClawVault. Use this when you want automatic lifecycle behavior in OpenClaw.
Install + Enable
npm install -g clawvault
openclaw hooks install clawvault
openclaw hooks enable clawvaultRestart the OpenClaw gateway process after enabling.
Verify (Required)
openclaw hooks list --verbose
openclaw hooks info clawvault
openclaw hooks check
clawvault compatEvents Used
The ClawVault hook pack is built for:
gateway:startupgateway:heartbeatcommand:newsession:startcompaction:memoryFlushcron.weekly
What It Automates
- context death detection on startup
- checkpoint before
/new - task-aware context injection at session start (
--profile auto) - active observation flush during relevant lifecycle events
Hook Discovery Clarification
OpenClaw discovers hooks in this order:
- workspace hooks (
<workspace>/hooks/) - managed hooks (
~/.openclaw/hooks/) - bundled hooks
If a hook with the same name exists in workspace hooks, it can shadow the managed hook install.
Troubleshooting
Hook not found when enabling
openclaw hooks install clawvault
openclaw hooks list --verboseThen enable again:
openclaw hooks enable clawvaultHook installed but not firing
openclaw hooks check
openclaw hooks info clawvaultThen restart gateway.
Compatibility check
clawvault compat --strictSkill vs Hook
clawhub install clawvaultis skill/workspace guidance.openclaw hooks install clawvaultis runtime hook installation.
Both can be useful; they are not the same mechanism.