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 0x1Adiv0.3.5MITIn 1 marketplace
Stops Claude Code from writing or committing leaked secrets: a hook scans each edit and shell command before it runs. A model you configure confirms real hits and receives each value unless redacted; with Ollama, it says nothing leaves your machine.
Trending plugins
7-day copy clicks
You run one by typing its /name in Claude Code.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
secret-scanning, leaked-secrets, pre-commit-hook, credential-leak, api-keys, commit-guard, entropy, secrets ·
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Stops Claude Code from writing or committing leaked secrets. It adds:
Write, Edit and MultiEdit, and every Bash
command, is scanned by klarion hook before it runs. For git add and
git commit it also scans what the command could commit: changed lines of
tracked files, and untracked files that .gitignore does not exclude. If a
real secret is found, the tool call is denied (or you are asked, per
config), and the reason goes back to Claude so it can fix the code. The hook
never approves a call, so your permission prompts still apply./klarion:scan to scan the project, or a path, on demand.Klarion also has an MCP server (klarion mcp). The plugin does not start it; add it
to your MCP settings yourself, see llms-install.md.
Install the klarion binary and put it on PATH. On macOS:
brew install 0x1Adi/tap/klarion
Or go install github.com/0x1Adi/Klarion/cmd/klarion@latest, or download a binary from the
releases page.
Configure a model. Either set an API key:
export ANTHROPIC_API_KEY=sk-ant-...
or opt in to your Claude Code login in .klarion.toml (Klarion never uses it
unless you set this):
[ai]
provider = "claude-cli"
With no model configured, the hook still blocks provider-issued keys (cloud, VCS, SaaS tokens), lets everything else through, and says it could not judge it.
With a model configured, each candidate is sent to that model's provider: the
value, its file path and a few nearby lines. Set send_secret = false under
[ai] to send the value redacted. With a local Ollama, or with no model,
nothing leaves your machine.
The hook never blocks your work because of its own problems. If klarion is not
installed, fails, or takes longer than 60 seconds, the change goes through. A
commit of many files with many candidates can take longer than that.
The commit scan covers the repository the session runs in. It does not follow
cd or git -C into another repository, and does not recognise git aliases.
A missing binary is reported, not hidden: each session starts with a notice that
changes are not being scanned, and each change shows "Klarion is not installed,
so this change was NOT scanned". Nobody sees these in a run with no one watching,
such as claude -p in CI, so check which klarion on those machines.
The block message shows each finding's fingerprint and the exact line to add to
.klarion.toml:
[allowlist]
fingerprints = ["37f6cd332ef64f4cb8df8d74d6fbf521"]
It tells Claude to ask you first. A prompt-injected agent can still edit
.klarion.toml itself, so review changes to that file.
This repository is its own marketplace:
/plugin marketplace add 0x1Adi/Klarion
/plugin install klarion@klarion
Then restart Claude Code. Hooks are loaded when a session starts, so a plugin installed
mid-session shows as enabled and its command works, but nothing is scanned until you restart.
/clear and /reload-plugins do not reload hooks. Confirm with /hooks: the Klarion
PreToolUse entries for Write|Edit|MultiEdit and Bash should be listed.
Behavior is controlled by .klarion.toml in your project (see the main
project README). The hook honors [hook] block_on and [hook] decision
(deny or ask), and fail_open = true guarantees an internal scanner error
never blocks your work.
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.
npx claudepluginhub 0x1adi/klarion --plugin klarionPlugins from other owners that cover similar ground