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.
git clone --depth 1 https://github.com/albemiglio/keywardWrote 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/commands/albemiglio/keyward/key)<a href="https://agentmods.dev/commands/albemiglio/keyward/key"><img src="https://agentmods.dev/badge/commands/albemiglio/keyward/key/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/commands/albemiglio/keyward/key"><img src="https://agentmods.dev/badge/commands/albemiglio/keyward/key.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.00027 | $0.00310 |
| Opus 5.5 | $0.00011 | $0.00124 |
| Sonnet 5.5 | $0.00005 | $0.00062 |
| Haiku 4.5 | $0.00003 | $0.00031 |
Grade C, and why
key scanned grade C with 3 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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
`NAME=VALUE` pair, saves the value to `~/.claude/secrets/<NAME>.txt` (chmod 600), blocks the original prompt, and re-submits a sanitized version where the Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
export OPENAI_API_KEY=$(cat ~/.claude/secrets/openai.txt) && curl ... Makes network callslowCapability
Not a fault in itself. Listed so you know the mod talks to something, and to what.
export OPENAI_API_KEY=$(cat ~/.claude/secrets/openai.txt) && curl ... What it actually says
/key — explicit secret registration
Syntax: /key NAME=VALUE
When you type this, the Keyward UserPromptSubmit hook detects the
NAME=VALUE pair, saves the value to ~/.claude/secrets/<NAME>.txt (chmod
600), blocks the original prompt, and re-submits a sanitized version where the
value is replaced with <<secret:NAME stored at ~/.claude/secrets/NAME.txt>>.
The value never reaches the model context or the session transcript.
Examples
/key openai=sk-proj-abc... then use it to call gpt-5
/key stripe=sk_live_xyz... then process the test charge
The auto-detection regex also catches well-known key formats (sk-ant-, ghp_,
AIza..., etc.) even without the /key prefix — explicit registration is only
needed for custom or internal tokens not in the regex library.
Using a saved key
Reference it by path. Claude should always source it via:
export OPENAI_API_KEY=$(cat ~/.claude/secrets/openai.txt) && curl ...
…not cat alone (which prints the value into the bash output → model context).
Arguments: $ARGUMENTS
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 First seen · 39 lines · 27 tokens per session scan C 5e8e27069d2d
key is a command published in the GitHub repository albemiglio/keyward (1 stars, last pushed 1mo ago), licensed MIT. It adds 27 tokens to every session and 310 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it C with 3 findings (asks for root, reads agent configuration directories, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other commands, from other repositories
init
Detect this repo's stack and configure Claude Code (MCP servers + skills).
setup
Choose your cchad baseline and apply it to your user scope (run once).
plan
Preview what cchad would configure for this repo. Changes nothing.
sync
Rebuild this repo's Claude Code config from its committed manifest.
recall-save
Generate / overwrite .recall/context.md with Recall's local offline summarizer.
notebook-query
Query the notebook knowledge base (SQLite) built by /agy:notebook — precise, grounded, cited. Ask in natural language ("sum the amounts by category", "which docs mention 'Acme Corp'", "build a project timeline") or pass raw SQL. Read-only. Use this when you need exact aggregates/lookups across a document corpus…