
vouch-mcp-signer
io.github.vouch-protocol/vouch-mcp-signer
Sign and verify W3C Verifiable Credentials so AI agents can cryptographically authorize actions.
Documentation
Vouch Protocol™
Vouch Protocol™ is a common-law trademark.
The Open Standard for Identity & Provenance of AI Agents
Quick Start
# Install (Linux and macOS). On Windows, use: pip install vouch-protocol
curl -fsSL https://vouch-protocol.org/install.sh | sh
# Run vouch with no arguments and pick what you want to do
vouch
Prefer to do it by hand? It is three commands:
pip install vouch-protocol
# One command to configure SSH signing + Vouch Protocol branding
vouch git init
# All future commits are now signed. GitHub shows ✅ Verified once the signing key
# is uploaded to your account (the command does it with the gh CLI when you have
# it, otherwise it opens the page and shows the key to paste)
git commit -m "Secure commit"
Setting up an agent instead of git signing? vouch onboard --quick makes a working identity, a vouch-policy.json, a verifier and a heartbeat setup in one command.
What Vouch Protocol is
The Open Standard for AI Agent Identity & Accountability
When Anthropic launched MCP, they solved "how agents call tools." They didn't solve "how we TRUST those agents."
Vouch Protocol is the SSL certificate for AI agents.
Vouch Protocol is not one tool, it is a set of them. Here is the whole map.
On the command line
vouch initmakes an agent identity (a DID, an Ed25519 key and a post-quantum key). On its own it makes a did:key, which needs nothing hosted.--domainmakes a did:web, whose DID documentvouch did-documentprints.vouch whoamiprints the saved DID.vouch sign/vouch verifysign a payload and verify it.vouch policy init/vouch policy checkwrite a startervouch-policy.jsonand tell you every problem in one.vouch sidecarruns the signing sidecar, which holds your agent's key so the model never has it. See the sidecar.vouch validatorruns a heartbeat validator: agents send a signed heartbeat at every interval and get back a short-lived session voucher.vouch gitsigns every git commit cryptographically, set up in one command, with a verified badge for your README.vouch runstarts an agent inside a file-access fence on Linux:vouch run -- python agent.py. The kernel lets it reach its workspace and the paths you list, and keeps your keys out of its reach. See Fenced runs.vouch scanfinds leaked key material in your code before it ships (a private key in a file, a seed in an env var, a DID document that accidentally carries a private key).vouch attributeseparates who wrote which line. When an AI assistant and a human both edit a file, this records the AI's lines under the AI's own key and your lines under yours, so when a line causes an incident you can prove which of you wrote it. See the Claude Code integration.vouch mediasigns images (with C2PA support) and runs the media server (vouch media serve).
For your agents
- One guard for every receiving side.
vouch.guard.Guarddecides whether a call may run, and the MCP, FastAPI, Hasura, A2A, OpenAI and plain-function adapters are thin layers over it. It reads one policy file. - MCP signer (
vouch-mcp-signer) a Model Context Protocol server so any MCP client (Claude Desktop, Cursor, any agent) can create an identity, sign and verify credentials, scan for leaked keys and decode DIDs, out of the box. - Signing sidecar keeps signing keys out of the model's context, so a prompt injection cannot read them.
- Continuous trust heartbeats and session vouchers, so trust is a live signal that has to be renewed, not a badge that is issued once and trusted forever.
- Authority freshness a signed authority state with a counter that only goes up, so a state change (a fraud signal, a suspended mandate) collapses the acceptable freshness window to now for a high-consequence action, even when time-decay trust still passes. See docs/authority-freshness.md.
Framework integrations
Each framework has an extra of the same name on the one package. Each one issues a credential for a tool call, with optional delegation back to a human principal.
vouch-protocol[langchain]signs each LangChain tool call, sync or async, before the tool runs.vouch-protocol[langgraph]signs LangGraph tool calls and graph nodes, so a signed trail runs across the whole graph.vouch-protocol[crewai]a CrewAI tool, with supervisor-to-worker delegation that can only narrow authority, never widen it.vouch-protocol[a2a]binds an A2A (Agent2Agent) Agent Card to an identity, so two agents can verify each other before they collaborate.vouch-protocol[openai]signs OpenAI function calls and checks them on the other side.vouch-protocol[goose]registers the MCP signer as an extension for Block's Goose agent, so a Goose session can sign and verify out of the box.vouch-protocol[mlflow]signs an MLflow model artifact at registration time, bound to a content digest so any change to the weights breaks the signature.vouch-protocol[safetensors]embeds a credential in a.safetensorsheader, complementary to OpenSSF Model Signing, so a model carries who produced it.
SDKs, in the language you use
Python, TypeScript, and Go are the full reference implementations. A Rust core with idiomatic Swift, JVM (Java and Kotlin), .NET, and C wrappers shares one codebase, so every language produces byte-identical output, verified against shared test vectors. A WebAssembly build is included for the browser and the edge.
| Language | Where | What it is |
|---|---|---|
| Python | pip install vouch-protocol | The reference implementation, the command line, the guards, the servers |
| TypeScript | @vouch-protocol-official/sdk | The SDK, the guard engine, robotics, and the sidecar launcher |
| Go | go-sidecar/ | The signing sidecar, the signer and robotics packages |
| Rust | core/vouch-core | The canonical crypto and decision code the bindings share |
| Swift, JVM, .NET, C++, WebAssembly | sdks/, core/wasm | Wrappers over the Rust core |
Robots and embodied agents
A robot is an agent with a body, so identity and accountability matter even more once it can cause physical harm. See Robots below.
Inside your AI tools
- Claude Skill, OpenAI Custom GPT, and Gemini Gem packages that teach your AI assistant how to add Vouch Protocol to your code, running on your own AI subscription.
Media and the web
- C2PA Content Credentials for images, with trust anchors you choose. See C2PA.
- Vouch Sonic an audio watermark that carries provenance through sound.
- Browser extension for Chrome and Edge that signs and verifies content on the page, through the signing sidecar.
For your repositories
- Gatekeeper GitHub App verifies commit signatures on every pull request and blocks leaked keys before they merge.
For the ecosystem
- Agent Trust Index an open benchmark that scans agents in the wild and measures how many can actually prove who they are. (Spoiler: today, almost none.)
Read the spec → | Join Discord →
The Problem
AI agents are making real-world API calls with ZERO cryptographic proof of:
- WHO they are
- WHAT they intended to do
- WHEN they did it
Examples of the risk:
- Healthcare AI accesses patient data → HIPAA violation risk
- Financial AI makes unauthorized trades → Liability nightmare
- Customer service AI leaks data → Compliance failure
Current solutions:
- DIY JWT signing → No agent-specific features, security mistakes easy
- Nothing → Most people just YOLO it and hope for the best
The Solution
Vouch Protocol provides cryptographic identity for AI agents, modeled after SSL/TLS:
- Verifiable Credentials (VC Data Model 2.0)
- Data Integrity proofs (
eddsa-jcs-2022cryptosuite, no JOSE/JWS dependency) - Decentralized Identifiers (
did:web,did:webvh,did:key) - Multikey verification methods (algorithm-agnostic, post-quantum ready)
- Post-quantum profile (optional proof set:
eddsa-jcs-2022+mldsa44-jcs-2024) - Human-readable JSON (proof attaches as a sibling object, no Base64-wrapped opaque payload)
- Framework-agnostic (works with MCP, LangChain, CrewAI, AutoGPT, AutoGen, Vertex AI)
- Cross-language interop (Python, TypeScript, Go, byte-identical canonical form)
- Open source (Apache 2.0 license, with a public portfolio of defensive prior-art disclosures)
Think of it as:
- SSL certificate = Proves website identity
- Vouch Protocol = Proves AI agent identity
How It Works
The Workflow
flowchart LR
P["👤 Principal<br/>did:web:user.example.com"]
A["🤖 AI Agent<br/>did:web:agent.example.com<br/>+ Signing Sidecar"]
C["📄 Vouch Protocol credential<br/>VC + Data Integrity<br/>(eddsa-jcs-2022)"]
API["🔐 API Endpoint<br/>Guard + vouch-policy.json"]
V{"✅ Allowed"}
P -->|"Delegation VC"| A
A -->|"sign(intent)"| C
C -->|"Vouch-Credential<br/>header"| API
API -->|"guard.check()"| V
4 Simple Steps:
- Generate Identity:
vouch initmakes an Ed25519 keypair and a DID. A did:key needs nothing hosted. For a did:web, publish a DID Document listing the key (#key-1for Ed25519, plus#key-2as a Multikey for ML-DSA-44 when you add the post-quantum key). - Sign Action: The agent (or its sidecar) issues a Verifiable Credential carrying
action,target, andresource, secured by aneddsa-jcs-2022Data Integrity proof. - Send to API: Send the credential in the
Vouch-Credentialrequest header (or in the_metaof an MCP call). - Guard: The API resolves the issuer's DID, validates the proof, checks the time window, that the credential names exactly this call, that the issuer is trusted and that the policy's rules allow it, and marks the credential used so it cannot be replayed.
The Trust Model
flowchart TB
subgraph IDENTITY["Identity Layer"]
DID["DID<br/>did:web / did:webvh / did:key"]
MK["Multikey<br/>algorithm-agnostic key encoding"]
end
subgraph FORMAT["Credential Layer"]
VC["Verifiable Credential<br/>(VC Data Model 2.0)"]
INTENT["Intent payload<br/>action · target · resource"]
end
subgraph CRYPTO["Cryptographic Proof"]
JCS["JCS canonicalization (RFC 8785)"]
DEFAULT["eddsa-jcs-2022<br/>(Ed25519, default)"]
PQ["mldsa44-jcs-2024<br/>(ML-DSA-44, optional second proof)"]
end
IDENTITY --> FORMAT
FORMAT --> CRYPTO
JCS --> DEFAULT
JCS --> PQ
Trust = Verifiable Credentials + Data Integrity + Decentralized Identifiers + Multikey, with an optional post-quantum proof set. The same math that secures SSL/TLS, plus the standardized primitives that secure verifiable credentials elsewhere on the web, applied to AI agents.
Why Vouch Protocol?
vs. DIY JWT
| Feature | Vouch Protocol | DIY JWT |
|---|---|---|
| Agent-specific | ✅ (designed for agents) | ❌ (generic) |
| MCP integration | ✅ (native) | ❌ (manual) |
| Framework integrations | ✅ (LangChain, CrewAI, etc.) | ❌ |
| Audit trail format | ✅ (VC standardized) | ❌ (custom) |
| standards-aligned | ✅ (eddsa-jcs-2022 Data Integrity) | ❌ |
| Multikey verification methods | ✅ (algorithm-agnostic) | ❌ |
| Post-quantum signatures | ✅ (mldsa44-jcs-2024 proof set) | ❌ |
| Cross-implementation interop tests | ✅ (Python, TypeScript, Go) | ❌ |
| Security best practices | ✅ (built-in) | ⚠️ (easy to mess up) |
Install
One package, with an extra for each thing you want on top:
pip install vouch-protocol # the core: identity, signing, verifying, guards, heartbeats
pip install "vouch-protocol[mcp,fastapi]" # more than one extra at once
pip install "vouch-protocol[all]" # every extra except openvla and dev
import vouch loads in a few milliseconds and pulls in only the names most programs need. Everything else is at its full module path (vouch.heartbeat.canary, vouch.profiles.robotics), and loads when you import it.
| Extra | Adds |
|---|---|
mcp, fastapi, hasura | The guard for MCP servers, FastAPI and Starlette routes, and the Hasura auth webhook |
mcp-signer | The MCP signer server (vouch mcp-signer, vouch-mcp-signer) |
validator | The heartbeat validator service (vouch validator) |
sidecar | The Python launcher and client for the Go sidecar (no extra packages) |
media, media-server | C2PA and native image signing, and the media server (vouch media serve) |
robotics, pacing, budgets, reputation, reasoning, transport | The opt-in profiles under vouch.profiles |
langchain, langgraph, crewai, autogen, openai, a2a, goose, adk, vertex, n8n, mlflow, safetensors, streamlit | The framework signers under vouch.integrations |
yaml, redis, metrics, tracing, aws, gcp | YAML policy files, a shared replay store, Prometheus and OpenTelemetry, and cloud keys |
A guard or server that needs an extra you have not installed stops with the exact pip install "vouch-protocol[<extra>]" line.
Sign, verify and guard
1. Make an identity
vouch init -y # makes a did:key: nothing to host, anyone can verify it offline
vouch whoami # prints its DID
The identity is saved in ~/.vouch/keys, and the commands below find it there. For an identity on your own domain, run vouch init --domain agent.example.org, then host the file that vouch did-document --out did.json writes at https://agent.example.org/.well-known/did.json.
vouch init also writes the identity as a key file in ~/.vouch/keyfiles and prints its path, so VOUCH_KEY=<that file> signs as the same identity on another machine or in a container (an identity locked with a passphrase gets no key file). Older key files convert once with vouch keys convert <file> --out <new file>.
On a server, name the key with VOUCH_KEY instead: a key file, keyring:<did>, kms:aws:<key> or kms:gcp:<key version>, the key itself, or ephemeral for a throwaway key while you try things out. VOUCH_DID picks the identity when more than one is saved, and VOUCH_KEY_PASSPHRASE unlocks an encrypted key file.
2. Sign an action (agent side)
From the command line:
vouch sign '{"action":"read_database","target":"users_table","resource":"https://api.example.org/v1/users"}' --json > credential.json
Or from Python, with the identity you just saved:
import json
from vouch.autosign import resolve_signer
signer = resolve_signer() # the identity `vouch init` saved, or the one VOUCH_KEY names
credential = signer.sign(
action='read_database',
target='users_table',
resource='https://api.example.org/v1/users',
)
print(json.dumps(credential)[:80])
To sign every tool call an agent makes, with no wiring and nothing for the model to remember:
from vouch import sign_tools, current_credential
def search(query: str) -> str:
return "results for " + query
tools = sign_tools([search]) # each call is signed before the tool runs
tools[0]("vouch protocol")
print(current_credential()["issuer"])
3. Check it (service side)
From the command line:
vouch verify credential.json
From Python:
import vouch
is_valid, passport = vouch.verify(credential)
# A did:key issuer needs no lookup. A did:web issuer is resolved from its
# DID document. Pass public_key=... to check against a key you already hold.
print(is_valid, passport.intent)
A verifier accepts each credential once, so that a copied credential cannot be replayed. Verifying the same credential a second time in a demo returns (False, None). To check it again while you experiment, pass replay_store=False: vouch.verify(credential, replay_store=False). The vouch verify command checks one credential and does not remember it from one run to the next, so it accepts the same credential again. vouch.verify remembers each credential it accepted for as long as the process runs, and a guard can share its memory across processes and replicas (VOUCH_REPLAY_STORE).
4. Guard a service with a policy
A service that acts on credentials reads one file, vouch-policy.json: who may call, how long a credential may live, and what each caller may do.
vouch policy init # writes a starter vouch-policy.json
vouch policy check # prints every problem in it, one per line, each with its place in the file
A small one, with the DID from vouch whoami in place of the placeholder:
{
"version": 1,
"target": "payments",
"trust": { "issuers": ["did:key:z6Mk..."] },
"rules": [
{
"did": "did:key:z6Mk...",
"allow": [{ "action": "pay", "resource": "invoice/*" }]
}
]
}
Then one guard decides every call, and a thin adapter puts it in front of your framework. Each credential must name exactly this call (its action, this service as the target, and the call's resource), come from a trusted issuer, live no longer than the policy allows, and be unused. It is marked used only after every other check passes.
import vouch
from vouch.guard import Guard, Refused, require
guard = Guard(vouch.load_policy()) # ./vouch-policy.json, or the file VOUCH_POLICY names
@require(guard, resource=lambda args: args["invoice"])
def pay(invoice: str) -> str:
return "paid " + invoice
pay("invoice/42", credential=credential_for_this_call) # runs
A refusal raises Refused, whose .decision says why (credential already used, no matching rule, untrusted issuer, and so on), and the function body never runs.
Every receiving side has the same shape:
# FastAPI and Starlette routes (pip install "vouch-protocol[fastapi]")
from typing import Annotated, Any
from fastapi import Depends, FastAPI
from vouch.guard.fastapi import RouteGuard
app = FastAPI()
route_guard = RouteGuard(guard)
@app.get("/reports")
async def reports(passport: Annotated[Any, Depends(route_guard(action="read"))]):
return {"agent": passport.sub}
# The credential comes in the Vouch-Credential header. Its resource is the request:
# what vouch.guard.http_resource returns for it (the method and the URL, and for a
# method with a body, a hash of the body), so the agent signs that same string.
# MCP servers (pip install "vouch-protocol[mcp]"): every tool is guarded by default
from vouch.guard.mcp import FastMCP
mcp = FastMCP("payments") # reads vouch-policy.json, or takes policy= or guard=
@mcp.tool(resource=lambda args: args["invoice"])
def pay_invoice(invoice: str) -> str:
return "paid " + invoice
# The credential travels in the call's _meta. A client that cannot set _meta passes it in
# the tool's `credential` argument instead, as the credential's JSON in a string.
# Already have a server? vouch.guard.mcp.guard_server(server, guard=guard) guards its tool calls.
# The Hasura auth webhook (pip install "vouch-protocol[hasura]")
from vouch.guard.hasura import HasuraWebhook
webhook = HasuraWebhook(guard, resource="https://hasura.example.com/v1/graphql")
allowed, session_variables = webhook.authenticate({"Vouch-Credential": credential_json})
# OpenAI tool calls
from vouch.guard.openai import check_tool_call
decision = check_tool_call(guard, tool_call, credential)
if not decision.allowed:
print(decision.reason)
# A2A Agent Cards
from vouch.guard.a2a import check_agent_card
decision = check_agent_card(guard, signed_card)
For TypeScript, the same engine ships in the SDK (Guard, checkRequest, requireGuard), and @vouch-protocol-official/mcp-guard is the thin adapter for MCP servers.
5. Keep trust live with a heartbeat validator
A validator takes a signed heartbeat from an agent at every interval and answers with a short-lived session voucher. It reads the heartbeat.validator section of its policy: agents lists the agents it accepts, and requireAudience (on by default) means a heartbeat must name this validator. Put your agent's DID from vouch whoami in validator-policy.json:
{
"version": 1,
"heartbeat": {
"validator": {
"agents": ["did:key:z6Mk..."],
"requireAudience": true
}
}
}
pip install "vouch-protocol[validator]"
vouch validator --dev --did did:web:localhost --policy validator-policy.json # a local trial on 127.0.0.1:8088
The agent sends its heartbeat over HTTP:
import httpx
from vouch.autosign import resolve_signer
from vouch.heartbeat.session import HeartbeatSession
agent = resolve_signer() # the identity `vouch init` saved
session = HeartbeatSession(
subject_did=agent.did,
signer=agent,
audience="did:web:localhost", # the validator's DID: GET /healthz names it
)
beat = session.build_request()
answer = httpx.post("http://127.0.0.1:8088/heartbeat", json=beat.to_dict())
print(answer.status_code, answer.json()["ok"]) # 200 True, with a signed session voucher
vouch.heartbeat.scheduler.HeartbeatScheduler sends one at every interval and resends when a send fails.
One policy file
vouch-policy.json is the one place a guard, the MCP signer, the validator and the sidecar read their settings. Each section is optional, and each component checks that the sections it needs are there.
| Section | What it holds |
|---|---|
target | The service name a credential must carry |
trust | Who may call: issuers, pinned keys, delegation roots, acceptDelegates |
credential | How long a credential may live (maxLifetime, 1 hour by default), its size, clock skew, post-quantum requirement |
checks | Revocation, delegation chains, and whether a resource is required |
rules | What each caller (a DID, or "*") may do: action, target and resource patterns, with an optional consequence tier |
freshness | How live trust must be per tier: a session voucher, a trust threshold, authority freshness |
network | The replay store, the hosts and origins a server answers, and DID resolution |
heartbeat | The validators a guard trusts, and the validator's own settings |
signing | What the signers will sign: default and maximum validity, the post-quantum proof, consent |
A policy that does not load stops the component, and it prints every problem, one per line, with the file and the place in it. A JSON Schema ships in the package and at schemas/vouch-policy-1.json. JSON is read everywhere. YAML is read too in Python and TypeScript (pip install "vouch-protocol[yaml]").
The environment names only the things a file should not hold:
| Setting | Meaning |
|---|---|
VOUCH_POLICY | The policy file |
VOUCH_KEY, VOUCH_KEY_PASSPHRASE, VOUCH_DID | The signing key, its passphrase and which identity to use |
VOUCH_DIR | Vouch Protocol's own folder (default ~/.vouch) |
VOUCH_REPLAY_STORE | A shared store for used credentials, such as redis://... |
VOUCH_SIDECAR_HOST, VOUCH_SIDECAR_PORT, VOUCH_SIDECAR_TOKEN | The sidecar's address and the token its callers send |
VOUCH_MCP_TRANSPORT, VOUCH_MCP_HOST, VOUCH_MCP_PORT | The MCP signer server's transport and address |
VOUCH_VALIDATOR_HOST, VOUCH_VALIDATOR_PORT, VOUCH_VALIDATOR_REVOKE_TOKEN, VOUCH_VALIDATOR_DATA_DIR | The validator's address, its /revoke credential and its data folder |
VOUCH_MEDIA_HOST, VOUCH_MEDIA_PORT, VOUCH_MEDIA_TOKEN | The media server's address and token |
The command-line tools also keep a personal policy in $VOUCH_DIR/policy.json. vouch trust <did or domain> adds a delegation starting point to it, and only the command-line tools read it. A guard or library verifier never reads anything it was not handed.
Heartbeats and session chains
A credential says who an agent was when it signed. A heartbeat says it is still there. The agent sends a small signed heartbeat at every interval. A validator checks its signature, its place in the sequence and a chain of commit-and-reveal canary values, and answers with a short-lived session voucher. Trust decays with time and is renewed only by a live, in-order agent.
import base64
import json
from datetime import datetime, timezone
import vouch
from vouch.autosign import resolve_signer
from vouch.credential import sign_session_voucher
from vouch.crypto import multikey
from vouch.heartbeat.lineage import AgentLineageStore
from vouch.heartbeat.session import HeartbeatSession
from vouch.heartbeat.trust import compute_trust_at
from vouch.heartbeat.validator import HeartbeatValidator
agent = resolve_signer()
# A validator is an identity of its own. For a local trial, make a throwaway did:key.
keys = vouch.generate_identity()
raw = base64.urlsafe_b64decode(json.loads(keys.public_key_jwk)["x"] + "==")
validator_signer = vouch.Signer(
private_key=keys.private_key_jwk, did="did:key:" + multikey.encode_ed25519_public(raw)
)
validator = HeartbeatValidator(
validator_did=validator_signer.did, interval_seconds=60, max_missed_intervals=2
)
# The agent keeps its session chain on disk, so a restart continues where it left off.
session = HeartbeatSession(
subject_did=agent.did, signer=agent, lineage_store=AgentLineageStore(agent.did)
)
now = datetime.now(timezone.utc)
session.record_action(b"read:calendar") # what the agent did since the last beat
beat = session.build_request(now=now)
result = validator.validate(beat.to_dict())
voucher = sign_session_voucher(result.session_voucher, validator_signer)
print(result.ok, round(compute_trust_at(voucher, now), 2))
In production the agent sends beat.to_dict() to a validator over HTTPS (HeartbeatScheduler calls your send function at every interval, resends a lost heartbeat and keeps the latest voucher), and the validator is vouch validator --policy vouch-policy.json (pip install "vouch-protocol[validator]"). It reads what it accepts from heartbeat.validator in the policy. For a local trial, set "heartbeat": {"validator": {"acceptAnyDidKey": true}} and run vouch validator --policy vouch-policy.json --dev --did did:web:localhost. A guard that wants a live session for a consequence tier names its validators and the tier in the same file:
{
"heartbeat": { "trustedValidators": ["did:web:validator.example.com"] },
"freshness": { "tiers": { "sensitive": { "requireSession": true, "trustThreshold": 0.8 } } }
}
Each new session names the one it follows, so a validator holds a chain per agent. Two sessions that follow the same session prove that a key was copied, and the validator freezes that key and shows a proof anyone can check. vouch init starts the chain at genesis when it makes an identity, AgentLineageStore keeps it on disk, and session.start_new_session() continues it. Running copies of one agent use replica identities, so each has its own chain under one grant.
The signing sidecar
The sidecar is one Go program. It holds the agent's key and signs what the agent is about to do, so a prompt-injected model has no key to leak. The agent asks it over HTTP on localhost, and the sidecar signs only what the policy's rules allow for its own DID.
vouch policy init # then add rules for the DID from `vouch whoami`
vouch sidecar --policy vouch-policy.json # listens on 127.0.0.1:8877
vouch sidecar finds the Go binary and starts it with the flags you gave. The TypeScript SDK ships the same launcher (vouch-sidecar-ts). To get the binary:
go install github.com/vouch-protocol/vouch/go-sidecar/cmd/vouch-sidecar@latest
docker run ghcr.io/vouch-protocol/sidecar:latest # or the container image
The sidecar will not start without a policy file. The policy's signing section sets the validity window, the post-quantum proof and consent, and its network section sets the browser origins and host names it answers. --key (or VOUCH_KEY) picks the key (a key file, keyring:<did>, kms:aws:<key>, kms:gcp:<key version>, or ephemeral), and VOUCH_SIDECAR_TOKEN is the bearer token callers send.
From Python:
import vouch
from vouch.servers.sidecar import SidecarClient
sidecar = SidecarClient() # http://127.0.0.1:8877
credential = sidecar.sign({"action": "transfer", "target": "payments", "resource": "invoice/42"})
print(vouch.verify(credential, replay_store=False)[0])
An agent that holds a grant from a person or another agent passes it as parent_credential. The sidecar builds the delegation links itself and refuses anything outside the grant. The browser extension signs page content through the same sidecar, asking the person first when signing.consent says so.
Robots across languages
A robot is an agent with a body. The robotics profile ships capabilities on the same eddsa-jcs-2022 credentials as the rest of Vouch Protocol: hardware-rooted identity, model and config provenance, physical capability scopes, robot-to-robot trust handshakes, a black box and kill switch, perception provenance, and more, with disconnected-edge support for robots that cannot reach the network. A robot credential signed in any language verifies in every other, pinned by the shared vectors in test-vectors/robotics/.
| Language | Where |
|---|---|
| Python | vouch.profiles.robotics (pip install "vouch-protocol[robotics]") |
| TypeScript | packages/sdk-ts/src/robotics |
| Go | go-sidecar/robotics |
| Rust, and through it Swift, JVM, .NET, C++, WebAssembly | core/vouch-core (robotics), wrapped in sdks/ and core/wasm |
from vouch.autosign import resolve_signer
from vouch.profiles.robotics import PhysicalAction, build_physical_scope_credential, check_physical_action
operator = resolve_signer()
credential = build_physical_scope_credential(
operator,
subject_did="did:web:robot-7.example.com",
max_force_n=100,
max_speed_mps=2.0,
max_speed_near_humans_mps=0.5,
allowed_zones=["zone-A"],
shift_windows=[{"start": "08:00", "end": "18:00"}],
)
scope = credential["credentialSubject"]["physicalScope"]
near_a_person = PhysicalAction(force_n=50, speed_mps=1.5, near_humans=True, zone="zone-A", time_hm="10:00")
print(check_physical_action(scope, near_a_person).reasons) # ['near_humans speed_exceeded: 1.5 m/s > 0.5 m/s']
A robotics verifier trusts a did:key issuer only when you tell it which key or issuer to trust: pass the key, name the issuer in the verifier's trusted set, or pin the subject of a self-attestation. A handshake trust policy that names a domain trusts that domain only; name the path to trust a DID under it. See docs/robotics.md and the ROS 2 package.
C2PA Content Credentials
vouch media sign --c2pa signs an image with a C2PA manifest that also carries the signer's Vouch Protocol identity. Verification trusts only the certificate authorities you give it:
pip install "vouch-protocol[media]"
# Sign with a throwaway test certificate (development only) and keep its CA
vouch media sign photo.jpg --c2pa --save-test-ca test-ca.pem -o photo_signed.jpg -n "Demo Signer"
vouch media verify photo_signed.jpg --c2pa # refused: the certificate chains to no trusted CA
vouch media verify photo_signed.jpg --c2pa --trust-anchors test-ca.pem # trusted
In Python:
from vouch.profiles.media.c2pa import MediaVerifier
verifier = MediaVerifier(trust_anchors=open("test-ca.pem").read())
result = verifier.verify_image("photo_signed.jpg")
print(result.is_valid, result.signer_identity.display_name)
Nothing is trusted by default. To check manifests from real cameras and editing tools, pass the PEM file of the C2PA trust list as trust_anchors. The DID in the manifest counts as the signer only when a credential issued by that DID ties it to this file. A file whose manifest is stored somewhere else is refused, and nothing is fetched. For production signing, use a certificate from a CA on the C2PA trust list and run the media server (vouch media serve, pip install "vouch-protocol[media-server]"). See examples/c2pa.
Integrations
Works with all major AI frameworks out-of-the-box:
- Model Context Protocol (MCP): a signer for Claude Desktop and Cursor, and a guard for MCP servers
- LangChain: sign tool calls automatically
- CrewAI: multi-agent identity management
- AutoGPT: autonomous agent signing
- AutoGen: Microsoft multi-agent framework
- Google Vertex AI: sign function calls
- Google ADK: native ADK tool integration
- n8n: low-code agent workflows
Enterprise Features
- Key Rotation: automatic rotating keys for production
- Voice AI Signing: sign audio frames in real-time
- Cloud keys: Ed25519 keys in AWS KMS and Google Cloud KMS sign credentials, and the private key never leaves the service (
VOUCH_KEY=kms:aws:<key>orkms:gcp:<key version>, for the sidecar and the Python signer). Azure Key Vault does not offer Ed25519 keys - Heartbeat validator service:
vouch validatorruns a heartbeat validator that renews agent sessions, with a container image and a Kubernetes manifest - Reputation Scoring: track agent behavior over time
- Revocation Registry: revoke a single credential with a status list, or a whole DID with the registry
- Redis Caching: production-scale verification, and one replay store shared by every replica (
VOUCH_REPLAY_STORE=redis://...) - Post-Quantum Profile: an optional proof set carrying an
eddsa-jcs-2022proof and anmldsa44-jcs-2024proof for regulated deployments aligning with NIST CNSA 2.0 / NSM-10 migration timelines
Post-Quantum Example
# Optional profile, bundled with `pip install vouch-protocol`
credential = signer.sign_hybrid(
action='submit_clinical_finding',
target='trial:NCT00000001',
resource='https://fda-submissions.example.com/api/findings',
)
# The credential's `proof` is an array of two independent Data Integrity proofs,
# eddsa-jcs-2022 and mldsa44-jcs-2024, over the same document.
# Verification REQUIRES both to validate.
# A did:key carries only the Ed25519 key, so hand the verifier the ML-DSA-44
# key too. A did:web DID lists it in its DID document instead
# (`vouch did-document --post-quantum`).
ok, passport = vouch.verify(credential, mldsa44_public_key=signer.public_key_mldsa44())
What changed in 4.0
Release 4.0 is a simplification. The same protocol, with fewer ways to do each thing:
- One guard engine (
vouch.guard.Guard) behind every receiving side, instead of one per framework. - One policy file (
vouch-policy.json) instead of a pile of environment variables and rule files. - One signing sidecar (the Go program), and one key variable (
VOUCH_KEY). - One package with extras.
import vouchgives 42 names, and everything else is at its full module path.
The CHANGELOG has the full list and an "Upgrading to 4.0" guide that maps every removed name to its replacement.
Use cases
- Financial services. A signed, accountable record of every trade or transfer an agent makes.
- Healthcare. An auditable trail for every access to patient data.
- Customer service. Proof of which agent touched which customer record, and on whose authority.
- Agent to agent. When one organization's agent calls another's, each can verify the other before acting.
Documentation
- Quick Start
- Vouch Specification (v1.6 normative)
- Post-Quantum Implementation Guide
- Protocol Specification (developer guide)
- Integration Guides
- Threat Model and Security Considerations
- Defensive Prior Art Disclosures (more than 130 PADs)
- FAQ and Discussions
Community
- Discord - Ask questions, share use cases → Join now
- GitHub Discussions - Technical discussions → Start a discussion
- Twitter/X - Updates and announcements → @Vouch_Protocol
Roadmap
v1.6 (current release)
- Verifiable Credentials + Data Integrity (
eddsa-jcs-2022cryptosuite) - Multikey verification methods (algorithm-agnostic, multibase + multicodec)
- Post-quantum profile (
eddsa-jcs-2022+mldsa44-jcs-2024proof set, NIST CNSA 2.0 / NSM-10 aligned) - Three-language reference implementation (Python, TypeScript, Go) with byte-identical canonical form via RFC 8785 JCS, verified against shared test vectors
- Specification drafted and submitted to the open standards group for incubation
- More than 130 Prior Art Disclosures (defensive publications)
- Identity Sidecar architecture (LLM-isolated keys)
- Heartbeat Protocol with adaptive Trust Entropy
- Resource-bound delegation chains with capability narrowing
- MCP integration (Claude Desktop, Cursor)
- Framework adapters (LangChain, CrewAI, AutoGPT, AutoGen, Vertex AI, Google ADK, n8n)
- C2PA Content Credentials integration
- Audio watermarking (Vouch Sonic, sub-band steganography)
- DID-linked voice biometric enrollment
- Browser extension (Chrome / Edge content signing)
- GitHub App and Cloudflare Workers verification gateway
Next (v1.7 and beyond)
- Independent third-party cryptographic security audit (Trail of Bits / NCC Group / Cure53)
- Specification stabilization and external review
- Algorithm Quorum verification (M-of-N cryptosuite diversity, per PAD-046)
- Verifiable Delay Function rate-limiting for high-stakes agent actions (per PAD-047)
- Cryptographic Weight Binding for model-intrinsic AI identity (per PAD-043)
- Ephemeral ZK-State Channels for high-frequency agent-to-agent negotiation (per PAD-044)
- Retrieval-anchored proof of non-hallucination (per PAD-045)
- Standardized agent ledger metadata schema (per PAD-042)
- Edge-first WASM + ONNX client-side processing
- Hardware key support (YubiKey, TPM, Secure Enclave)
- Native Rust implementation for edge and embedded deployments
View full roadmap and issue tracker →
License
Apache License 2.0: See LICENSE
You can use this freely in commercial and open-source projects.
The defensive prior-art disclosures in docs/disclosures are published to keep these methods free from patent capture. They are dedicated to the public domain under CC0 1.0 Universal, so anyone may copy, quote and build on them without asking.
The Vouch Protocol specification is being developed as a open standard submission via the open standards group. The implementation is also being proposed to the Linux Foundation's AI & Data Foundation.
Acknowledgments
Inspired by:
- SSL/TLS (the gold standard for identity)
- OAuth 2.0 (federated identity done right)
- Verifiable Credentials (the future of digital identity)
Built by Ramprasad Gaddam (Twitter/X)
Contributing
Contributions welcome. See CONTRIBUTING.md. Looking for a place to start? Browse our good first issues, and open a ready-made dev environment with one click using the Open in GitHub Codespaces badge above.
Areas where help is most useful:
- Additional framework integrations (Haystack, Semantic Kernel, LlamaIndex, others)
- Cross-implementation interop test vectors (additional edge cases for JCS, VC, post-quantum proof sets)
- Tutorials and worked examples for regulated-sector deployments
- Independent security review and audit
- Wrappers for more languages (Ruby, PHP, Dart, others)
Contributors
Thanks goes to these wonderful people. This section is maintained automatically by the all-contributors bot.
Star this repo if you find it useful.
Star on GitHub | Join Discord | Follow on X
Prior Art Disclosures
To ensure ecosystem freedom, we publish more than 130 defensive prior art disclosures covering novel methods across cryptographic identity, media provenance, voice biometrics, AI safety, post-quantum cryptography, AI coding assistant governance, and content authenticity. The first 55 are listed below. The full list is in docs/disclosures:
| ID | Title | Category |
|---|---|---|
| PAD-001 | Cryptographic Agent Identity | Identity |
| PAD-002 | Chain of Custody Delegation | Identity |
| PAD-003 | Identity Sidecar Pattern | Architecture |
| PAD-004 | DOM-Traversing Signature Matching | Verification |
| PAD-005 | Detached Signature Recovery | Verification |
| PAD-006 | URL-Based Credential Chaining | Trust |
| PAD-007 | Automated Provenance via Input Telemetry | Provenance |
| PAD-008 | Hybrid Identity Bootstrapping | Identity |
| PAD-009 | Unified Local Identity via Localhost Bridge | Architecture |
| PAD-010 | Context-Adaptive Semantic Consent | Privacy |
| PAD-011 | Hierarchical Discovery Protocol | Discovery |
| PAD-012 | Executable Usage Covenants in Media Manifests | Media / Rights |
| PAD-013 | Air-Gapped Identity via Psychoacoustic Steganography | Audio |
| PAD-014 | Robust Acoustic Provenance via Steganography | Audio |
| PAD-015 | Ambient Witness Protocol (BLE Crowdsourcing) | IoT / Provenance |
| PAD-016 | Dynamic Credential Renewal ("Heartbeat Protocol") | Identity |
| PAD-017 | Cryptographic Proof of Reasoning | AI Safety |
| PAD-018 | Model Lineage Provenance ("Birth Certificate Protocol") | AI Safety |
| PAD-019 | Transparent Agent Communication | AI Safety |
| PAD-020 | Capability Acquisition Containment | AI Safety |
| PAD-021 | Graduated Autonomy via Inverse Capability Scaling | AI Safety |
| PAD-022 | Agent Population Governance | AI Safety |
| PAD-023 | Machine-Readable Content Usage Policies in Audio Watermarks | Audio / Rights |
| PAD-024 | Temporal Perceptual Hashing for Video Provenance | Video |
| PAD-025 | Edge-First Content Provenance via Client-Side WASM | Architecture |
| PAD-026 | DID-Linked Voice Biometric Enrollment | Voice / Biometrics |
| PAD-027 | Shamir Secret Sharing of Biometric Enrollment Data | Recovery / Biometrics |
| PAD-028 | Unified Cross-Modal Identity-Bound Provenance | Multi-Modal / Identity |
| PAD-029 | Identity-Verified Communication Shield | Elder Safety / Voice |
| PAD-030 | Zero-Knowledge Reputation Portability | Privacy / Trust |
| PAD-031 | Adversarial Provenance Honeypots | Adversarial Detection |
| PAD-032 | Cryptographic Mortality Protocol | Identity Lifecycle |
| PAD-033 | ZK Proof Compression for Post-Quantum Signatures | Post-Quantum / ZKP |
| PAD-034 | Composite Threshold Aggregation for Swarm Consensus | Post-Quantum / Swarm |
| PAD-035 | Asynchronous Chunked Verification and Edge PQ Signatures | Post-Quantum / Edge |
| PAD-036 | Aggregated Reputation Scoring via Verifiable State Receipts | Trust / Enterprise |
| PAD-037 | Cross-Protocol Agent Credential Federation | Identity / Enterprise |
| PAD-038 | Decentralized Agent Capability Discovery | Discovery / Multi-Agent |
| PAD-039 | Cross-Implementation Deterministic Multi-Party Trust State via JCS | Cross-Impl Determinism |
| PAD-040 | Hybrid Composite Signature Bound to Same Canonical Bytes (Ed25519 + ML-DSA-44) | Post-Quantum / Hybrid |
| PAD-041 | Algorithm-Agnostic Verification Method Resolution via Multikey Multicodec | Verification / Multikey |
| PAD-042 | Standardized Metadata Schema for AI Agent Ledger Signatures | Metadata / Audit |
| PAD-043 | Cryptographic Weight Binding for Model-Intrinsic AI Identity | AI Identity / Model |
| PAD-044 | Ephemeral ZK-State Channels for Agentic Layer 2 Scalability | Scalability / ZK |
| PAD-045 | Proof of Non-Hallucination via Cryptographic Retrieval Anchoring | AI Safety / RAG |
| PAD-046 | Algorithm Quorum Verification via M-of-N Cryptosuite Diversity | Defense in Depth |
| PAD-047 | Verifiable Delay Functions for Cryptographic Rate-Limiting | Agent Containment |
| PAD-048 | Write-Only Async Context Ledger for LLM Coding Assistants | AI Coding / IP Protection |
| PAD-049 | Decoupled Semantic Policy Extraction via Passive Source Monitoring | AI Coding / IP Protection |
| PAD-050 | Zero-Context Deterministic Egress Interception | AI Coding / Egress Control |
| PAD-051 | Parallel Intent Extraction via Local Shadow Models | AI Coding / Local-First |
| PAD-052 | UI State Sniffing for Closed-Box AI Coding Tools | AI Coding / Compatibility |
| PAD-053 | Time-Bounded Ephemeral Rules with Auto-Expiry | AI Coding / Lifetime |
| PAD-054 | Filesystem-Hierarchy Policy Inheritance for AI Coding Workspaces | AI Coding / Composition |
| PAD-055 | Cross-Session Policy Re-Anchoring via Pre-Flight Context Replay | AI Coding / Continuity |
vouch-mcp-signerpip install vouch-mcp-signer