keysweepdetection only · no telemetry

classified / localv0.1.0

Sweep
the keys.

keysweep is a local Go CLI that hunts API keys in .env files, working trees, and full git history — then prints a rotate-in-1-hour checklist. It never prints a full secret.

Install · Go 1.22+
go install github.com/idealinktr/keysweep/cmd/keysweep@latest

What it does

from the runbooks · verified 2026-10-26

Scan
.env / .env.* / *.env
Working tree plus every commit on every branch when a .git directory exists.
Identify
Provider + kind
OpenAI, Anthropic, OpenRouter, AWS, GitHub, Stripe, Vercel, Railway, plus a high-entropy fallback flagged as unknown.
Report
file / line / commit
Whether the value is still in the current tree or HEAD, and whether it appears in pushed history (git rev-list --remotes).
Mask
first 4 / last 4
Detection only. Text, JSON, and errors show at most the first four and last four characters. Nothing is sent anywhere.
Checklist
rotate in 1 hour
Ordered live/prod → still present → pushed history. Official revoke URLs and first steps from runbooks/providers.yaml. Also --json.
Spend caps
opt-in only
The only network calls. Your own admin key via flag or env var, never stored. Official APIs for OpenAI, Anthropic, and OpenRouter.
Privacy
no backend
No telemetry, no accounts, no phone-home. The CLI runs entirely on your machine.

OpenAIAnthropicOpenRouterAWSGitHubStripeVercelRailwayunknown

Rotate in 1 hour

demo output · secrets already masked

keysweep — rotate in 1 hour
===========================
Scanned: ~/checkout-api (working tree + git history, 184 commits)
Findings: 4 unique secret(s)

[1] LIVE — stripe/secret_key (live)
    masked:  sk_l********************9v4c
    why:     live/prod key; still in current tree; appears in pushed history
    in_head: true    pushed_history: true
    at:      .env:12
    at:      internal/billing.go:88  commit 3f8a1c2e9b01
    revoke:  https://dashboard.stripe.com/apikeys
    next:    Open the API keys page. Full secret is shown only at creation.

[2] LIVE — openai/api_key (live)
    masked:  sk-p********************k2m9
    why:     live/prod key; still in current tree
    in_head: true    pushed_history: false
    at:      .env:8
    revoke:  https://platform.openai.com/api-keys

Team inventory

paid · waitlist

Org-wide leak watch, shared runbooks, and spend posture. The CLI stays local; this form is the only thing on the page that talks to a server.

We store your name and email so we can tell you when team inventory is ready. No analytics, no trackers, no ad pixels. Unsubscribe from any later mail. The open-source scanner does not phone home.