Sign inStart Free Trial
Developer docs

Verify numbers in one line.

Anaphero is a deterministic numeral verifier. It ships as a Python core, a REST API, an OpenAI-compatible bridge, a hosted MCP endpoint and a CLI.

Quickstart

bash
pip install anaphero-core

anaphero check report.md evidence.json --strict --json
# exit 0 = APPROVED, exit 1 = REJECTED

No evidence file? Use anaphero check report.md. The document is audited against its own tables and embedded JSON.

OpenAI-compatible bridge

Point any OpenAI SDK at https://api.anaphero.dev/v1. Send your Anaphero key in X-Anaphero-Key and your upstream BYOK key in X-Upstream-Api-Key or Authorization.

python
from openai import OpenAI

client = OpenAI(
    base_url="https://api.anaphero.dev/v1",
    api_key="sk-your-upstream-key",
    default_headers={"X-Anaphero-Key": "anp_live_..."},
)

resp = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[{"role": "user", "content": "Summarise Q3."}],
)

print(resp.anaphero_verification["verdict"])
RESPONSE HEADERS
X-Anaphero-Verdict: APPROVED
X-Anaphero-Ungrounded-Count: 0
X-Anaphero-Receipt-Id: rcp_...
X-Anaphero-Latency-Ms: 8.412

Modes: X-Anaphero-Mode: audit annotates. strict blocks rejected responses with HTTP 422. warn appends a warning block.

REST API

bash
curl -s https://api.anaphero.dev/v1/verify \
  -H "X-Anaphero-Key: anp_live_..." \
  -H "Content-Type: application/json" \
  -d '{"document":"Revenue was 1,420.","evidence":{"revenue":1250}}'
EndpointPurpose
POST /v1/verifyDocument + evidence to signed receipt
POST /v1/verify/public-demoRate-limited playground, no login
GET /v1/receipts/{id}Public receipt registry
GET /v1/badge/{id}.svgEmbeddable verdict badge
POST /mcpHosted MCP (Streamable HTTP)
POST /v1/billing/paddle-webhookPaddle subscription events
GET /v1/admin/telemetryCEO cockpit telemetry

Receipt format

Every receipt is a strict Pydantic v2 model. The digest excludes latency and timestamps, so the same audit always produces the same receipt_sha256.

json
{
  "verdict": "REJECTED",
  "checked_count": 9,
  "grounded_count": 8,
  "ungrounded_tokens": [
    { "raw": "1,420", "value": 1420, "start": 16, "end": 21, "line": 3 }
  ],
  "contradictions": [],
  "latency_ms": 8.41,
  "input_sha256": "...",
  "evidence_sha256": "...",
  "receipt_sha256": "...",
  "hmac_signature": "..."
}

Verify a receipt independently with anaphero_verify.verify_receipt(receipt). The HMAC uses ANAPHERO_RECEIPT_HMAC_KEY.

MCP server

Hosted endpoint for Cursor, Claude Desktop, Cline, Roo Code and VS Code. Three tools are exposed.

json
{
  "mcpServers": {
    "anaphero": {
      "url": "https://api.anaphero.dev/mcp",
      "headers": { "X-Anaphero-Key": "anp_live_..." }
    }
  }
}
verify_numerals
Document + evidence
verify_document_self_consistency
Own tables/JSON
verify_openai_messages
Full chat + tool outputs

Local stdio alternative: install anaphero-core[mcp] and run anaphero-mcp.

CLI

bash
anaphero check report.pdf evidence.json --strict --json
anaphero check report.md --badge
anaphero check report.md evidence.csv --rel-tol 0.01 -v

Formats: CSV, Parquet, PDF, JSON, XLSX, Markdown, SQL, TSV, HTML and XML. PDF requires the pdf extra. Parquet uses pyarrow when present.

GitHub Action

yaml
- name: Verify every numeral
  uses: anaphero/anaphero-check@v1
  with:
    document: reports/q3.md
    evidence: data/q3.json
    api-key: ${{ secrets.ANAPHERO_API_KEY }}
    strict: true

The action exits non-zero in strict mode and emits inline annotations for each ungrounded numeral.

Live Verification Feed

The Live Verification Feed publishes deterministic retro-audits of public papers, reports and agent benchmarks. It selects fat-tail cases: visible table drift, or a complex document with at least 30 numerals and zero errors. Rendered cards and vertical videos point back to the public receipt.

Security model

  • Zero LLM calls in the verification loop.
  • BYOK keys are per-request and never persisted.
  • Receipts store hashes, counts and spans, not prompts.
  • Hosted API is stateless; storage is optional Supabase with RLS.
  • Enterprise deployments run in an isolated network with cgroup limits.

Read the security policy or email security@anaphero.dev.