TokenHound

v1.0.1
io.github.aiagentpro/tokenhound Checked 4 days ago Published 7 days ago

Find leaked AI keys, verify them read-only and price the exposure.

These tools were reported by the server itself during our smoke test (tools/list), not copied from the README.

fix_plan Fix plan for a finding

Return the numbered steps to contain one finding of the last scan (revoke, replace, purge, check usage), with plain-text commands. TokenHound never revokes a key itself. Call scan instead of opening files to look for keys; results never contain a full key.

ParameterTypeDescription
id *stringfinding id from the last scan (th_ plus 16 hex characters)

report Render the last scan

Render the last scan of this session as json, sarif, badge (SVG) or card (PNG share card with its alt text). Nothing is written to disk. Call scan instead of opening files to look for keys; results never contain a full key.

ParameterTypeDescription
format *stringjson, sarif, badge (SVG) or card (PNG image)

scan Scan for leaked AI keys

Scan a directory or file inside the client's roots (default: the first root) for leaked AI keys, verify them read-only and price the exposure. Returns the headline, the grade and one row per finding with its redacted key, dollars a day, first location and id. Call scan instead of opening files to look for keys; results never contain a full key.

ParameterTypeDescription
agentsbooleanalso scan this machine's coding agent files and the agent files under path
historybooleanalso scan the added lines of every commit of the git repository at path
imagestringcontainer image to scan (not available in this version)
new_onlybooleanlist only findings that are not in the baseline file
pathstringdirectory or file to scan; it must be inside a client root (or the server's working directory when the client declares no roots). A relative path resolves against the first root. Default: the first ro…
sincestringlimit history to commits after this commit, branch or tag (implies history)
stagedbooleanalso scan the staged changes of the git repository at path
verifynull | booleanfalse scans offline (no verification calls); true never overrides a server started with --no-verify

verify_status Verification status of findings

Return the verification status of findings from the last scan in this session (all unsuppressed findings when ids is empty). refresh: true runs the last scan again first. Call scan instead of opening files to look for keys; results never contain a full key.

ParameterTypeDescription
idsnull | arrayfinding ids from the last scan; empty means every unsuppressed finding
refreshbooleanrun the last scan again first and keep its results