{"name":"DEBUG_CLAUDE_AGENT_SDK","slug":"debug-claude-agent-sdk","family":"env","title":"Environment variables","noun":"environment variable","description":"SDK debug logging tags a session id and can write through the storage layer when given one.","description_source":"entry","described_by":{"version":"2.1.228","anchor":"agent-sdk-debug-logs-can-go-through-the-storage-layer"},"presence":{"first_seen":"2.1.138","removed_in":null,"in_current_build":true,"newest_mined":"2.1.309","builds":150,"mined_builds":150,"first_cited":{"version":"2.1.281","released_at":"2026-09-23 17:01:17","spans":1}},"aliases":[],"entries":[{"version":"2.1.281","anchor":"debug-claude-agent-sdk-read-from-live-processenv-with-truth","heading":"DEBUG_CLAUDE_AGENT_SDK read from live process.env with truthy parsing","line":"`DEBUG_CLAUDE_AGENT_SDK` is now read from the current environment each time and parsed as on or off","released_at":"2026-09-23 17:01:17","reason":"found in this entry's text, named in this entry"},{"version":"2.1.228","anchor":"agent-sdk-debug-logs-can-go-through-the-storage-layer","heading":"Agent SDK debug logs can go through the storage layer","line":"SDK debug logging tags a session id and can write through the storage layer when given one.","released_at":"2026-08-11 17:45:45","reason":"named in this entry, found in this entry's text"}],"entries_total":2,"docs":[],"docs_total":0,"gates":[],"related":[{"name":"DEBUG","slug":"debug","description":"When `1`, `true`, `yes` or `on`, turns on Claude Code's debug mode from launch, as `--debug` does. Any non-empty value also makes the `self-hosted-runner` setup and doctor commands print the argv of the session they spawn to stderr. Bundled third-party libraries read `DEBUG` with their own meaning as well."},{"name":"DEBUG_AUTH","slug":"debug-auth","description":"Read by the bundled Google Cloud metadata client when it checks whether a metadata server is reachable. When set to any non-empty value, the error from a failed probe is printed with `console.info` before it is classified."},{"name":"DEBUG_SDK","slug":"debug-sdk","description":"When `1`, `true`, `yes` or `on`, turns on Claude Code's debug mode from launch, the same as `DEBUG` or `--debug`."}],"url":"https:\/\/changelogs.core-directive.com\/reference\/env\/debug-claude-agent-sdk","family_url":"https:\/\/changelogs.core-directive.com\/reference\/env.json"}