Back to detector

ClaudeFlag CLI

Run the ClaudeFlag diagnostic directly in a terminal or on a Linux server without a browser.

Install

Install a claudeflag command into ~/.local/bin.

curl -fsSL https://claudeflag.com/install-cli.sh | sh

Run

Run the installed command any time to re-check the current machine.

claudeflag

Output shape

The terminal report puts the score first, then separates reported Claude Code clues from local heuristics. Wide terminals use two columns; narrow terminals fall back to one column.

ClaudeFlag local diagnostic

  █████   █████
 ██   ██ ██   ██
  █████   █████
 ██   ██ ██   ██
  █████   █████
  High risk  88 / 100
  Result: You are definitely a "Claude China user".
  Scope: timezone and endpoint host are reported Claude Code clues; other rows are local heuristics.

What it checks

  • System timezone and UTC offset on the machine running the command.
  • LANG, LC_ALL, LANGUAGE and locale output.
  • Chinese font families through fc-list when available.
  • ANTHROPIC_BASE_URL host clues without reading API keys.
  • Proxy environment variables and git proxy settings, reduced to hostnames only.
  • China public DNS resolver clues from /etc/resolv.conf.
  • npm, pnpm, yarn and pip registry hostnames for China mirror clues.

Privacy model

The CLI and Skill use the same local shell diagnostic. They print results to stdout and do not upload anything.

  • Runs on the local machine or server only.
  • Does not read Claude account data, API keys, shell history or Claude config files.
  • No network request is made after the script has been downloaded.