openclaw hooks
agent hook을 관리합니다. hook은 /new, /reset, gateway startup 같은 command/event에 반응하는 event-driven automation입니다.
Related:
List All Hooks
--eligible: 요구 사항을 충족한 eligible hook만 표시--json: JSON 출력-v, --verbose: missing requirement를 포함한 상세 정보 표시
Get Hook Information
<name>: hook 이름 (예:session-memory)
--json: JSON 출력
Check Hooks Eligibility
--json: JSON 출력
Enable a Hook
~/.openclaw/config.json)에 추가해 활성화합니다.
Note: plugin이 관리하는 hook은 openclaw hooks list에서 plugin:<id>로 보이며, 여기서 enable/disable할 수 없습니다. 대신 plugin을 enable/disable해야 합니다.
Arguments:
<name>: hook 이름 (예:session-memory)
- hook이 존재하고 eligible한지 확인
- config의
hooks.internal.entries.<name>.enabled = true로 업데이트 - config를 디스크에 저장
- hook이 다시 로드되도록 gateway를 재시작하세요. (macOS에서는 menu bar app restart, dev에서는 gateway process restart)
Disable a Hook
<name>: hook 이름 (예:command-logger)
- hook이 다시 로드되도록 gateway를 재시작하세요.
Install Hooks
--ignore-scripts로 실행됩니다.
bare spec이나 @latest는 stable track으로 간주합니다. npm이 이를 prerelease로 resolve하면 OpenClaw는 진행을 멈추고 @beta, @rc, 또는 exact prerelease version처럼 명시적 prerelease opt-in을 요구합니다.
What it does:
- hook pack을
~/.openclaw/hooks/<id>로 복사 - 설치된 hook을
hooks.internal.entries.*에 활성화 - 설치 정보를
hooks.internal.installs에 기록
-l, --link: local directory를 복사하지 않고 link (hooks.internal.load.extraDirs에 추가)--pin: npm install을 resolved exactname@version형태로 기록
.zip, .tgz, .tar.gz, .tar
Examples:
Update Hooks
--all: 추적 중인 hook pack 전체 업데이트--dry-run: 쓰기 없이 변경 예정만 표시
--yes로 prompt를 건너뛸 수 있습니다.
Bundled Hooks
session-memory
/new를 실행할 때 session context를 memory에 저장합니다.
Enable:
~/.openclaw/workspace/memory/YYYY-MM-DD-slug.md
See: session-memory documentation
bootstrap-extra-files
agent:bootstrap 동안 monorepo-local AGENTS.md, TOOLS.md 같은 추가 bootstrap file을 주입합니다.
Enable:
command-logger
모든 command event를 중앙 audit file에 기록합니다. Enable:~/.openclaw/logs/commands.log
View logs:
boot-md
gateway가 시작될 때 (channels 시작 이후) BOOT.md를 실행합니다.
Events: gateway:startup
Enable: