LLM Redactor — Data skill for Claude Code
A transparent egress gateway to redact sensitive credentials and local data for LLM coding agents.
How to install LLM Redactor
This entry records only its repository, not the path inside it, so there is no
exact command to give. Open WangYihang/LLM-Redactor and copy the folder into
~/.claude/skills/, or the file into ~/.claude/agents/.
What LLM Redactor does
A transparent egress gateway to redact sensitive credentials and local data for LLM coding agents.
Alternatives in Data
- LLM Redteam — LLM red-team corpus runner — fires categorized prompt-injection / jailbreak / system-prompt-leak / data-exfil 4.5k ★
- Opencode Mem — OpenCode plugin that gives coding agents persistent memory using local vector database 1.5k ★
- Agentsview — Local-first session intelligence and analytics for coding agents, supporting Claude Code, Codex, and 14 other 824 ★
README
LLM-Redactor
A local transparent proxy to redact secrets (API keys, PII) before they leave your machine.
| Feature | Direct Connection | With LLM-Redactor |
|---|---|---|
| Data Privacy | Secrets sent to Cloud | Redacted locally |
| Provider Sees | Prompt: "Fix this: API_KEY=sk-123..." |
Prompt: "Fix this: API_KEY=[REDACTED]" |
| Streaming | Standard | Real-time filtering |
Core Features
- Automatic Redaction: Detects 100+ secret types using Gitleaks-compatible rules.
- Zero Configuration: No need to modify your existing workflows.
- Zero-Latency Streaming: Intercepts and filters SSE streams in real-time.
- Deep JSON Scanning: Recursively traverses nested structures (e.g., Anthropic content blocks).
- Local Audit: Records detected leaks to
detections.jsonl.
Use Case 1: Execute Command with Redaction (Recommended)
This is the easiest way to use LLM-Redactor. Just prepend the command to your existing CLI tool. It will automatically set up the proxy and configure environment variables for the session.
Install
go install github.com/wangyihang/llm-redactor/cmd/llm-redactor-exec@latest
Usage
Prepend `llm-redactor-exec --` to your existing command:
llm-redactor-exec -- claude
llm-redactor-exec -- gemini
llm-redactor-exec -- codex
Upon exiting the session, a comprehensive audit summary will be displayed.
Use Case 2: Standalone Redacting Proxy
Use this if you want to run a persistent proxy server that multiple tools or background processes can use.
Install
go install github.com/wangyihang/llm-redactor/cmd/llm-redactor-proxy@latest
Usage
Start the proxy server:
llm-redactor-proxy --port 4000Configure your environment or tools to use the proxy:
export HTTP_PROXY=http://localhost:4000 export HTTPS_PROXY=http://localhost:4000 # Now run your tools normally claude
Audit & Logs
All detected leaks are logged to `detec
Related Skills
LLM Dlp
Local proxy that masks sensitive data between you and the LLM (Claude Code): the API only sees pseudonyms
Graphloom
Turn your repo into a queryable knowledge graph for coding agents: offline code/SQL/docs graph, path + explain
Looselips Guard
Stops your coding agent publishing your data to the world — a PreToolUse egress guard for Claude Code and othe
Claude Guard Hook
A global Claude Code hook that intercepts sensitive data before it reaches the LLM — secrets, API keys, PII, a
Code Insights
8 Local-first CLI and dashboard for analyzing AI coding sessions from Claude Code, Cursor, Codex CLI, Copilot
Mysh
A safer MySQL CLI for AI coding agents: connection profiles, SSH tunnels, and automatic sensitive-data masking
Related Agents
Data Sovereignty Guard
Mandatory pre-commit egress guard — secrets, credentials, PII, plant/customer identifiers, raw data dumps, and
Local Worker
Coding worker on a local model (Ollama, LM Studio, vLLM) served by the multi-model gateway's upstream. Use whe
Data Exfiltrator
Delegates to this agent when the user wants to test exfiltration and DLP/egress controls during an authorized