← Docs

CLI

c2pa-check: the same verifier, offline, with exit codes a build can use.

Everything on one page (install, every flag, carry and --compose, signers, doctor, exit codes, CI recipes, troubleshooting): c2pa-check CLI.

Open source, MIT or Apache-2.0, at github.com/c2pa-design/c2pa-check. The crate behind it is the same one our engine runs, so a local answer and a hosted answer match.

brew install c2pa-design/tap/c2pa-check
npx -y c2pa-check@latest photo.jpg
cargo install c2pa-check

Every command here needs 0.6.2 or newer; @latest runs the current release. In CI pin one version (npm view c2pa-check version).

Verify

$ c2pa-check image.jpg
image.jpg
  Content Credentials   PRESENT
  Manifest              VALID
  Trust                 TRUSTED (2026-08-13-a1b2c3d4e5f6)
  Signer                OpenAI Inc. · DigiCert
  Digital source        trainedAlgorithmicMedia (AI generated)
  Actions               c2pa.created
c2pa-check 'dist/**/*.{jpg,png,webp}' --coverage 100
c2pa-check https://cdn.example.com/hero.jpg --expect trusted
c2pa-check photo.jpg --format json | jq .result.credential.status
c2pa-check inspect photo.jpg
c2pa-check trust status

Flags

Flag Meaning
--trust official|interim|both|none Which list to judge signers against
--trust-anchors <path> Your own PEM bundle instead
--format text|json|ndjson|junit json is result schema v1
--expect present|trusted|absent Exit 1 when a target does not meet it
--coverage <pct> Exit 1 when fewer than this share are trusted
--raw Include the manifest store in JSON output
--offline Never touch the network; use the bundled snapshot

Exit codes

Code Meaning
0 Everything met the expectation
1 An expectation or the coverage threshold failed — a finding, not a crash
2 Usage error
3 An asset could not be parsed
4 A target could not be loaded (network, refused address, unreadable file)
5 carry refused: the rule is in --json

The distinction between 1 and 3 matters in CI: 1 means your assets are wrong, 3 means the check could not be made.

URLs in CI

c2pa-check https://… applies the same address guards as the server — public addresses only, five redirects, 64 MB — so running it against production URLs from a build agent is safe.

MCP

c2pa-check mcp serves the offline verifier over the Model Context Protocol on stdio, with verify_file, verify_url and trust_status. Point Claude Desktop, Cursor or VS Code at it and an agent can check a file without an account.