Clause GitHub ↗
AI-verified escrow · settled on PayPal

Payments that read the contract.

Describe a deal in plain English. Clause turns it into milestones with objective acceptance tests, holds the buyer's money on PayPal, and releases each milestone only when an AI arbiter has verified the work, for human freelancers and AI agents alike.

🧑
Buyer approves oncePayPal order · intent AUTHORIZE
🔒
Funds held, not chargedauthorization hold
⚖️
Claude verifies + spend gateevidence · confidence · red flags
✅
Seller paid per milestonepartial capture

Unearned funds return to the buyer automatically · disputes go to an AI tribunal that settles by capture or refund

Why it exists

Freelancers worry they won't get paid; clients worry about paying for work that never arrives. Escrow fixes this, but it's slow, manual, and the escrow agent can't tell whether a logo or a translation is actually done. The same problem now shows up between AI agents, which buy and sell work with no human checking the delivery. Clause makes the contract executable: the money knows what was promised and checks that it was delivered.

What it does

✍️

Contract compiler

Claude turns a chat-style deal into milestones, amounts and checkable acceptance criteria, flags dispute risks, and asks clarifying questions you can answer inline.

🔒

Funds held, not charged

One PayPal approval places an authorization hold. Each verified milestone is a partial capture; the last capture closes the hold and the rest goes back to the buyer.

⚖️

Evidence-based arbiter

Every criterion is judged with quoted evidence, using vision for images. Deliverables are treated as untrusted: prompt-injection attempts are flagged, not obeyed.

🛡️

AI proposes, code disposes

A deterministic spend gate (five checks) is the only thing that can release money automatically. You can watch each check light up on screen.

🏛️

AI dispute tribunal

Buyer and seller advocates argue in parallel; an independent judge awards a percentage, executed as a partial capture or, on appeal, a refund.

🔗

Verifiable receipts

Every event is SHA-256 hash-chained. Each paid milestone has a printable receipt tying the work's fingerprint, the verdict and the PayPal capture ID together.

🤖

Built for agents

An AI seller agent can do the work itself, and an MCP server lets any agent (Claude Desktop, Claude Code) hire, deliver and get paid through Clause.

📅

Delivery timeline

A Bryntum Gantt per deal: milestones as payment tranches coloured by money state, rescheduled automatically when the arbiter asks for a revision.

📊

Escrow analytics

An AG Studio dashboard over every pact, verdict and PayPal movement, with an AI assistant whose agents run on Claude.

See it

Live split screen with buyer and seller panes
Live split screen. Buyer and seller update together as PayPal holds and captures.
Spend gate holding funds after a prompt injection attempt
Injection blocked. The deliverable tells the AI to release funds; the spend gate keeps them held.
Verifiable escrow receipt
Verifiable receipt. Work fingerprint, verdict hash and PayPal capture ID, with the audit chain re-checked on open.
Escrow analytics dashboard built with AG Studio
Escrow analytics. Cross-filterable AG Studio dashboard with a Claude-powered assistant.
Pact page with Bryntum Gantt delivery timeline
Delivery timeline. Bryntum Gantt with money states, dependencies and at-risk flags.
Clause home page with deal composer
Deal composer. Describe the deal, compile, review and edit before anyone pays.

Screenshots taken in offline simulated-AI mode against a local PayPal stand-in; analytics data is labelled demo seed.

Built with

LayerTechnologyHow it's used
PaymentsPayPal Orders v2, Authorizations, Captures, Refunds, JS SDK (sandbox)Authorization hold, partial captures per milestone, void, reauthorize, refunds; idempotency keys on every money call
AIAnthropic Claude (claude-opus-5-5)Contract compiler, arbiter (vision), tribunal advocates and judge, seller agent; structured outputs validated with Zod
AgentsModel Context ProtocolSeven tools so external AI agents can transact through Clause
TimelineBryntum GanttPer-pact delivery timeline driven by the escrow scheduler
AnalyticsAG Studio (AG Grid)Escrow dashboard; Studio Agent Framework running on Claude
HostingRenderBlueprint deploy, AI agents as Render Workflows tasks, hourly cron sweep
AppNode.js, Express, vanilla JSNo build step; server-sent events for live updates
Clause runs against the PayPal sandbox only. No real money moves.