Klarion — AI skill for Claude Code
AI-powered secret scanner for code and git history.
How to install Klarion
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open 0x1Adi/Klarion and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What Klarion does
AI-powered secret scanner for code and git history. Finds leaked API keys, tokens and credentials with near-zero false positives by pairing Rényi entropy detection with LLM adjudication. Runs as a CLI, pre-commit hook, GitHub Action, MCP server or Claude Code hook. Single Go binary, MIT licensed.
Alternatives in AI
- Cl4r1t4s — LEAKED SYSTEM PROMPTS FOR CHATGPT, CLAUDE, GEMINI, GROK, PERPLEXITY, CURSOR, LOVABLE, REPLIT, AND MORE 47.2k ★
- Openclaw Backup — One-click backup & restore for OpenClaw instances — workspace, credentials, skills, agent history 660 ★
- DontFeedTheAI — Transparent anonymization proxy for AI-assisted pentesting 654 ★
README
[](https://github.com/0x1Adi/Klarion/actions/workflows/ci.yml) [](https://pkg.go.dev/github.com/0x1Adi/Klarion) [](./LICENSE)
[Install](#install) · [Use it](#use-it) · [Results](#results) · [How it works](#how-it-works) · [Reference](./docs/reference.md)
Klarion finds secrets in your code: API keys, passwords and tokens.
It works in two steps:
- Find. Fast local checks flag anything that looks like a secret.
- Check. An AI model reads each one with the code around it and decides if it is real.
Pattern scanners stop at step 1, so they also flag test values, IDs and hashes. Klarion shows you the real leaks.
It runs where the leak happens
A Claude Code hook that blocks the write before the file exists. The agent cannot route around it, not through the file tools and not through Bash.

$ klarion scan .
services/billing/client.py
[critical] stripe-secret-key 39:18 sk_l****4bQx
verdict: secret (confidence 0.96)
| stripe.api_key = "sk_l****4bQx"
Summary: 1 finding(s) across 1 file(s), 198 suppressed [1204 files scanned in 612ms]
Install
macOS:
brew install 0x1Adi/tap/klarion
Anywhere else, with Go 1.25 or newer:
go install github.com/0x1Adi/Klarion/cmd/klarion@latest
Or download a binary from the [releases page](https://github.com/0x1Adi/Klarion/releases).
Klarion needs an
Related Skills
Ranwhat
Flight recorder and secret scanner for AI coding agents. Reads what Claude Code, Codex, Gemini CLI and 9 more
Invoice Auditor
A Claude skill that extracts invoices and proves the extraction is correct. Model extracts, code audits the ar
AI Credential Safety
Guide to protecting API keys and credentials from AI agent exposure — .env safety, secret scanning, and Secret
Aigate
AI Prompt Secret Scanner: local proxy and Claude Code hook that blocks secrets before they reach AI APIs
AI Secret Scout
Zero-dependency heuristic secret scanner & redaction tool for AI coding assistant histories (Claude Code, Anti
Guard Layer
Runtime guardrails between an AI agent and its tools: scan what it reads, gate what it does, and track the ses
Related Agents
Appsec Secrets Scanner
Use proactively to hunt for hardcoded secrets, credentials, tokens, and high-entropy strings across the entire
Secret Scanner
PYA specialist spawned by the /pya orchestrator. Finds hardcoded and leaked credentials in an untrusted reposi
Secret Purist
The paranoid sentinel of credential security. Use this agent to scan codebases and git history for leaked secr