跳到内容

Terminal 中的设备端检查

适用于 Claude、Codex 和 Cursor 的 AI 内容检测 CLI

slop CLI 可在 Mac 终端中运行 Slop or Not 的 AI 文本检测器、AI 图片检测器、原始 OmniAID 图片评分、可读性分析器和清理工具。它会为 Claude、Codex、Hermes Agent、OpenClaw、Cursor、脚本和编辑器返回 JSON。

正在从 ZeroGPT 或 GPTZero 这类云端检测工具迁移?把草稿、截图或本地文件通过管道传入。Slop or Not 会在本地评分,绝不会上传。

Download on the App Store
Mac 上的 Slop or Not 命令行设置界面
该二进制文件已打包在签名的 Slop or Not Mac app 内。
本地运行
文本、图片、可读性和清理检查都留在你的 Mac 上。
输出 JSON
当脚本或 agent 需要稳定结果时,使用 --json。
不限次数的本地检测
Pro 会移除每日上限,让脚本和智能体可以在本地反复进行文本、图片、可读性和清理检测。

设置

如何安装 Slop or Not CLI?

先打开一次 Slop or Not for Mac,激活 Pro,然后前往 Settings > Command Line,让应用安装 CLI。之后,在 Terminal 中使用 app-bundle 二进制路径进行验证。

# In Slop or Not: Settings > Command Line > Install
"/Applications/Slop Or Not.app/Contents/MacOS/slop" status --json

命令参考

Slop or Not CLI 能做什么?

命令范围刻意保持精简:status、text、image、score-image、readability、cleanup 和 MCP。

slop status

检查安装

确认 CLI 能找到 app bundle,并报告 Pro 是否已启用。

查看命令和响应

运行

"/Applications/Slop Or Not.app/Contents/MacOS/slop" status --json

返回

{
  "localCachePro" : true,
  "pro" : true,
  "version" : "1.0.9"
}
slop text

为 AI 文本评分

从 stdin 读取 UTF-8 文本,并返回 Mac app 使用的同一设备端 AI 概率以及可读性指标。

查看命令和响应

运行

pbpaste | "/Applications/Slop Or Not.app/Contents/MacOS/slop" text --json

返回

{
  "detectedLanguage" : "en",
  "detection" : {
    "result" : {
      "_0" : 0,
      "_1" : { "real" : {} }
    }
  },
  "readability" : {
    "detectedLanguage" : "en",
    "languageConfidence" : 0.9996,
    "scores" : [
      { "kind" : "fleschReadingEase", "direction" : "higherIsEasier", "label" : "<label>", "value" : 75.17 },
      { "kind" : "fleschKincaidGradeLevel", "direction" : "gradeLevel", "value" : 5.51 }
    ],
    "selectedLanguage" : "en",
    "stats" : { "wordCount" : 66, "sentenceCount" : 6, "syllableCount" : 94 },
    "warnings" : []
  },
  "sentenceCount" : 6
}
slop readability

分析可读性

返回英文的 Flesch 分数,以及其他六种受支持语言对应的特定公式结果。

查看命令和响应

运行

cat draft.md | "/Applications/Slop Or Not.app/Contents/MacOS/slop" readability --json

返回

{
  "readability" : {
    "detectedLanguage" : "en",
    "languageConfidence" : 0.9996,
    "scores" : [
      { "kind" : "fleschReadingEase", "direction" : "higherIsEasier", "label" : "<label>", "value" : 88.54 },
      { "kind" : "fleschKincaidGradeLevel", "direction" : "gradeLevel", "value" : 2.65 }
    ],
    "selectedLanguage" : "en",
    "stats" : { "wordCount" : 35, "sentenceCount" : 5, "syllableCount" : 46 },
    "warnings" : []
  }
}
slop cleanup

清理隐藏文本技巧

在下一次检查前,移除零宽空格、同形异义字符、花体标点和其他格式痕迹。

查看命令和响应

运行

pbpaste | "/Applications/Slop Or Not.app/Contents/MacOS/slop" cleanup --json

返回

{
  "cleanedText" : "<cleaned_text>",
  "detectedLanguage" : "en",
  "invisibleCounts" : [
    { "count" : 1, "kind" : "<invisible_character>" }
  ],
  "punctuationCounts" : [
    { "count" : 1, "kind" : "<punctuation_replacement>" }
  ],
  "homoglyphCounts" : [],
  "britishMappings" : []
}
slop image

检测 AI 图片

在本地检查通过管道传入的 JPEG、PNG、HEIC 或 WebP 图片字节,并可为截图启用 OCR。

查看命令和响应

运行

"/Applications/Slop Or Not.app/Contents/MacOS/slop" image --json < ~/Desktop/screenshot.png

返回

{
  "detection" : {
    "result" : {
      "_0" : 0.80,
      "_1" : { "most_likely_ai_slop" : {} }
    }
  }
}
slop score-image

使用 OmniAID 为图片评分

当你需要直接的模型反馈,而不是完整的图片检测响应时,可为通过管道传入的图片返回原始 OmniAID 模型评分。

查看命令和响应

运行

"/Applications/Slop Or Not.app/Contents/MacOS/slop" score-image --json < ~/Desktop/generated.png

返回

{
  "rawSlopScore" : 0.690673828125
}
slop mcp

启动 MCP 服务器

通过 stdio 向 Claude、Codex、Hermes Agent、OpenClaw、Cursor 和其他 MCP 客户端提供 Slop or Not 工具。

查看命令和响应

运行

"/Applications/Slop Or Not.app/Contents/MacOS/slop" mcp --print-config

返回

{
  "clients": [
    "Claude Desktop",
    "Claude Code",
    "Codex CLI",
    "Hermes Agent",
    "OpenClaw",
    "Cursor"
  ],
  "tools": [
    "detect_text",
    "analyze_readability",
    "clean_text",
    "detect_image",
    "score_image",
    "slop_status"
  ]
}

快捷路径

常见 terminal 工作流

这些是大多数人最先会用的命令。每个命令都会读取本地输入,并打印本地结果。

如何从 Terminal 为 AI 文本评分?

复制一段草稿,通过管道传入 slop text,然后读取 JSON 判定。当其他工具需要稳定输出时,添加 --json。

pbpaste | "/Applications/Slop Or Not.app/Contents/MacOS/slop" text --json

如何检查可读性?

可读性检查独立于 AI 检测。当你需要阅读难度检查,又不想把文本发送到网页工具时,可以使用它。

cat draft.md | "/Applications/Slop Or Not.app/Contents/MacOS/slop" readability --json

如何清理隐藏的 AI 指纹?

Text Cleanup 会去除不可见字符、同形异义字符和间距技巧。它不会重写文本。

pbpaste | "/Applications/Slop Or Not.app/Contents/MacOS/slop" cleanup --json

如何获取原始 OmniAID 图片评分?

当图片生成工作流需要原始模型信号,而不是包含来源判断的图片检测结果时,请使用 score-image。

"/Applications/Slop Or Not.app/Contents/MacOS/slop" score-image --json < ~/Desktop/generated.png

如何检查图片文件?

使用 app-bundle CLI 命令,在本地检查截图、产品图、交友资料照片以及其他文件。

"/Applications/Slop Or Not.app/Contents/MacOS/slop" image --json < ~/Desktop/screenshot.png

本地 AI 检测 API

可以把 CLI 用作本地 AI 检测 API 吗?

用于本地自动化时,可以。CLI 会读取 stdin 或本地文件并返回 JSON,因此脚本和编辑器可以把它当作本地 AI 检测 API 使用,无需将文本或图片上传到云端端点。它不是托管的 HTTP API;Mac app 会在调用命令的那台机器上运行检测。

pbpaste | "/Applications/Slop Or Not.app/Contents/MacOS/slop" text --json
"/Applications/Slop Or Not.app/Contents/MacOS/slop" image --json < ~/Desktop/source-photo.png
"/Applications/Slop Or Not.app/Contents/MacOS/slop" score-image --json < ~/Desktop/generated.png

通过 CLI 使用 MCP

如何从 CLI 启动 MCP?

MCP 服务器是一个 CLI 子命令。当你的 MCP 客户端要求填写命令,或你正在调试设置时,可以直接运行它。

"/Applications/Slop Or Not.app/Contents/MacOS/slop" mcp