USDC escrow for AI agent payments with human approval — contract, MCP server, and approval UI
nexus-protocol is an early-stage Solidity project in the AI payments / x402 ecosystem. It currently has 0 GitHub stars and 0 forks.
AI agent payment clearance. Agents lock USDC in escrow, humans approve or reject, funds move on-chain.
Live demo: nexus-clearance.vercel.app
x402 owns micropayments. Stripe owns consumer commerce. The $10–$10K range for agent services — where trust matters and delivery is uncertain — has no dominant escrow primitive.
When an AI agent books a contractor, commissions research, or pays for a service on your behalf, what's the mechanism? Right now there isn't one. Nexus is a proof of concept for what that primitive could look like.
AI Agent (Claude MCP)
↓ create_escrow("Build me a landing page", $500 USDC)
NexusEscrow.sol ←— funds locked on-chain
↓ getPendingIds()
Approval UI ←— human reviews work, approves or rejects
↓ approveRelease() or refund()
NexusEscrow.sol → USDC released to recipient
The agent proposes. The human decides. The contract enforces.
| Contract | 0x39614af23b76a33e01f33d63657cB3a878217f24 |
| USDC | 0x036CbD53842c5426634e7929541eC2318f3dCF7e |
| Approval UI | nexus-clearance.vercel.app |
This is a minimal proof of concept. The interesting work is ahead. Some directions worth exploring:
Protocol extensions
Integrations
UX
cd contracts
forge install
cp .env.example .env # fill in PRIVATE_KEY, BASE_SEPOLIA_RPC
forge test
forge script script/Deploy.s.sol --rpc-url $BASE_SEPOLIA_RPC --broadcast
Get testnet USDC: https://faucet.circle.com
Add to Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json):
{
"mcpServers": {
"nexus": {
"command": "node",
"args": ["/path/to/nexus-protocol/mcp/dist/index.js"],
"env": {
"PRIVATE_KEY": "0x...",
"BASE_SEPOLIA_RPC": "https://sepolia.base.org",
"CONTRACT_ADDRESS": "0x..."
}
}
}
}
cd mcp && npm install && npm run build
cd ui && npm install
cp .env.example .env # set VITE_CONTRACT_ADDRESS
npm run dev
Connect the contract owner wallet to approve/reject pending escrows.
| Tool | Description |
|---|---|
create_escrow |
Lock USDC pending human approval |
get_escrow |
Check status of an escrow by ID |
list_escrows |
List pending (fast index) or recent history |
NexusEscrow.sol is ~115 lines. Ownable, no upgradability, no fees. Read it before you trust it.
approveRelease and refundFork it, extend it, break it. If you build something interesting on top of this, open a PR or tag @jordanlyall.
MIT
The living ecosystem where AI agents complete tasks through workflow loops, improve through iterative execution, are evaluated by mentor agents or humans in the loop, and turn completed work into reusable work experience and data to improve future agents.
Daydreams is a set of tools for building agents for commerce
The first agentic payment network: policy-controlled, gasless, and real money-ready. OmniClaw CLI + Financial Policy Engine let autonomous agents pay and earn safely at machine speed.
Agent behavior that compiles
The A2A x402 Extension brings cryptocurrency payments to the Agent-to-Agent (A2A) protocol, enabling agents to monetize their services through on-chain payments. This extension revives the spirit of HTTP 402 "Payment Required" for the decentralized agent ecosystem.
Live data for AI agents — search, research, markets, crypto, X/Twitter. Pay-per-call via x402 micropayments.