简介
Vouch
原始描述
Signs, verifies, and manages cryptographic identity for AI agents using the Vouch CLI on Base. Use when an agent needs to: set up identity and register an ac...
通过你的 Agent 添加
安装目录:vouch-cli/(目录名取自 SKILL.md 的 frontmatter name,不是 URL 里的 slug)。
点「快速安装」复制一段指令贴给你的 Agent:它会先下载到 /tmp、把文件清单和校验值给你看,你确认之后才解压安装。不会一步装完、也不改系统其它位置。
或者手动安装
包是「根级 SKILL.md + 作者附带的文件」,解压到上面的 <slug>/ 目录即可;
目录名不用换,也不要把包直接解压到 skills 根目录。
技能申请的权限由作者决定:装之前先看清单里有没有脚本、它会读写什么。
技能正文
name: vouch-cli
description: >-
Signs, verifies, and manages cryptographic identity for AI agents using the
Vouch CLI on Base. Use when an agent needs to: set up identity and register
an account; link social identities via X, GitHub, or DNS; cryptographically
sign outbound messages with EIP-712 envelopes; verify inbound signed messages
against onchain identity records; send verified messages to other agents;
receive and process incoming verified messages; scaffold, test, and deploy
OpenAI-powered agents; look up agents by identity or capability; manage
runtime key delegations and trust allowlists; manage account usage, API keys,
and billing; or publish agent endpoints to the onchain directory.
compatibility: Requires the vouch binary on PATH and jq for JSON processing
allowed-tools: Bash(vouch:) Bash(jq:)
metadata:
author: vouch
version: "1.0.0"
Vouch CLI
Vouch provides verifiable identity for AI agents on Base. Agents register an account, create an identity wallet, link social accounts (X, GitHub, or DNS), and delegate short-lived runtime keys. Messages are signed as EIP-712 envelopes and verified against the VouchHub smart contract via a subgraph index.
Account (email + API key) ──manages──> Wallet (identity)
│
┌────────────────────────────────────┤
▼ ▼
Linked Identities Runtime Key (delegated, scoped)
(X, GitHub, DNS) │
└──sign──> Envelope (EIP-712)
│
Recipient ──verify──> Subgraph
│
✓ signer → wallet → linked identities
Install
curl -fsSL https://vouch.directory/install.sh | bash
curl -fsSL https://vouch.directory/install.sh | bash
Verify: vouch --version
Global flags
--json — JSON output (auto-enabled when piped)
--config <path> — Config file (default ~/.vouch/config.toml)
--network <base-sepolia|base> — Network override
Onboarding
Full setup wizard
--json — JSON output (auto-enabled when piped)--config <path> — Config file (default ~/.vouch/config.toml)--network <base-sepolia|base> — Network overrideFull setup wizard
vouch init walks through complete onboarding: register an account, generate a wallet, link a social identity, and delegate a runtime key.
vouch init
Re-initialize an existing setup:
vouch init --force
This is the recommended first command. It handles everything needed to start signing and verifying messages.
Register an account
Create an account and get an API key (standalone, for CI/scripting):
vouch --json register --email agent@example.com
Output:
{
"account_id": "uuid-...",
"api_key": "vk_...",
"tier": "free"
}
Flags: --email <address> (required)
Log in on a new machine
Set an existing API key:
vouch login --api-key vk_...
Flags: --api-key <vk_...> (required). Validates against the API before saving.
Link identities
Vouch supports three identity providers. Each links a social account or domain to your onchain wallet.
Link X (Twitter)
Interactive mode opens the browser for OAuth:
vouch link-x
Pipe mode for scripting:
vouch --json link-x --wallet-key 0xKEY --attestation '{"provider":1,...}'
Flags: --wallet-key <hex>, --attestation <json>
Link GitHub
vouch link-github
vouch link-github
Pipe mode:
vouch --json link-github --wallet-key 0xKEY --attestation '{"provider":2,...}'
Flags: --wallet-key <hex>, --attestation <json>
Link a domain via DNS
Interactive mode requests a DNS challenge, shows the TXT record to add, then verifies:
vouch link-dns
Pipe mode:
vouch --json link-dns --wallet-key 0xKEY --domain example.com
Flags: --wallet-key <hex>, --domain <domain>
Revoke a linked identity
vouch --json revoke-link --wallet-key 0xKEY --provider x
vouch --json revoke-link --wallet-key 0xKEY --provider x
Flags: --wallet-key <hex> (required), --provider <x|github|dns> (required)
Refresh cached X handle
vouch --json refresh-handle
vouch --json refresh-handle
Flags: --wallet <address> (optional, defaults to config)
Output:
{
"wallet": "0x...",
"old_handle": "old_name",
"new_handle": "new_name",
"changed": true,
"updated_at": "2026-02-23T12:00:00Z"
}
Sign outbound messages
Wrap any JSON payload in a signed EIP-712 envelope:
vouch --json sign --payload '{"msg":"hello from agent"}'
Pipe payload via stdin:
echo '{"task":"summarize","doc_id":"abc"}' | vouch --json sign
With explicit runtime key and custom expiry:
vouch --json sign --key 0xRUNTIME_KEY --payload '{"msg":"hello"}' --expiry 1h
Output:
{
"envelope": {
"v": 1,
"agent_id": "0x...",
"signer": "0x...",
"ts": 1760000000,
"exp": 1760003600,
"nonce": "0xa1b2c3d4e5f6",
"payload_hash": "0x...",
"sig": "0x..."
},
"payload": {"msg": "hello from agent"}
}
Flags: --payload '<json>' (or stdin), --key <address>, --scope <text>, --expiry <duration>
Verify inbound messages
Checks signature, expiry, nonce replay, payload hash, delegation status, and allowlist:
echo "$SIGNED_JSON" | vouch --json verify
From explicit JSON:
vouch --json verify --envelope '{"envelope":{...},"payload":{...}}'
From a remote endpoint:
vouch --json verify --url https://agent.example.com/latest-signed
Output:
{
"valid": true,
"signer": "0x...",
"identities": [
{"provider": 1, "provider_label": "alice"},
{"provider": 2, "provider_label": "alice-gh"}
],
"scope": "messaging",
"scope_matched": true,
"failure_reason": "",
"allowlist_checked": false,
"allowlist_skipped": false,
"checked_at": "2026-02-23T12:00:00Z"
}
The failure_reason field explains why verification failed when valid is false. The identities array lists all linked identities for the signer.
Flags: --envelope '<json>', --url <endpoint>, --skip-allowlist
Send verified messages
Sign a payload and POST it to another agent's endpoint:
vouch --json send --payload '{"task":"summarize","doc_id":"abc"}' --url https://agent.example.com/vouch
Resolve the endpoint from the onchain directory by wallet:
vouch --json send --payload '{"task":"deploy"}' --wallet 0xTARGET_WALLET
Pipe payload via stdin:
echo '{"task":"analyze"}' | vouch --json send --url https://agent.example.com/vouch
Output:
{
"endpoint": "https://agent.example.com/vouch",
"accepted": true,
"message": "task received",
"error": ""
}
Flags: --payload '<json>' (or stdin), --url <endpoint> or --wallet <address> (mutually exclusive), --key <address>, --scope <text>, --expiry <duration> (default 1h)
Receive verified messages
Run an HTTP server that accepts, verifies, and processes signed envelopes:
vouch receive --port 8080 --handler ./process.sh
With allowlist enforcement and rate limiting:
vouch receive --port 8080 --handler ./process.sh --allowlist --rate-limit 10
The server listens on /vouch and / (POST only). Each incoming message is verified cryptographically before being passed to the handler.
Handler input (JSON on stdin):
{
"sender": {
"agent_id": "0x...",
"signer": "0x...",
"identities": [
{"provider": 1, "provider_label": "alice"}
]
},
"payload": {"task": "summarize", "doc_id": "abc"},
"verified_at": "2026-02-23T12:00:00Z"
}
The handler's stdout becomes the response message. If no handler is provided, verified messages are printed to stdout as newline-delimited JSON.
Response format:
{"accepted": true, "message": "task received"}
Flags: --port <int> (default 8080), --handler <script>, --allowlist, --rate-limit <float> (requests/sec/IP, default 0 = unlimited)
Agent scaffolding
Create, run, and deploy OpenAI-powered agents that communicate using Vouch envelopes.
Create an agent
Interactive wizard that generates a ready-to-deploy agent project:
vouch agent create
Prompts for: agent name, description, language (Node.js or Python), model, OpenAI API key, and port. Creates the project at ~/.vouch/agents/<name>/.
Run locally
vouch agent start my-agent
vouch agent start my-agent
Starts vouch receive with the agent's handler and port. The agent listens for verified messages and processes them with the configured OpenAI model.
Deploy to Vercel
vouch agent deploy my-agent --prod
vouch agent deploy my-agent --prod
Requires the Vercel CLI (npm i -g vercel). Deploys the agent and prints the live endpoint URL. Use --prod for production (default is preview).
After deploying, publish the endpoint to the directory:
vouch publish --wallet-key 0xKEY --endpoint https://my-agent.vercel.app/api/vouch --capabilities "chat,summarize"
Look up identities and agents
vouch --json lookup @alice # by X handle
vouch --json lookup --wallet 0x... # by wallet address
vouch --json lookup --xid 123 # by X user ID
vouch --json lookup --key 0xRUNTIME_KEY # find who delegated a key
vouch --json lookup --capability chat # search agent directory
vouch --json lookup @alice # by X handle
vouch --json lookup --wallet 0x... # by wallet address
vouch --json lookup --xid 123 # by X user ID
vouch --json lookup --key 0xRUNTIME_KEY # find who delegated a key
vouch --json lookup --capability chat # search agent directory
Output:
{
"mode": "handle",
"query": "@alice",
"found": true,
"profile": {
"wallet": "0x...",
"identities": [
{"provider": 1, "provider_label": "alice", "revoked": false},
{"provider": 2, "provider_label": "alice-gh", "revoked": false}
]
},
"delegations": [
{
"runtime_key": "0x...",
"expires_at": "1760086400",
"scope": "messaging"
}
],
"agents": [
{
"endpoint": "https://agent.example.com/api",
"capabilities": ["chat", "verify", "summarize"]
}
]
}
Check current identity
vouch --json whoami # full identity summary (network call)
vouch status # local config only (no network)
Manage delegations
vouch --json whoami # full identity summary (network call)
vouch status # local config only (no network)
Create a new runtime key delegation:
vouch --json delegate --wallet-key 0xKEY --expiry 24h --scope messaging
Renew an existing delegation with the same settings:
vouch --json delegate --wallet-key 0xKEY --renew
Output:
{
"runtime_key": "0x...",
"expires_at": 1760003600,
"scope": "messaging",
"tx_hash": "0xdef..."
}
Constraints: max 30-day expiry, max 5 delegations per minute.
Revoke a specific key:
vouch --json revoke-key --wallet-key 0xKEY --key 0xRUNTIME_KEY
Flags: --key <address|hex>, --expiry <duration> (default 24h), --scope <text>, --wallet-key <hex>, --renew
Publish agent capabilities
Register an endpoint and capabilities in the onchain agent directory:
vouch --json publish \
--wallet-key 0xKEY \
--endpoint https://agent.example.com/api \
--capabilities "chat,verify,summarize"
Manage trust allowlist
When the allowlist has entries, vouch verify and vouch receive --allowlist only accept messages from listed agents.
vouch allowlist add 0xWALLET @alice --note "trusted partner"
vouch allowlist list
vouch allowlist remove @alice
Account and billing
Check usage
vouch --json account
Output:
{
"period": "2026-02",
"verify_calls": 142,
"verify_limit": 1000,
"relay_transactions": 3,
"relay_limit": 10,
"tier": "free"
}
List API keys
vouch --json account keys
Check billing status
vouch --json account billing
Tier reference
Free
Paid (usage-based)
Verify calls
1,000/month
$0.0025 each
Relay transactions
10/month
$0.05 each
vouch --json account keys
vouch --json account billing
Tier reference
Free
Paid (usage-based)
Verify calls
1,000/month
$0.0025 each
Relay transactions
10/month
$0.05 each
| Free | Paid (usage-based) | |
|---|---|---|
| Verify calls | 1,000/month | $0.0025 each |
| Relay transactions | 10/month | $0.05 each |
Manage billing at https://vouch.directory/dashboard/billing or upgrade via the dashboard.
Recipes
Full onboarding for a new agent:
vouch init
Sign-then-verify round trip:
vouch --json sign --payload '{"action":"deploy"}' \
| vouch --json verify \
| jq '{valid, signer, identities}'
Send a verified message to another agent:
vouch --json send --payload '{"task":"summarize","doc_id":"abc"}' --url https://agent.example.com/vouch
Agent-to-agent round trip:
# Terminal 1: start receiver
vouch receive --port 9090 --handler ./echo.sh
# Terminal 2: send verified message
vouch --json send --payload '{"msg":"hello"}' --url http://localhost:9090/vouch
Scaffold, test, and deploy an agent:
vouch agent create
vouch agent start my-agent
# test locally, then deploy:
vouch agent deploy my-agent --prod
vouch publish --wallet-key 0xKEY --endpoint https://my-agent.vercel.app/api/vouch --capabilities "chat,summarize"
Start a receiver with allowlist and rate limiting:
vouch receive --port 8080 --handler ./process.sh --allowlist --rate-limit 10
Batch verify from file:
while IFS= read -r line; do
echo "$line" | vouch --json verify | jq -c '{valid, signer}'
done < envelopes.jsonl
Check usage before heavy operations:
vouch --json account | jq '{verify_calls, verify_limit, tier}'
Find agents by capability:
vouch --json lookup --capability chat | jq '.agents[]'
Link an additional identity after setup:
vouch link-github
Sign, send, and verify in a pipeline:
SIGNED=$(vouch --json sign --payload '{"task":"deploy","id":"cr-42"}')
echo "$SIGNED" | curl -s -X POST -H "Content-Type: application/json" -d @- https://recipient.example.com/inbox
Teardown
Revoke onchain identity and delete all local state:
vouch --json teardown --wallet-key 0xKEY
Local-only cleanup (skip onchain revocation):
vouch --json teardown --force
正文来自原始发布页, 版权归作者所有,许可未标注。 权利人认为有不妥,可申请下架。