mhbahmani

Claude Geo Guard — Development skill for Claude Code

Development community

Best-effort country and IP checks for Claude Code and Claude Desktop on macOS and Linux, with guarded launchers, CLI hooks, and runtime monitoring.

How to install Claude Geo Guard

This entry records only its repository, not the path inside it, so there is no exact command to give. Open mhbahmani/Claude-Geo-Guard and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Claude Geo Guard does

Best-effort country and IP checks for Claude Code and Claude Desktop on macOS and Linux, with guarded launchers, CLI hooks, and runtime monitoring.

Alternatives in Development

  • Claude Desktop Debian — Unofficial Claude desktop app for Debian/Linux 2.5k ★
  • Claude App Mirror — 原样镜像官方 Claude 桌面版安装包(macOS DMG / Windows 离线 MSIX / Linux deb):每 15 分钟探测、SHA256 可校验、国内高速下载 Verbatim, SHA256-ver 281 ★
  • Claude Desktop Fedora — Claude Desktop for Fedora 44 — native RPM built from Anthropic's official Linux x86_64 build 174 ★

README

Claude Geo Guard

Check the public country and IP before opening Claude Code or Claude Desktop on macOS and Linux. If verification fails, the guard blocks the launch. A background monitor periodically checks running Desktop processes.

![Claude Geo Guard blocks a Desktop launch because the detected country is France and the allowed country is Germany.](docs/guard-country-mismatch.png)

Install

With curl, Python 3.10+ and Claude Code 2.1.295+ installed, run this in a terminal as your regular user:

curl -fsSL https://raw.githubusercontent.com/mhbahmani/Claude-Geo-Guard/master/install.sh | sh

Run without flags for guided setup. Press Enter to accept each value in brackets, including your saved settings on reinstall. Review the plan, then press Enter to install or type `no` to cancel. Use `--yes` for unattended installation or `--dry-run` for a preview. It installs the **latest release** and defaults to **GB**. To pass options, replace the final `sh` with `sh -s -- --country DE` (choose your country), `sh -s -- --skip-desktop` (CLI only), or `sh -s -- --dev` (master).

After installation

  • macOS: Open ~/Applications/Claude Guard.app and pin it to the Dock. Opening the original Claude.app bypasses the pre-launch check.
  • Ubuntu or Debian: Open Claude from its guarded applications-menu entry.
  • CLI: Open a new terminal and run claude-geo-guard check to verify your connection. Then use claude as usual.

Setup asks whether to enable the guard immediately. Press Enter for yes on first install, or choose no to enable it later with `claude-geo-guard enable`. Use `claude-geo-guard disable` to turn protection off again. While disabled, the CLI wrapper and Desktop launcher warn before opening Claude, hooks allow actions, and the runtime monitor stays idle.

With protection enabled, the Desktop launcher shows a progress window while checking your public IP and country. The CLI shows animated dots in the terminal, or a single status line when