Skip to main content

Veto CLI — one-command MCP setup for AI agent payment authorization.

Project description

Veto CLI

Authorization for AI agent payments — multi-dimensional YAML policy + Ed25519-signed decision receipts + offline verification. Composes with Stripe MPP, x402, AP2, Verifiable Intent.

Veto is the policy + signed-evidence layer for agents that take real actions across rails (x402, MPP, on-chain). Your agent calls veto authorize before each action, and the action is approved, denied, or escalated based on a YAML policy you author. Every decision ships with a cryptographically-signed receipt anyone can verify offline.

Install

The one-liner (curl) drops a self-contained venv at ~/.veto:

curl -fsSL https://veto-ai.com/install.sh | bash

Or via Python:

pip install veto-cli      # or: pipx install veto-cli

Python 3.9+. Pulls in PyYAML (policy authoring) and cryptography (offline receipt verification).

Quickstart — three commands

# 1. Install
pip install veto-cli

# 2. Register an account from the terminal (no website, no form)
veto register --email me@example.com --preset x402-micropay
# → ✓ Welcome to Veto. API key + default agent saved to ~/.veto/config.json

# 3. Ask Veto whether an action is allowed
veto authorize --amount 0.05 --merchant api.openai.com --action payment
# → APPROVED / DENIED / ESCALATED. Exit code 0/1/2/3.

Every authorize call produces a signed Ed25519 receipt. Verify any receipt offline:

veto authorize --amount 0.05 --merchant api.openai.com --action payment --json | jq -r .receipt | veto verify -
# → ✓ VERIFIED — Ed25519 / 0.1.1
#     decision:         APPROVE
#     decision_layer:   operator_policy
#     policy:           x402 Micropayments v1
#     policy_hash:      53aa6184…
#     transaction_id:   …

The verifier fetches the public key from veto-ai.com/.well-known/jwks.json (cached locally) and validates the signature without contacting Veto's runtime. Tamper-evident, replay-deterministic, anyone-auditable.

Five policy presets to start from

veto register applies a policy preset so your agent has sensible limits from the first authorize call. Pick one with --preset:

Preset For Defaults
personal (default) General-purpose agent $500/tx, $2k/day, blocks gambling/mixers/adult
inference AI API calls $5/tx, allowlists Anthropic/OpenAI/Replicate/etc.
x402-micropay x402 testing $1/tx, Base chain only, auto-approve <$0.10
ad-spend Meta/Google ads $1k/tx, escalate >$1k
dev Dogfooding/testing $500/tx, no merchant restrictions

Customizing your policy — full lifecycle

When the preset isn't enough, author your own:

# Export a preset as a starting point
veto policy export inference > my-policy.yaml

# Edit the YAML — any text editor
$EDITOR my-policy.yaml

# Push it to Veto. Auto-versioned + auto-active. Old version deactivated.
veto policy push my-policy.yaml
# → ✓ Policy v2 pushed — now active

# See your active policy as YAML
veto policy show

# Dry-run an action without recording a transaction
veto policy check '{"action":"payment","amount":50,"merchant":"amazon.com"}'
# → ✗ WOULD DENY — risk 1.00, dry-run
#     reason_codes: AMOUNT_CAP_EXCEEDED, MERCHANT_NOT_ALLOWLISTED

# List all your versions, newest first, with relative timestamps
veto policy list

# Roll back to a prior version (instant)
veto policy activate <prior-policy-id>

Every push creates a new versioned row. Receipts cite the exact policy_id, version_number, and policy_hash that was active at decision time — so an auditor in 12 months can prove which exact policy contents governed any past decision.

All commands

Command What it does
veto register CLI-native signup. Creates account + default agent + preset policy.
veto authorize Ask Veto whether an action is allowed. Headline command.
veto verify Verify a Veto receipt offline against the issuer's JWKS endpoint.
veto policy export/push/show/list/check/activate Author and manage versioned YAML policies.
veto init Auto-detect MCP clients on your machine (Claude Desktop, Cursor, Zed, Continue) and configure them to use Veto's MCP server.
veto status [agent_id] Show agent reputation tier + recent decision history.
veto list / uninstall List / remove Veto from MCP client configs.
veto mcp Run the Veto MCP server in stdio mode (used internally by MCP clients).

What Veto evaluates on every authorize call

8-step pipeline:

  1. Pre-checks — agent suspended? kill switch? amount sane?
  2. Policy enforcement — per-tx / daily / monthly caps; merchant + address + chain + token allowlists/blocklists. Allowlist violations are hard deny at any amount.
  3. Prompt injection detection — 40+ regex patterns over the agent's stated context.
  4. Merchant fraud screening — known-fraud DB, typosquat detection, suspicious TLDs, hyphen-heavy domains.
  5. Intent verification — Claude Sonnet (or keyword fallback) checks whether the action matches the agent's mission.
  6. Anomaly detection — amount spikes (>3× 30-day avg), velocity bursts, merchant-diversity anomalies.
  7. LLM final verdict — Claude reviews aggregated signals.
  8. Reputation weighting — elite agents get more leeway, risky agents stricter scrutiny.

Output: approve | deny | escalate plus a risk_score (0–1) and structured reason_codes (AMOUNT_CAP_EXCEEDED, MERCHANT_NOT_ALLOWLISTED, KNOWN_FRAUD_MERCHANT, etc.). Receipt signs all of it.

v1 — the if-statement is the enforcement

Wire veto.authorize() in front of every agent action and have your agent treat the verdict as ground truth: approve → execute, deny → halt, escalate → wait for a human. Two lines of cooperation, infinite cryptographic auditability.

verdict = veto.authorize(action)
if verdict.decision == "approve":
    execute(action)
elif verdict.decision == "escalate":
    notify_human(verdict)
# deny → drop the action, keep the receipt

The if-statement is your enforcement point. The receipt is your audit trail. Same operating model as Stripe Radar — your code asks, the engine answers, your code obeys — well-suited to the threat model that matters most: bugs, hallucinations, runaway loops, accidental over-spend.

v2 — enforcement moves to the rail

In v2, the cooperation step disappears. The rails themselves require a Veto signature to settle, so a non-cooperative agent literally can't broadcast the transaction. Same policy, same receipt format, same JWKS endpoint — different enforcement surface. v1 operators carry forward without changes; the receipt format already reserves a mandate_ref field for forward compatibility.

Mechanism specifics land closer to ship.

Configuration

State at ~/.veto/config.json (mode 0600): API key, default agent ID, base URL. No transaction data stored locally.

Default backend: https://veto-ai.com. Override with --base-url on any command (or via VETO_BASE_URL env var).

Links

License

Elastic License v2 (ELv2). See LICENSE for the full text and copyright. You may use, modify, and embed Veto freely. You may not host Veto as a managed service to third parties or strip the licensing notices.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

veto_cli-0.5.7.tar.gz (49.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

veto_cli-0.5.7-py3-none-any.whl (34.6 kB view details)

Uploaded Python 3

File details

Details for the file veto_cli-0.5.7.tar.gz.

File metadata

  • Download URL: veto_cli-0.5.7.tar.gz
  • Upload date:
  • Size: 49.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for veto_cli-0.5.7.tar.gz
Algorithm Hash digest
SHA256 3c59eb28492b467121c6102c27dbe852d68ef824e2df6b597af47a26e903e310
MD5 df6cc99d13801a9bfe182a7c65c30dc8
BLAKE2b-256 c9bfba7c8b49d6b609c8a3ab1cdb9dc00276f179c9ee306025465b83fe9225fc

See more details on using hashes here.

File details

Details for the file veto_cli-0.5.7-py3-none-any.whl.

File metadata

  • Download URL: veto_cli-0.5.7-py3-none-any.whl
  • Upload date:
  • Size: 34.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.8

File hashes

Hashes for veto_cli-0.5.7-py3-none-any.whl
Algorithm Hash digest
SHA256 4f49c6f5bb4df4d4a7f67b6d1d4762304aa0efa6d35b643bf19b34225bb1c1f3
MD5 02906212575c3ab3a16e622d3bd00e77
BLAKE2b-256 95c45b969a357f6ba4ba64970279b210fda3358cd4b9859c8c8a51a47dd801b8

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page