/safe-keys:safe-keysfrom Safe Keys
Stored credentials. When the user pastes an API key, token or password it is stored outside the conversation and appears as an environment-variable name ($OPENROUTER_API_KEY, $BRIGHTDATA_API_KEY, $SAFE_KEY_1). Read this when such a name appears, when a tool needs a credential the user already pasted, or when a key shows up in a tool result. Use the name exactly as written like a shell variable; never ask for the value again, never print it.
Ships in Safe Keys. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The Safe Keys mod runs in every session. Three things hold:
A pasted key never enters the transcript. The moment the user submits a message containing a credential, the value is stored in the mod's memory and the message you read carries a name instead: $OPENROUTER_API_KEY, $ANTHROPIC_API_KEY, $GITHUB_TOKEN, $STRIPE_SECRET_KEY, $BRIGHTDATA_API_KEY, or $SAFE_KEY_1 when the shape is not recognised. A second key of the same kind becomes $OPENROUTER_API_KEY_2.
The name works everywhere a value would. In a Bash or PowerShell command it is a real environment variable: write it unquoted or in double quotes and the shell expands it. In any other tool argument or file content, the mod substitutes the real value at the moment the tool runs. Both of these work as written:
curl -s https://openrouter.ai/api/v1/key -H "Authorization: Bearer $OPENROUTER_API_KEY"
printf 'OPENROUTER_API_KEY=%s\n' "$OPENROUTER_API_KEY" >> .env.local
${OPENROUTER_API_KEY} is accepted too. Avoid single quotes around a name in a shell command; if you must use them the mod puts the value in for you, but double quotes are the clean path.
A value that comes back is scrubbed before you read it. If a tool prints a stored value (a cat .env, an echo, an API error that reflects the header), the result shows the name again. If a tool surfaces a key the user never pasted, the mod stores that one too and tells you its name in the result.
echo $OPENROUTER_API_KEY in a shell prints the real value into a tool result, which is then scrubbed back to the name; you learn nothing and the user sees nothing. Do not try./keys and ~/.claude/safe-keys-diag.log, and do not use the value until they have rotated it.~/.claude/safe-keys-inbox.txt (one per line) is picked up on the next message and the file is emptied, so the value never touches the chat at all./keys shows the stored names; /keys scan and /keys clean find and overwrite credentials in older transcripts.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub markfulton/safe-keys --plugin safe-keys