claudeers.

🔓 unclaimed — this page was auto-generated from GitHub. Are you the creator?

Claim this page →
// Developer Tools

Claude-Shield

A zero-dependency, event-driven automated protection suite and sentinel daemon for Claude Code CLI. Safely neutralizes hidden timezone telemetry and regional…

// Developer Tools[ cli ][ api ][ claude ]#claude#devtoolsMIT$open-sourceupdated 7 days ago
Actively maintained
98/100
last commit 6 days ago
last release none
releases 0
open issues 0
// install
git clone https://github.com/CACEB001/Claude-Shield

Claude Shield

While Anthropic's Claude Code is an exceptionally powerful terminal-based AI coding assistant, we discovered several hidden environment-fingerprinting and restriction checks in its latest installation packages. To protect developer privacy sovereignty and restore client connectivity over local proxy relays, we introduced Claude Shield — a zero-dependency, ultra-lightweight automated privacy protection utility and real-time sentinel daemon written in Rust.

虽然 Anthropic 的 Claude Code 是一款极其强大的终端 AI 编程助手,但我们在其最新的安装包中发现了多项针对开发者本地开发环境的隐密审计与限制检测机制。为了确保开发者的隐私主权并解决由于本地网络限制、代理中转站导致的应用阻断,我们推出了 Claude Shield —— 一个采用 Rust 编写的、无任何外部依赖的轻量级自动化隐私防护工具与实时后台守护进程。


Claude's Detection Flow / Claude的检测流程

The Claude client executes the following auditing pipeline during execution to profile local environments:

Claude 客户端在启动和运行期间会执行以下检测流水线,来对本地开发环境进行画像:

  1. Environment & Timezone Auditing / 环境变量与时区探测

    • Reads local system timezones to check if they match restricted zones (such as Asia/Shanghai or Asia/Urumqi).
    • 本地读取系统的时区设置,检测是否属于受限时区(例如中国标准时区 Asia/ShanghaiAsia/Urumqi)。
  2. Gateway Hostname Verification / 中转站域名审查

    • Evaluates configured custom API endpoints (ANTHROPIC_BASE_URL) against a decrypted internal blacklist to block domestic clouds, proxy relays, and custom forwarding gateways.
    • 当检测到配置了自定义的 API 端点(ANTHROPIC_BASE_URL)时,会解密其内部硬编码的 147 个域名黑名单列表进行比对,阻断连接到特定的国内云代理或中转网关。
  3. Prompt Steganography / 提示词隐写水印注入

    • Replaces standard ASCII apostrophes (\u0027) with alternative Unicode equivalents (\u2019, \u02BC, \u02B9) within generated prompts to embed a silent geographic watermark sent to the backend.
    • 在编译发往后端的 Prompt 文本时,将部分标准的 ASCII 撇号(\u0027)替换为特定变体的 Unicode 撇号(如 \u2019\u02BC\u02B9),向服务器发送隐密的本地区域水印。

Features / 功能特性

  • Zero External Dependencies / 零外部依赖

    • Compiled into a single, standalone machine binary in Rust. No external runtimes required.
    • 编译为单个独立的 Rust 原生二进制文件,无需 Node.js、Python 等外部运行环境。
  • Surgical Byte Patching / 微创字节修补

    • Patches timezone strings, telemetry configs, and domain blacklist decryptions in-place using same-length overrides to keep execution signature intact.
    • 原位替换时区字符串、限制特征段和域名解密密钥,采用无损等长替换,确保不破坏原程序的签名与执行完整性。
  • Auto-Scrubbed Execution Wrapper / 自动脱敏运行外壳

    • Shell aliases dynamically enforce clean locales (TZ=UTC LANG=en_US.UTF-8 LC_ALL=en_US.UTF-8) upon invocation, completely isolating the process from host environment profiles.
    • 自动挂载终端别名,在启动时为客户端强制套用隔离环境(TZ=UTC LANG=en_US.UTF-8),阻断本地系统语言特征泄露。
  • Terminal Proxy Auditing / 终端代理健康审计

    • Inspects active terminal sessions for proxy variables (HTTP_PROXY, HTTPS_PROXY, ALL_PROXY) to visually alert developers of potential real IP leaks.
    • 自动审计当前 Shell 终端的代理变量配置,防止因代理未生效导致真实公网 IP 直接泄露给服务端。
  • Lightweight Sentinel Daemon / 实时监控守护进程

    • Monitors client updates using native OS file events with zero CPU/IO overhead when idle, automatically reapplying hot-patches upon package updates.
    • 通过原生系统文件事件监控目标文件,无更新时 CPU/IO 损耗为零,自动应对 npm 包升级并即时重新修补。

How to Use / 如何使用

1. Compile & Build / 编译与构建

Make sure you have Rust toolchain installed, then clone and compile:

确保系统已配置 Rust 编译工具链,然后执行拉取与编译:

git clone https://github.com/CACEB001/Claude-Shield.git
cd Claude-Shield
cargo build --release

The compiled binary will be located at target/release/claude-shield.

编译出的二进制文件位于 target/release/claude-shield

2. Register Commands / 注册全局快捷别名

To run the tool from anywhere in your shell, register the global command alias:

在当前系统中挂载全局别名,以便在任何目录下直接调用:

./target/release/claude-shield install

# Reload your shell configuration / 重新加载终端配置
source ~/.zshrc  # or ~/.bashrc

Now you can invoke the utility from any terminal session via CLAUDE SHIELD or claude-shield.

挂载完成后,可在任意终端会话中通过 CLAUDE SHIELDclaude-shield 调用。

3. Commands Reference / 命令指南

Scan / 扫描系统安装

Searches for all global installations and checks the protection status of the Claude Code executables: 扫描系统中所有全局安装的版本并输出当前的防护安全仪表盘:

claude-shield scan

Patch / 执行安全修补

Applies same-length byte patches to all detected targets and creates a .backup copy: 对扫描出的可修补目标执行一键无损字节修补,并自动备份原始文件:

claude-shield patch

Restore / 还原原始备份

Restores the original binary state from backup files: 从备份中恢复所有被修改的目标文件:

claude-shield restore

Sentinel Daemon / 运行实时守护哨兵

Keeps the protection active in the background. It automatically intercepts and hot-patches Claude Code whenever it gets updated or reinstalled: 在后台静默运行守护进程,检测到 npm 升级客户端后会自动在毫秒级内自动重新修补:

# Start the daemon silently / 后台静默启动守护进程
claude-shield start

# Check sentinel daemon running status / 检查守护进程运行状态
claude-shield status

# View background runtime logs / 查看后台运行日志
claude-shield logs

# Stop the daemon / 停止后台守护进程
claude-shield stop

License / 开源协议

This project is licensed under the MIT License - see the LICENSE file for details.

// compatibility

Platformscli, api
Operating systems
AI compatibilityclaude
LicenseMIT
Pricingopen-source
LanguageRust

// faq

What is Claude-Shield?

A zero-dependency, event-driven automated protection suite and sentinel daemon for Claude Code CLI. Safely neutralizes hidden timezone telemetry and regional steganography checks on macOS, Windows, and Linux with a near-zero resource footprint.. It is open-source on GitHub.

Is Claude-Shield free to use?

Claude-Shield is open-source under the MIT license, so it is free to use.

What category does Claude-Shield belong to?

Claude-Shield is listed under devtools in the Claudeers registry of Claude-compatible tools.

2 views
27 stars
unclaimed
updated 7 days ago

// embed badge

Claude-Shield on Claudeers
[![Claudeers](https://claudeers.com/api/badge/claude-shield.svg)](https://claudeers.com/claude-shield)

// retro hit counter

Claude-Shield hit counter
[![Hits](https://claudeers.com/api/counter/claude-shield.svg)](https://claudeers.com/claude-shield)

// reviews

// guestbook

0/500

// related in Developer Tools

🔓

The agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Curs…

// devtoolsaffaan-m/JavaScript225,699MIT[ claude ]
🔓

Use Garry Tan's exact Claude Code setup: 23 opinionated tools that serve as CEO, Designer, Eng Manager, Release Manager, Doc Engineer, and QA

// devtoolsgarrytan/TypeScript119,234MIT[ claude ]
🔓

AI coding assistant skill (Claude Code, Codex, OpenCode, Cursor, Gemini CLI, and more). Turn any folder of code, SQL schemas, R scripts, shell scripts, docs,…

// devtoolssafishamsi/Python80,484MIT[ claude ]
🔓

🙌 OpenHands: AI-Driven Development

// devtoolsOpenHands/Python79,324NOASSERTION[ claude ]
→ see how Claude-Shield connects across the ecosystem