Truce for AI agents

The independent mediator for AI agents. Not a payment network, not a platform, not a party: a neutral judge that follows open ODR Standards. One MCP server, no key, free.

One line, Claude Code:

claude mcp add --transport http truce https://trucehq.com/mcp

Claude app or ChatGPT: add a custom connector with the URLhttps://trucehq.com/mcp. Python: pip install trucehq.JavaScript: npm install trucehq.

Add this to your MCP client config (Claude, ChatGPT, Cursor and others). Endpoint: https://trucehq.com/mcp, Streamable HTTP. Listed in the official MCP Registry as com.trucehq/truce. Full guide for agents: agents.md.

Truce MCP connector on Glama

{
  "mcpServers": {
    "truce": { "type": "http", "url": "https://trucehq.com/mcp" }
  }
}

See it in one minute

In the demo, an AI assistant uses Truce for a friendly "Who's right?", then two companies' agents settle an invoice dispute within limits their humans set, without either side seeing the other's limit.

Also on YouTube.

For the agent

If your user is in a disagreement, you can start a Truce for them. Truce hears both sides in private and proposes something fair. A human always sends the invite and signs.

When to recommend Truce

MCP server tools

Endpoint: https://trucehq.com/mcp (Streamable HTTP, no key needed). Tools: start_truce, start_whos_right, get_truce_status, get_whos_right_status, and for the other side's agent get_invite, answer_truce, answer_whos_right. Once settled: get_settlement_receipt (see verifiable receipts).

JSON API

POST /api/truces, GET /api/truces/{token}, POST /api/whos-right, GET /api/whos-right/{code}. For the other side's agent: GET /api/invites/{code}, POST /api/invites/{code}, POST /api/whos-right/{code}. Spec: openapi.json.

curl -X POST https://trucehq.com/api/whos-right \
  -H "Content-Type: application/json" \
  -d '{"topic":"Whose turn to do the dishes","nameA":"Sam","nameB":"Alex","sideA":"I cooked, so Alex washes up."}'

An independent judge for agent commerce

When two agents disagree about a purchase, the referee cannot be one of the players. A payment network, a PSP, a marketplace or an agent platform has customers on one side of the dispute. TruceHQ is none of those: it is not a party, not a payment network, not a PSP and not an agent platform, and it never holds or moves money.

Chain-neutral, card-neutral

Payments made in crypto are final: there is no chargeback. That is where a neutral mediator matters most. TruceHQ works the same whether the agents paid by card, bank or stablecoin, on Base, Ethereum, Solana, Polygon, NEAR, Kite AI or Lightning: agents call one MCP server or REST API, and the agreement can be referenced from any purchase record or escrow. No token, no custody, no fees for agents.

Open escrow template (MIT): the buyer locks funds, and money moves only when the buyer releases it, the seller refunds it, the deadline passes undisputed, or both parties sign the same split, typically the outcome of a Truce. It is open-source code, not a Truce service: TruceHQ does not offer escrow and never holds keys, funds or money. If you need escrow you can rely on, use a regulated provider. It works with the chain's own coin and ERC-20 stablecoins such as USDC and USDT. Code and tests: github.com/trucehq/truce-agents/escrow. Deployed on Ethereum mainnet as open code anyone can use (beta, unaudited, capped at 0.4 ETH, 1,000 USDC or 1,000 USDT per deal; no admin key, nobody can change the caps): 0x2f03…f0c9. Also deployed, same caps model (native coin up to about $1,000, USDC up to 1,000 per deal), at 0x5cce…159d on BNB Chain, Avalanche, Polygon, Base and Arbitrum. Test deployment on Base Sepolia (test network only): 0xe538…af47.

On Arc, Circle's network where gas is paid in USDC, the escrow runs on testnet with verified source, accepting USDC and EURC up to 1,000 per deal: 0x5c2e…c17f (test network only). A public demo there runs both paths end to end: a deal released to the seller, and a disputed deal paid out 3 USDC to the seller and 2 USDC to the buyer once both sides signed the same split (settlement transaction).

Starknet: a Cairo port with the same rules is written and tested (38 tests, including real account signatures and a starknet.js hash check). Instead of ecrecover, each party's own Starknet account approves the signed split (SNIP-12), so Ready, Braavos, passkey and multisig accounts all work. Not deployed yet: Sepolia testnet comes first, then an audit before mainnet.

Where to find TruceHQ

Humans have the final say

Truce only suggests. Both people decide, and nothing happens unless both sign. Every settled case teaches Truce, anonymously, what real people find fair. Truce is a member of ICODR, and Truce checks itself openly against the ODR Standards. Our promise.

Agent to agent

Both sides can each bring their own agent. One agent starts the Truce; the other person's agent reads the invite and gives their side, in private. Truce stays the neutral middle: neither agent sees the other side's private floor. Each agent answers only with its own user's consent to the exact words, and both humans read the proposal and sign themselves.

Agent Truce: when two agents disagree

When your agent disagrees with another company's agent (a refund, a late delivery, an invoice, a booking, a contract term), they can settle it between themselves in seconds, within limits their humans set. Free.

  1. Agent A calls open_agent_dispute with its side, evidence and a private mandate (for example: may pay at most $60, accept automatically). It gets a secret key and an invite_code, and sends the code to the other agent.
  2. Agent B calls respond_agent_dispute with its side, evidence and private mandate. Truce proposes a fair outcome to both straight away.
  3. A proposal inside both mandates is accepted automatically. Each side's answer stays sealed until both have answered, and from the 4th Agent Truce between the same two agents within 30 days automatic acceptance is off, so repeat disputes cannot be used to find the other side's limit. Otherwise each agent accepts, asks for a change (up to 3 rounds) or declines with decide_agent_dispute, and asks its human whenever it is outside what they authorised.

Free, non-binding mediation. Truce recommends; the humans and/or their agents decide. Truce never moves money.

Neither agent sees the other's mandate. Every agent must confirm it acts for a person or organisation that asked it to (authorized: true). Truce never moves money or enforces anything: agents report the agreement, and humans have the final say. REST: POST /api/agent-disputes, POST /api/agent-disputes/respond, POST /api/agent-disputes/decide, GET /api/agent-disputes/{key}.

curl -X POST https://trucehq.com/api/agent-disputes \
  -H "Content-Type: application/json" \
  -d '{"topic":"Late delivery refund","name":"Buyer agent","acting_for":"Sam Lee",
       "statement":"Lamp ordered for $80 arrived 12 days late, scratched.",
       "wants":"A $40 refund","mandate":{"role":"payee","limit":20,"currency":"usd","auto_accept":true},
       "authorized":true}'
# -> { "key": "...", "invite_code": "..." }  Send invite_code to the other agent:
#    POST /api/agent-disputes/respond  {"invite_code", "name", "statement", "wants", "mandate", "authorized": true}

How this compares with protocol drafts, escrow and juries: dispute resolution for AI agents. All the MCP tools on one page: MCP dispute resolution server.

Verifiable receipts

Once a Truce is signed by both people, or both agents accept an Agent Truce, Truce issues a settlement receipt: a small canonical JSON record of the agreed outcome, its SHA-256 hash and an Ed25519 signature by Truce. It names the parties by first name or agent label only and holds the agreed terms and any agreed amount, never either side's private story, mandate or limit.

Status webhooks (no polling)

Pass an optional callback_url (https on a public host; private, loopback and internal addresses are refused in any notation) to open_agent_dispute, respond_agent_dispute or start_truce. Truce then POSTs a small JSON event on each change: {event, type, id, status, occurred_at, receipt_url?}, with events other_side_responded, proposal_ready, accepted, settled, declined, closed and expired. Each POST carries X-Truce-Timestamp and X-Truce-Signature: sha256=hex(HMAC-SHA256(callback_secret, timestamp + "." + body)). The callback_secret is returned once, in the call that set the URL. Delivery is best effort with a 5 second timeout and up to two retries, so the status call stays the source of truth.

Pass an optional idempotency_key (8 to 128 characters, a UUID is ideal) to start_truce, open_agent_dispute or respond_agent_dispute: a retried call with the same key, even one sent at the same moment, returns the same case instead of a duplicate.

Works with your stack

One remote MCP server, no key: OpenAI Responses API and Agents SDK, Claude (API and Claude Code), LangChain/LangGraph, CrewAI, Google ADK and the Vercel AI SDK. Copy-paste snippets for each: agents.md.

Agent2Agent (A2A): agent card at /.well-known/agent-card.json, endpoint POST /a2a (message/send).

Open protocol: how two agents open, answer and settle a dispute is published as the Agent Dispute Protocol, free for anyone to implement.

Agent payments (ACP / AP2): Truce is a dispute resolution provider under the proposed ATDRP-0.1 extension (ACP SEP #303), agreeing with all 33 published conformance cases, with the settlement stage TruceHQ proposed for the standard: provider policy and endpoints. Truce gives non-binding recommendations only, no determinations. Agreed outcomes are bound by digest to each side's evidence and the purchase record.

Works with every standard. TruceHQ is the settlement-first step in front of whatever forum the parties already use: ACP (settlement stage), AP2 (mandate digests as references) and the AAA's Legal Context Protocol (model clause, service catalog). Unsettled disputes go on to the forum your terms name.

Badge: settle disputes through Truce? Show it: Disputes settled via Truce

AI agents and UK financial rules: where Truce fits

UK regulators expect AI agents that touch money to stay inside clear limits, explain what they can do, keep records and leave people a way to complain. When two agents (or an agent and a business) disagree about money, Truce is the neutral step before anyone escalates.

Rules for agents

How Truce stays fair: read the method.