{"name":"SELF_HOSTED_RUNNER_DEBUG_TOKEN_DIR","slug":"self-hosted-runner-debug-token-dir","family":"env","title":"Environment variables","noun":"environment variable","description":"Directory where `claude self-hosted-runner` writes live credentials for debugging: `runner_token.jwt` at registration and on each refresh, and per session `session_token_<id>.jwt` and `inference_token_<id>.txt`. The directory is created with mode `0700` and the files with mode `0600`; write failures are logged and ignored. `--debug-token-dir` sets the same option.","description_source":"code","described_by":{"bundle":"2.1.286","author":"claude-opus-5-5"},"presence":{"first_seen":"2.1.224","removed_in":null,"in_current_build":true,"newest_mined":"2.1.308","builds":73,"mined_builds":149,"first_cited":null},"aliases":[],"entries":[],"entries_total":0,"docs":[{"source":"claude-code","path":"self-hosted-environments-reference","title":"Self-hosted environments reference","documented":false}],"docs_total":1,"gates":[],"related":[{"name":"SELF_HOSTED_RUNNER_DEBUG_DIR","slug":"self-hosted-runner-debug-dir","description":"Directory for debug artifacts of the `claude self-hosted-runner` orchestrator: after each spawn-runner hook run it writes `<jti>.jwt`, `<jti>.json` (the decoded work-order claims) and `<jti>.stderr` (the hook's stderr or failure message) with mode `0600`, and deletes matching files older than 5 minutes. The directory is created at startup; if that fails the orchestrator continues without debug artifacts."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/self-hosted-runner-debug-token-dir","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}