{"id":47698838,"url":"https://github.com/wangyihang/llm-redactor","last_synced_at":"2026-04-02T17:00:21.659Z","repository":{"id":343910276,"uuid":"1109034442","full_name":"WangYihang/llm-redactor","owner":"WangYihang","description":"A transparent egress gateway to redact sensitive credentials and local data for LLM coding agents.","archived":false,"fork":false,"pushed_at":"2026-03-12T17:28:33.000Z","size":614,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-03-12T23:39:21.024Z","etag":null,"topics":["agent","api-gateway","claude-code","codex","gateway","gemini","gemini-cli","llm","llm-gateway","observability"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/WangYihang.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-03T08:49:00.000Z","updated_at":"2026-03-12T17:28:09.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/WangYihang/llm-redactor","commit_stats":null,"previous_names":["wangyihang/llm-prism","wangyihang/llm-redactor"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/WangYihang/llm-redactor","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WangYihang%2Fllm-redactor","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WangYihang%2Fllm-redactor/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WangYihang%2Fllm-redactor/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WangYihang%2Fllm-redactor/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/WangYihang","download_url":"https://codeload.github.com/WangYihang/llm-redactor/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/WangYihang%2Fllm-redactor/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31311001,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-02T12:59:32.332Z","status":"ssl_error","status_checked_at":"2026-04-02T12:54:48.875Z","response_time":89,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["agent","api-gateway","claude-code","codex","gateway","gemini","gemini-cli","llm","llm-gateway","observability"],"created_at":"2026-04-02T17:00:16.018Z","updated_at":"2026-04-02T17:00:21.650Z","avatar_url":"https://github.com/WangYihang.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# LLM-Redactor\n\nA local transparent proxy to redact secrets (API keys, PII) before they leave your machine.\n\n| Feature | Direct Connection | With **LLM-Redactor** |\n| :--- | :--- | :--- |\n| Data Privacy | Secrets sent to Cloud | **Redacted locally** |\n| Provider Sees | `Prompt: \"Fix this: API_KEY=sk-123...\"` | `Prompt: \"Fix this: API_KEY=[REDACTED]\"` |\n| Streaming | Standard | **Real-time filtering** |\n\n## Core Features\n\n- Automatic Redaction: Detects 100+ secret types using Gitleaks-compatible rules.\n- Zero Configuration: No need to modify your existing workflows.\n- Zero-Latency Streaming: Intercepts and filters SSE streams in real-time.\n- Deep JSON Scanning: Recursively traverses nested structures (e.g., Anthropic content blocks).\n- Local Audit: Records detected leaks to `detections.jsonl`.\n\n\n## Use Case 1: Execute Command with Redaction (Recommended)\n\nThis 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.\n\n### Install\n```bash\ngo install github.com/wangyihang/llm-redactor/cmd/llm-redactor-exec@latest\n```\n\n### Usage\nPrepend `llm-redactor-exec --` to your existing command:\n```bash\nllm-redactor-exec -- claude\nllm-redactor-exec -- gemini\nllm-redactor-exec -- codex\n```\n\nUpon exiting the session, a comprehensive audit summary will be displayed.\n\n## Use Case 2: Standalone Redacting Proxy\n\nUse this if you want to run a persistent proxy server that multiple tools or background processes can use.\n\n### Install\n```bash\ngo install github.com/wangyihang/llm-redactor/cmd/llm-redactor-proxy@latest\n```\n\n### Usage\n1. Start the proxy server:\n   ```bash\n   llm-redactor-proxy --port 4000\n   ```\n\n2. Configure your environment or tools to use the proxy:\n   ```bash\n   export HTTP_PROXY=http://localhost:4000\n   export HTTPS_PROXY=http://localhost:4000\n   # Now run your tools normally\n   claude\n   ```\n\n## Audit \u0026 Logs\n\nAll detected leaks are logged to `detections.jsonl` with full metadata for post-session review.\n\n![Summary](./figures/summary.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangyihang%2Fllm-redactor","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwangyihang%2Fllm-redactor","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwangyihang%2Fllm-redactor/lists"}