返回检测器

ClaudeFlag Skill

安装 Codex Skill,让代理调用同一套本地诊断并总结命中的风险信号。

安装

安装到 ~/.codex/skills/claudeflag 或 $CODEX_HOME/skills/claudeflag。

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

运行

安装后让 Codex 使用 $claudeflag 诊断当前机器即可。

Use $claudeflag to run the local diagnostic and summarize matched risk signals.

输出样式

终端报告会先展示大号分数,再把公开报告提到的 Claude Code 线索和本地启发式线索分开。宽终端自动双列,窄终端自动单列。

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.

检测内容

  • 当前机器的系统时区和 UTC 偏移。
  • LANG、LC_ALL、LANGUAGE 以及 locale 输出。
  • 可用时通过 fc-list 检查中文字体家族。
  • 只检查 ANTHROPIC_BASE_URL 的 host 线索,不读取 API key。
  • 检查代理环境变量和 git proxy 设置,只展示脱敏后的 hostname。
  • 从 /etc/resolv.conf 识别中国公共 DNS resolver 线索。
  • 检查 npm、pnpm、yarn、pip registry hostname 是否像中国镜像源。

隐私模型

CLI 和 Skill 使用同一个本地 shell 诊断,只把结果打印到终端,不会上传。

  • 只在你执行命令的本机或服务器运行。
  • 不读取 Claude 账号数据、API key、shell history 或 Claude 配置文件。
  • 脚本下载完成后不会再发出网络请求。