Agent Ops Club by Reinventing.AI

Safe Keys, a free Claude Code mod

Paste an API key into Claude Code. Nothing keeps it.

Not the chat, not the transcript on your disk, not the screen, not the model. The key becomes a name the moment you press Enter, and your tools still get to use it.

How it works

You paste a key once. Everything else sees a name.

I built it the day I pasted a Bright Data key into my own session and watched the redactor I had at the time miss it. The miss is written up in the repository, and the fix is tested against that exact shape.

Where a key could landWhat Safe Keys does
The prompt box, on pasteReplaced before the text is queued or drawn.
The message the model readsReplaced before it enters the session.
The transcript file on diskEvery stored row is rewritten before it is written. The two records that are not rows are overwritten in place a few seconds later.
Bash and PowerShell commands$NAME is a real environment variable, so the shell expands it and the command never carries the value.
Every other toolThe value is substituted into the arguments at the moment the tool runs.
Tool output coming backStored values become names again. A key a tool prints, from a cat .env say, is stored and named too.
The screenEvery drawn row is scrubbed on the terminal, the desktop app, VS Code and mobile.

Real values live in the mod's memory for the length of the session, and nowhere else. Nothing is written to a store, a file or the network.

Install in one line

One command, and every session from then on is covered.

  1. Step 1 of 2

    Install it from the marketplace

    Safe Keys is a Claude Code mod: a plugin whose code runs inside Claude Code, which is what lets it act before a key reaches the transcript. The repository is its own marketplace, so the install is one line.

    • In any Claude Code session, type the command. Answer y to add the marketplace, then choose Install for you. The mod is active in that session at once.

      In a session
      /plugin install safe-keys --marketplace markfulton/safe-keys
    • From a shell, with no session open, the same install is one command. It loads on the next session, or after /reload-plugins in one that is open.

      From a shell
      claude plugin install safe-keys --marketplace markfulton/safe-keys
    • In the Claude desktop app: click + next to the prompt box, then Plugins, Add marketplace with the repository name, then Add plugin and pick Safe Keys.

      Marketplace
      markfulton/safe-keys
    • Rather not add a marketplace? Clone it into ~/.claude/skills instead. Claude Code loads any plugin folder it finds there, on its next start.

      Clone
      git clone https://github.com/markfulton/safe-keys ~/.claude/skills/safe-keys
  2. Step 2 of 2

    Check it, then paste a test key

    One look confirms the mod loaded. Then try it with a made up key, never a real one.

    • Run /plugin. The dim line under the tabs reads 1 mod active · safe-keys.

      Check
      /plugin
    • Paste a synthetic key into the chat and watch the row change to a name such as $OPENROUTER_API_KEY. The repository's docs/LIVE-CHECKS.md has values you can use.

    • Run /keys any time to see what is stored this session, names only, and where the transcript and the log are.

      Status
      /keys

Read before you trust it

What it does not do.

  • A typed key is caught at Enter, not per keystroke.

    Pasting is covered in the box. Typing a key character by character is caught the moment you submit.

  • Single quotes get the value.

    No shell expands a variable inside single quotes, so there Safe Keys puts the value itself in. Double quotes are the clean path and what the model is told to use.

  • Detection is heuristic.

    Thirty-eight key shapes by name, labels like KEY= and Bearer, a credential word near a token, and a bare high-entropy token. A short custom secret with none of those is not caught. Use the inbox for it.

  • Mods are a new surface of Claude Code.

    The mods API can change between releases. claude plugin validate tells you before a session does, and the mod logs what a build could not do. This release was tested on 2.1.299.

  • Rotate anything you already pasted.

    The mod protects the next paste. A key that reached a transcript before the install was exposed from that moment, and the clean-up removes the record, not the exposure.

The 8 AI Employees

Built in the same place

8 AI Employees, open source, on the same agent.

Scheduled routines that cover a whole business role, free on every plan. Safe Keys is one of the small tools that came out of running them.

Questions

Not sure which job to hand an agent first? Run the free Agent Opportunity Scan.

Safe Keys for Claude Code: Paste an API Key, Nothing Keeps It | Agent Ops Club