HaiAI123

Curated Global AI Tools Directory

Industry update
Flat

claude-guard proxies Claude Code to mask sensitive terms locally

12/04/2026 — 12/04, 14:18·1 sources (all)·1 reports (all)

Key takeaways

  • A developer has released claude-guard, a local proxy that sits between Claude Code and an enterprise AI gateway. Before requests leave the m…
  • the word list stays in a local file. Users point ANTHROPIC_BASE_URL to local port 8787 without changing keys. It currently handles only Anth…

Background & analysis

On December 4, 2026, a developer shared claude-guard on V2EX, describing it as a local proxy that sits between Claude Code and a corporate AI gateway. According to the post, the gateway enforces a list of sensitive words that users only partly know and cannot change on the gateway side. Requests that trip the filter tend to return 500 errors, which breaks the conversation context; starting a new chat may not help either, because Claude Code scans an unpredictable set of folders and files on each request and can carry sensitive terms along with it. The developer also noted that when Claude Code is used with gateways such as new-api, writing the word list into the system prompt makes the model more likely to repeat those words, and once the gateway blocks the request the conversation ends.

claude-guard addresses this by intercepting traffic before it leaves the machine. Sensitive words in outgoing requests are replaced with placeholders such as ⟦SG1⟧, and the original terms are restored when the response comes back. The word list lives only in a local file, so neither the gateway nor the model sees the original words, and multi-turn history is masked again each time it is sent. Setup involves three files: the binary, a config file, and the word list. The UPSTREAM field in the config holds the original gateway address, and Claude Code's ANTHROPIC_BASE_URL is pointed at http://127.0.0.1:8787. API keys stay unchanged, since the proxy only forwards traffic. The post states that the tool currently handles only Anthropic's /v1/messages endpoint. As of this report, claude-guard remains a developer-shared utility with no further updates.

AI-generated from 1 reports · updated 1 day ago

Related AI tools

updream
24-hour heatHeat index 39 · peak 77 · 23h ago
24 hours agonow

Reports on this story headlines open the original

Yesterday
  1. A developer on V2EX released claude-guard, a local proxy that sits between Claude Code and a corporate AI gateway. Before a request leaves the machine it swaps sensitive terms for placeholders like ⟦SG1⟧ and restores them in the response, with the wordlist kept only in a local file. Setup means pointing ANTHROPIC_BASE_URL at http://127.0.0.1:8787; it currently only handles Anthropic's /v1/messages endpoint.

    V2EXAI score 53

Other stories people are talking about

How is heat calculated?About the method

Heat counts how many independent sources covered a story in the last 48 hours: one source counts once no matter how many posts it published, decaying with a 24-hour half-life. What ranks first is what many people are talking about.

This page aggregates public feeds. Headlines and summaries are machine-organized and remain the property of the original authors; verify important facts at the source. If you believe a headline or summary infringes your rights, email the contact address in the footer with the page URL and basis of your claim, and we will remove or replace it after review.

Surge
Discussion rising fast
New
First report within 6 hours
Rising
Still gathering discussion

Back to AI industry updates →