Klero: AI agents pay exactly once on Hedera — every payment ends PAID or provably VOID.
Klero makes sure an AI agent's payment happens exactly once: it either settles one time, or it is proven that it never happened and never can.
Every agent wallet built so far stops bad payments, using limits, allowlists and scam checks. None of them answer the question that actually breaks agents: your agent sent a payment and the connection dropped, so did it pay? Retry and you might pay twice. Give up and the work never ships. It gets worse with parallel agents. Your Claude agent and your Cursor agent can both decide to buy the same transcription, and today nothing stops them.
Klero gives every agent payment exactly two possible endings: PAID once, or provably VOID. There is no third state and no guessing.

The important move is the jobKey. Every agent that works for the same human computes the same key for the same job, sha256(human | capability | input), even if they run in different apps. So three agents asking for the same thing are recognisably asking for the same thing.
Each agent posts a CLAIM to the Hedera Consensus Service, and HCS consensus order is the referee: the first valid claim wins. The losers don't buy again. They wait and receive the winner's result.
A real run on testnet, three agents linked to one Orb-verified World ID:
3 agents claim → HCS seq 10, 11, 12 → seq 10 wins → over the 1.00 FUSD cap → World ID approval
→ 2.00 FUSD paid once → Agent A: PAID_BY_OTHER · Agent B: PAID_BY_ME · Agent C: PAID_BY_OTHER
Mirror Node counter: payments = 1
The same meeting through three ordinary agents: 3 payments (0.04 + 2.00 + 2.00 FUSD), counted from Mirror Node.

In Hedera's x402 exact scheme the client builds the transfer, so we choose the transaction id before sending and give it a validity window of 120 seconds. Hedera rejects a duplicate transaction id, and it rejects a transaction whose window has passed. Those two network rules are what make a lost payment answerable:
PAID Mirror Node has the tx id with SUCCESS
FAILED Mirror Node has the tx id with another result (the money did not move)
VOID now > deadline + 45 s AND Mirror Node returns 404
UNKNOWN anything else: wait, resend the same bytes, never re-sign
VOID is a proof, not a timeout. After the deadline every node rejects those bytes as expired, and any copy sent before it would already be on Mirror Node. So a 404 after deadline + 45 s means the payment didn't happen and can't, not even if someone still holds the signed bytes. The intent is written to disk before it is sent, and retries only ever resend the identical bytes.
Agents are backed by a real human through World:
Under the cap, an agent finds the service on HCS and pays end to end with zero human steps. Above it, the payment stops and waits for a phone approval, and then that same payment settles.
One command rebuilds every job from the public HCS topic and checks each claim of payment against the ledger. It never touches our servers:
pnpm forkos audit --topic 0.0.11332888 --operator 0.0.5899352 --providers 0.0.11332881,0.0.11332882,0.0.11332883
21 jobs, 79 checks — ALL PASSED
It checks five things per job: at most one settled payment, the settlement is real on the ledger, every abandoned round is provably void, the payment came from the winner, and any refund is real.
0.0.11332887). The facilitator pays the HBAR fee, so agents don't need HBAR.forkos_replay_detected), Hedera itself (DUPLICATE_TRANSACTION), the clock (forkos_intent_expired and TRANSACTION_EXPIRED), and the VOID proof.forkos_whoami, forkos_services, forkos_buy_transcription).Stack. A TypeScript pnpm monorepo. The backend is three Fastify 5 services (API, facilitator, providers) on Postgres 16; the frontend is Next.js 16 with React 19 and TanStack Query. Ledger access is @hiero-ledger/sdk end to end, with zero Solidity files. Payments use @x402/core and @x402/hedera 2.30.0. World ID tokens are verified with jose, AgentKit signatures with viem, and every boundary is validated with Zod. The demo service is meeting transcription: OpenAI Whisper plus a short summary. It's deployed on Vercel (frontend) and Render (backend), and the test suite has about 135 tests across 15 files.
Hedera is the whole trust layer, three native services deep.
Our own facilitator. We use x402ResourceServer directly instead of the Fastify middleware, because the middleware runs the route handler before settlement. That's fine for a free API, but unsafe for a paid job. Our order is fence → verify → record → settle → re-fence → run. The facilitator also refuses any intent with less than 2 seconds of its clock left, and caps the validity window at 120 seconds.
World ID uses the Device Authorization Grant against auth.world.org. Every ID token is checked against the issuer's JWKS for iss, aud, exp, and an auth_time that is fresh and no earlier than the attempt started. Device codes are stored encrypted and never leave the backend. An over-cap approval is consumed in the same database transaction that writes the payment intent, so it can't be used twice. AgentKit is deliberately not registered as an x402 hook, so it can never change how a Hedera payment is verified or settled. It can only refuse an agent.
sequencenumber=gt:0. It's the natural way to say "read the topic from the start", but HCS sequence numbers begin at 1, so it returns HTTP 400. Three places in our own spec made this call, and we only found it by running against live testnet.links.next in a loop walked for more than 4 minutes on a busy public topic. We rebuilt the reader to be bounded and resumable, and to throw on gaps. A gap-free prefix in order is never wrong, only incomplete, so a winner can be decided without reading everything, while a gap could produce a wrong winner.authorization_pending until the code expired. The fix, sending acr_values=orb-face on the device request, was in the step-up guide rather than the device-flow guide.Every number above comes from a live testnet run, and docs/proof.md in the repo has the raw output.

