Search the documentation
2 pages for self_hosted_runner_hooks_dir.
Titles and paths first, then pages whose text carries it. Each row opens that page as this site last read it.
Customize sessions in self-hosted environments
Claude Code CLI · in the page
self-hosted-environments-configuration
…int the runner at a directory of hooks with `--hooks-dir <path>`, or `SELF_HOSTED_RUNNER_HOOKS_DIR`. The runner looks for executable files with well-known names; any hook that isn't present falls thro…
Self-hosted environments reference
Claude Code CLI · in the page
self-hosted-environments-reference
…| | `--hooks-dir <path>` | `SELF_HOSTED_RUNNER_HOOKS_DIR` | unset | Directory of lifecycle hook scripts. See [Lifec…