LeifDiao GitHub avatar

grok-privacy-guard

LeifDiao

A privacy guard for Grok CLI that prevents unintentional codebase uploads, verifies binary integrity, and provides startup and historical upload detection.

Stars

12

7-day growth

No data

Forks

0

Open issues

0

License

MIT

Last updated

2026-07-21

AI repository intelligence
FR-AI / ANALYSIS

Why it is worth attention

It offers a lightweight, user-visible protection layer against codebase leakage via Grok, with automatic startup checks, binary fingerprinting, and easy installation, while explicitly not sending data externally.

Who it is for

  • Developers using Grok CLI on macOS (zsh/bash)
  • Teams concerned about accidental source code exposure
  • Privacy-conscious users of AI coding assistants

Use cases

  • Prevent entire repository (including git history) from being uploaded by Grok in the background
  • Detect if a codebase was ever uploaded in previous sessions
  • Verify protection is still active after Grok updates
  • Bypass guard temporarily for intentional operations

Strengths

  • Blocks full-repo and trace uploads by modifying Grok config and locking auto-updates
  • Binary fingerprinting prevents bypass via replaced executable and alerts on mismatch
  • Startup status line (green/yellow/red) gives immediate, visible feedback
  • Idempotent install with automatic backup, safe for agents

Considerations

  • Does not intercept network traffic; relies on Grok obeying its own settings and fingerprint checks as fallback
  • Files intentionally read by the user will still be sent to the model (normal AI behavior, not covered)
  • Only supports macOS with zsh/bash; no network-level firewall or container isolation built-in

README quick start

安装

Description

给 Grok CLI 加一层代码库隐私防护:防止代码库在你不知情时被上传,并在每次启动时检测提醒 · A codebase-privacy guard for Grok CLI — prevent silent upload, detect on every launch

Related repositories

Similar projects matched by category, topics, and programming language.

makecindy
Featured
makecindy GitHub avatar

cindy

Cindy is an open-source AI agent that runs locally on your machine, integrates multiple AI harnesses and models, and provides memory, skills, and automation to perform real work in your projects and apps.

AI & Machine LearningLarge Language Models
958
0xwilliamortiz
Featured
0xwilliamortiz GitHub avatar

openclaude-improved

OpenClaude is an open-source CLI coding agent that runs on any platform and supports a wide range of LLM providers, offering the same tools and workflows as Claude Code.

AI & Machine LearningLarge Language Models
577
programmersd21
Featured
programmersd21 GitHub avatar

flow

flow is a minimalist terminal dashboard that displays real-time network throughput with smooth animations, multiple responsive modes, and zero configuration.

Developer ToolsCLI & Terminal
277