You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Terminal CLI for the ZPL Engine — the
independent verification layer for AI output. Score files, clipboard
pastes, or piped stdin for bias / sycophancy / consistency.
CLI vs MCP: The MCP package
exposes scores TO the AI, which can modify its output to look better
(observer effect). The CLI runs as a separate process AFTER the AI has
produced its output — the AI never sees the score, so the result is
independent verification rather than self-report.
Install
npm install -g zpl-engine-cli
# or run a single command without installing
npx zpl-engine-cli login
Node 18+ required. Verified on macOS, Linux (incl. Alpine/musl), Windows.
Quickstart
# 1. Log in — opens a browser, approve the device code
zpl login
# 2. Score a file
zpl check essay.txt
# 3. Use as a CI gate — exit 1 if AI output is too biased
claude "summarise the report"| zpl pipe --threshold 70
# 4. Tab-completion in your shell
zpl completion bash >>~/.bashrc # then: source ~/.bashrc
Commands (17 total)
Authentication & maintenance
Command
What it does
zpl login [--force]
Memory-aware device flow. Skips if you're already logged in (--force to override).
zpl logout
Remove the local credentials.
zpl whoami [--output text|json]
Show email + plan + quota + source (config-file vs env var).
zpl diagnose
Health check: config / key format / engine reachable / engine auth. Exit 1 if any FAIL.
zpl repair [--yes]
Wipe config + auto-relogin, with automatic backup to ~/.zpl/config.toml.bak (mode 0600) and restore instructions if the relogin fails.
Scoring
Command
What it does
zpl check <file>
Score a single file for bias / neutrality.
zpl pipe [--threshold N] [--output text|json]
Unix-style: read stdin, score, emit text or JSON. With --threshold N exits 1 when AIN < N. The CLI's flagship CI-gate command.
zpl watch
Poll the clipboard every 2 s and score every new paste.
zpl consistency "<q>" [--n 5]
Probe engine determinism over N identical calls. Reports drift if a load balancer routes between versions.
zpl compare <a> <b>
Score two files head-to-head with a delta.
zpl diff <before> <after>
Semantic delta: improved / worsened / unchanged.
Data & exports
Command
What it does
zpl history
Last 20 scored runs (input is SHA-256 hashed for privacy).
Terminal CLI for the ZPL stability engine. AI bias scoring, consistency checks, and neutrality analysis from shell, cron, and CI/CD. Reads stdin, writes JSON. Composes with jq, awk, curl.