Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By AlexandreMartinezOlmosv1.1.0MITIn 2 marketplaces
Stops secrets from leaking before they are written, printed or committed to git.
Code that runs inside Claude Code on every session, as you, unsandboxed.
Claude Code asks for these when you enable the plugin. Sensitive values are stored in your system keychain.
Protection modemode
monitor only warns and logs; standard holds critical findings; strict also holds medium findings and blocks reads of sensitive files.
stringdefault standard
Status linestatusLine
Show a line under the prompt while LeakStop is on (or paused). When the line is missing, nothing is protecting the session.
1 critical to review before installing
JavaScript or TypeScript that runs inside Claude Code as you, unsandboxed. Read from its source, it sees, changes or blocks tool calls; runs programs; writes files; reads files; reads or rewrites your prompts.
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
2 marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
booleandefault false
Stops Claude Code from leaking secrets before it does.
When an AI agent works in your terminal it can, without meaning to, copy an API key from .env into your code, print your whole environment into the conversation, or git add . a private key. LeakStop is a Claude Code mod that watches what Claude is about to do and steps in before it happens: it asks you, or blocks the action, and tells Claude how to do it safely (for example, "read the key from an environment variable instead").
It runs entirely on your machine. No network, no AI model, no accounts. It never reads your environment variables, and it never shows or stores a full secret: only a short prefix and the last three characters.
Claude Code 2.1.287 or later. LeakStop is a Claude Code mod, a kind of plugin that is on by default from that version.
Authorization headers; and password = "…"-style assignments.cat or grep of sensitive files such as .env and private keys (also from git history, git show HEAD:.env, or through find -exec), printenv, and git add . when it would stage a sensitive file that git does not ignore.git commit or git push that would publish a secret is blocked.Most of the time, nothing: LeakStop stays quiet until something looks dangerous. A weaker signal shows a warning line above the prompt. A real secret opens a question with numbered options (anything other than "Allow once" means no). A risky commit or push is denied straight away.
Run /leakstop to see a record of what it found this session, never the secret itself. It also has pause, resume, allow, allowed, forget and reload subcommands.
Set the mode option with /plugin configure leakstop@leakstop:
standard (default) holds real secrets, blocks risky commits and pushes, masks real secrets in what tools return and in your messages, and warns on weaker signals.strict also holds and masks weaker signals and blocks reading sensitive files outright.monitor never holds, blocks or masks, it only warns and logs. It is the safest way to try LeakStop on a new repository.Turn on the statusLine option (off by default) to keep a line under the prompt that says LeakStop is on; when it is missing, nothing is protecting the session.
LeakStop is a hooks module. Each hook looks at what is about to happen, or at what a tool returned, and passes it on unchanged unless it finds a problem.
session.start registers the /leakstop command and reads .leakstop.json from the project folder, if there is one.prompt.submit clears the warning line when you send your own message, and masks a real secret pasted into it.command.run, for /leakstop only, answers the subcommands (pause, resume, allow, allowed, forget, reload).ui.render draws the warning line above the prompt and the findings panel.tool.call runs before Write, Edit, NotebookEdit, Bash, Read, the tools that send data out (WebFetch, WebSearch, Agent, SendMessage, SendFile, Artifact and similar) and every MCP tool. It scans the input for secrets and sensitive files and either lets the call go on, asks you, or denies it. For Bash, Read and every MCP tool it then scans what the tool returned and masks real secrets in it.It does not edit a tool's input, with one exception, described below. It does change three things on their way to Claude, and only to replace a secret by its masked form (a short prefix and the last three characters): what Bash, Read and MCP tools return, the text you send, and, for a large Bash output, the copy of it that Claude Code saves under its own folder in your home directory, which LeakStop reads and rewrites with the value masked. It only rewrites that copy when it is a regular file inside a tool-results folder; any other path is left alone.
npx claudepluginhub alexandremartinezolmos/claude-code-leakstop --plugin leakstopPlugins from other owners that cover similar ground
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.