Features

Everything included.
Nothing to configure.

Install it, lock your keys, and run your app. The details below explain what each protection layer actually does.

✂️ Split-key cryptography

Security

Keys are split using XOR-based secret sharing (a one-time pad variant). This is information-theoretically secure — a stolen share reveals nothing about the original key, even with unlimited compute.

AlgorithmXOR / one-time pad secret sharing (2-of-2)
Security modelInformation-theoretic — cannot be broken by brute force
Share ALocal filesystem, encrypted at rest
Share BProxy process memory only — never written to disk
Key in memoryReconstructed ephemerally, zeroed immediately after use
Cloud dependencyNone — everything runs locally

💸 Budget enforcement

Cost control

Set a spending cap per key. When the counter reaches your limit, the proxy refuses to reconstruct the key — even if both shares are available. Hard stop at the infrastructure layer.

Enforcement layerProxy — happens before key reconstruction
Bypass possible?No — the app cannot override the proxy
ScopePer-key spending counter
ResetManual (worthless reset-budget)

🔍 Pre-commit scanning

Prevention

Built-in pre-commit hook scans staged files for raw API keys before any commit lands in git history. First line of defense; the split-key proxy is the second.

Integrationpre-commit framework (.pre-commit-config.yaml)
DetectsOpenAI, Anthropic, AWS, Stripe, and common patterns
ActionCommit is blocked — not just warned
CI supportWorks in GitHub Actions via pre-commit.ci

🧩 Zero code changes

Drop-in

Prefix any command with worthless wrap. Your application reads environment variables exactly as before. No SDK changes, no import changes.

Beforepython app.py
Afterworthless wrap python app.py
Works withPython, Node.js, Ruby, Docker, any shell command

🔄 Fully reversible

Portability

worthless unlock restores your original .env exactly as before. Proxy stops. Shares deleted. No dependency on Worthless remaining installed.

Commandworthless unlock
ResultOriginal .env restored, proxy stopped, shares deleted
Lock-inNone

🏠 Self-hosted & open source

Privacy

No cloud. No account. No keys touching anyone else's server. AGPL-3.0 licensed. Zero telemetry.

LicenseAGPL-3.0
Cloud servicesNone required
TelemetryZero
Comparison

How Worthless compares

Against common alternatives in the secrets/security space.

CapabilityworthlessVault / Secrets Mgrdetect-secrets.gitignore
Prevents commits with raw keysPartial
Post-leak protection
Leaked key is cryptographically useless
Budget / hard spending cap
Zero code changes
Fully self-hostedOptional
Open source

Ready to make your keys worthless?

Install in one command. Protect your first key in under a minute.