0x1Adi

Klarion — AI skill for Claude Code

AI community

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

Klarion finds leaked secrets in code. An AI model checks each one, so you see the real ones.



[![CI](https://github.com/0x1Adi/Klarion/actions/workflows/ci.yml/badge.svg)](https://github.com/0x1Adi/Klarion/actions/workflows/ci.yml) [![Go Reference](https://pkg.go.dev/badge/github.com/0x1Adi/Klarion.svg)](https://pkg.go.dev/github.com/0x1Adi/Klarion) [![License MIT](https://img.shields.io/badge/license-MIT-green.svg)](./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:

  1. Find. Fast local checks flag anything that looks like a secret.
  2. 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.

![A coding agent is told to hardcode an AWS key pair. Klarion's pre-tool hook blocks the write at 95% confidence, and the agent reports that it cannot land the credentials through Bash or the file tools.](./assets/klarion-hook.gif)

$ 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