Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add tashian/tsm --skill credential-usagegit clone --depth 1 https://github.com/tashian/tsmWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/tashian/tsm/credential-usage)<a href="https://agentmods.dev/skills/tashian/tsm/credential-usage"><img src="https://agentmods.dev/badge/skills/tashian/tsm/credential-usage/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/tashian/tsm/credential-usage"><img src="https://agentmods.dev/badge/skills/tashian/tsm/credential-usage.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00106 | $0.02412 |
| Opus 5.5 | $0.00042 | $0.00965 |
| Sonnet 5.5 | $0.00021 | $0.00482 |
| Haiku 4.5 | $0.00011 | $0.00241 |
Grade B, and why
credential-usage scanned grade B with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Reads MCP configurationmediumAgent snooping
mcp.json carries server URLs and auth tokens; reading it lets a mod discover and abuse other integrations.
Not "Your vault has one GitHub entry, `gh-token` (classic PAT with repo + read:org), so I used that. The token never appears in `.mcp.json` or any argv. The first start will pop a Touch ID prompt; later starts won't." bu Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
description: Use whenever a task needs an API key, token, password, database URL, certificate, or any other credential. That includes configuring an MCP server, calling an authenticated API with curl, running gh/aws/open How it starts
The opening of the file, as written. The whole thing — 100 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Using credentials from the tsm vault
tsm is a Touch ID-gated secrets vault on this Mac. The user installed this plugin so you pull credentials from it instead of asking for them. tsm list, tsm get, and tsm status are allowlisted for you. tsm run is not, because it runs whatever command follows --, so the user approves each one; every other subcommand (add, edit, remove, reset, init, config set) changes the vault and is the user's to run. The first vault access in a session blocks on a system Touch ID dialog until the user responds. Do not kill or retry it. The dialog shows the command that receives the secret, so keep that command short and readable: the user approves what the dialog shows.
Workflow
- Look before asking.
tsm list <term>... --jsonlists the entries where any term appears in the name, display name, description, or a tag, ignoring case. Pass the service and its synonyms (tsm list aws amazon --json) rather than filtering the full list yourself. The output is one JSON array with one entry per line, each{"name", "display_name", "description", "confirm", "tags"}, never values. One match: use it. Several plausible: ask which. None ([]): say so, propose a kebab-case name, and stop. Do not ask for a value while a match exists. If a command fails, stdout is empty, the exit code is 1, and with--jsonstderr holds{"error": {"code", "name", "message"}};nameisauth_required,auth_unavailable,vault_locked, orsecret_not_found. - Pick the carrier for the tool (below). Prefer
tsm runwhenever the tool reads an environment variable. - Do the task, then report the task, not the credential handling (see "What to tell the user").
The one rule: the value never lands in an argument list
Anything in a process's argv is visible in ps to every user on the machine and lands in shell history. So the value travels by environment variable, file descriptor, or 0600 temp file, never as part of a command line. $(tsm get x) inside a flag value breaks the rule even though it looks tidy, and eval "$(tsm get x --format 'env X')" plants it in the parent shell for its whole lifetime.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 1mo ago Changed 8089ab84b01a
- 1mo ago Changed 3af507f27a1d
- 1mo ago Changed · +2 lines 981ea2c27690
- 1mo ago Changed · -51 lines · -3 tokens per session scan A → B 00c40de5d427
- 1mo ago Changed · +23 lines · +72 tokens per session 1271a6fb634e
- 2mo ago First seen · 126 lines · 37 tokens per session scan A fa65d103b763
credential-usage is a skill published in the GitHub repository tashian/tsm (10 stars, last pushed 11d ago), licensed MIT. It adds 106 tokens to every session and 2,412 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it B with 2 findings (reads mcp configuration, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
credential-usage compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| credential-usagetashian/tsm | Skill | 10 | 11d ago | MIT | B | 106 | Claude Code |
| mksStickman230/claude-pentest | Skill | 133 | 5mo ago | MIT | A | 54 | Claude Code |
| pentestStickman230/claude-pentest | Skill | 133 | 5mo ago | MIT | A | 50 | Claude Code |
| authenticatingStickman230/claude-pentest | Skill | 133 | 5mo ago | MIT | A | 54 | Claude Code |
| common-appsec-patternsStickman230/claude-pentest | Skill | 133 | 5mo ago | MIT | A | 42 | Claude Code |
| web-application-mappingStickman230/claude-pentest | Skill | 133 | 5mo ago | MIT | A | 38 | Claude Code |
| cve-testingStickman230/claude-pentest | Skill | 133 | 5mo ago | MIT | A | 36 | Claude Code |