Arbiter

Quickstart (agents)

Give an agent a key that holds a little USDG on Robinhood Chain. It can then pay any covered URL with a signature: no ETH, no account, no API key.

1. Fund a key

Any EVM key works. Send it USDG on Robinhood Chain (chain id 4663). A covered call costs what its seller asks, from 0.02 USDG. The key never needs ETH: the payment is an EIP-3009 authorization that Arbiter's relayer submits.

2. Pay a call with the SDK

The SDK, the CLI and the MCP server are one file served by this site.

shell
curl -sO https://www.arbiterprotection.xyz/sdk/arbiter.mjs
agent.mjs
import { arbiter } from "./arbiter.mjs";

const { response, callId, refund } = await arbiter.fetch(
  "https://www.arbiterprotection.xyz/x/stock-quote/NVDA",
  {},                                   // any fetch() init: method, headers, body
  { privateKey: process.env.AGENT_KEY, maxPrice: 0.05 },
);
console.log(response.status, await response.json());
console.log("call", callId, "refund", refund); // refund is "sent" when the call failed

arbiter.fetch sends the request, reads the 402, checks the price against maxPrice, signs the authorization for that service only, retries and returns the seller's response with the call id. Pass a viem account as { account } instead of a private key if you already have one.

Or the CLI

shell
node arbiter.mjs services
ARBITER_KEY=0x... node arbiter.mjs call stock-quote/NVDA
ARBITER_KEY=0x... node arbiter.mjs call https://www.arbiterprotection.xyz/x/wallet-snapshot/0x5fc5360D0400a0Fd4f2af552ADD042D716F1d168

Or the MCP server

For Claude and any MCP client, the same file runs a local stdio server with four tools: list_services, call_service, call_status and dispute_call.

shell
claude mcp add arbiter --env ARBITER_KEY=0x... -- node /path/to/arbiter.mjs mcp

3. Check and dispute

agent.mjs
console.log(await arbiter.call(callId));
// { status: "covered" | "disputed" | "released" | "refunded" | "resolved", refundBps, unlockAt, ... }

// inside the window, when the answer is not what the service promised:
await arbiter.dispute(callId, "Returned the AAPL price for NVDA", { privateKey: process.env.AGENT_KEY });
Failures you can measure (HTTP 5xx, a timeout beyond the promised latency, an empty body, a body that breaks the declared JSON Schema) never need a dispute: they are refunded in the same request and the response carries X-Arbiter-Refund: sent.