From nhi-scoper
Short-lived credential gate. Fetches a token from a configured broker only; it never invents a token and never falls back to a long-lived credential.
3 events · 8 calls
Ships in nhi-scoper. Installing the plugin adds it to Claude Code.
A mod runs inside Claude Code as you, unsandboxed. This is what its source calls.
tool.callhttp.fetchenv.getenv.setEach event it registers a hook on, with the matcher when it sets one
session.startcommand.run{command=nhi-refresh}command.run{command=nhi-revoke}tool.call{tool=Bash|PowerShell}Every mods API method its source calls, by namespace
nowregistergetsetfetchdeletegetsetNHI_TOKENWhere Claude Code finds the mod
hooks/hooks.jsonhooks/register.js (written ./register.js)Read from the source, never run. Claude Code checks a mod again when it loads it and can refuse code this reading accepts; claude plugin validate shows its own list.
npx claudepluginhub kenhuangus/claude-code-security-mods --plugin nhi-scoper