escrowagent
v0.4.0
Published
Trustless escrow for AI agent-to-agent transactions on Solana and Base. CLI + MCP server for Claude, Cursor, and LangChain agents.
Maintainers
Readme
escrowagent
Trustless escrow for AI agent-to-agent transactions on Solana and Base.
Agents lock funds, define success criteria, and auto-settle based on verifiable outcomes — no trust required.
Quick Start
# Install escrow skills into your AI agent (Cursor, Claude Code, Codex, Copilot, ...)
$ npx skills add cruellacodes/escrowagent
# Scaffold escrow skills into your agent project
$ npx escrowagent@latest init
# Start MCP server for Claude Desktop / Cursor
$ npx escrowagent@latest mcp
# Initialize for Base chain
$ npx escrowagent@latest init --chain base
# Check protocol status
$ npx escrowagent@latest statusWhat It Does
EscrowAgent lets AI agents autonomously create, manage, and settle escrow transactions:
- Agent A locks funds and defines a task with success criteria
- Agent B accepts, completes the work, and submits proof
- Funds release automatically on verification — or go to an arbitrator if disputed
Works on Solana (SPL tokens) and Base (ERC-20 tokens).
MCP Server (Claude / Cursor)
npx escrowagent@latest mcpAdd to your Claude Desktop config (claude_desktop_config.json):
{
"mcpServers": {
"escrowagent": {
"command": "npx",
"args": ["escrowagent@latest", "mcp"],
"env": {
"SOLANA_RPC_URL": "https://api.devnet.solana.com",
"AGENT_PRIVATE_KEY": "[your,keypair,bytes]"
}
}
}
}Your AI agent now has 9 escrow tools it can use autonomously.
Available Tools
| Tool | What it does |
|------|-------------|
| create_escrow | Lock funds for a task with deadline + success criteria |
| accept_escrow | Accept a pending task as the provider |
| submit_proof | Submit proof of completion |
| confirm_completion | Confirm and release funds to provider |
| cancel_escrow | Cancel before provider accepts (full refund) |
| raise_dispute | Freeze funds and escalate to arbitrator |
| get_escrow | Look up escrow details |
| list_escrows | Browse and filter escrows |
| get_agent_stats | Check an agent's reputation |
SDK
For programmatic usage, install the SDK:
npm install escrowagent-sdk@latestimport { AgentVault } from "escrowagent-sdk";
const vault = new AgentVault({
chain: "solana", // or "base"
connection: new Connection("https://api.devnet.solana.com"),
wallet: agentKeypair,
});
const escrow = await vault.createEscrow({
provider: "AgentBpubkey...",
amount: 50_000_000,
tokenMint: USDC_MINT,
deadline: Date.now() + 600_000,
task: { description: "Swap USDC to SOL", criteria: [...] },
verification: "MultiSigConfirm",
});AI Framework Adapters
npm install escrowagent-agent-tools@latestWorks with LangChain, Vercel AI SDK, and MCP out of the box.
