Build with AI. Keep your secrets out of the conversation.
redacted removes matching secrets from supported tool output before your AI coding assistant reads it. On supported hooks, it also blocks prompts and tool calls that contain secrets.
Website · Documentation · Releases
Even ordinary work can expose a secret.
A log. A stack trace. A git diff. Credentials can slip into everyday output, even when the command itself looks safe.
redacted filters tool output and blocks tool calls that contain a matching secret.
DATABASE_URL=postgres://admin:secret@db.example.com:5432/prod AWS_ACCESS_KEY_ID=AKIAEXAMPLEKEYID0001 APP_NAME=myapp After — what the model reads
DATABASE_URL=[REDACTED:database_url ...prod] AWS_ACCESS_KEY_ID=[REDACTED:aws_access_key ...0001] APP_NAME=myapp Ready when you are.
Install once. Choose what to protect.
curl -sSL https://raw.githubusercontent.com/svn-arv/redacted/main/install.sh | sh redacted init Select the terminal agents you want to protect. To set up just one directly, pass its format, such as redacted init --format codex. Hook coverage and setup
Prefer Cargo? Run cargo install redacted-cli, then the appropriate init command. Homebrew and pre-built binaries are also available.
Privacy, without the detours.
No account. No cloud. Detection runs on your machine.
Known credential formats are detected automatically.
Choose secrets from your .env to protect even when their format is unknown. Learned values are stored as hashes and lengths, not plaintext; storing prefixes for rotated-key detection is opt-in.
Optional entropy and personal-data detection let you choose additional coverage.
What it detects · Known limitations
One engine, multiple implementations.
This repository maintains the original CLI, integrations and packaging. The shared detection engine is developed in redacted-core, which also supports WebAssembly implementations. The CLI embeds a pinned source snapshot, so its releases do not depend on the engine being published separately. Send new detection rules and engine fixes upstream.
For the CLI, see the reference, architecture, benchmark, and contributing guide.
Secret-redacting proxy for AI coding assistants




