For publishers · Testnet only for now
Get paid by the agents a person answers for.
AI agents read your pages anyway. With Herald, the ones that carry a Verified by Concordium badge can pay you per page, and everyone else keeps your free tier. I'd start you in log-only mode, so nothing is blocked until your numbers say so.
One pass, on the demo door
- The agent pays
- 7.00 CCD
- You receive
- 7.00, the full price
- The network fee
- 5.08 CCD (€0.0127), paid by Herald's sponsor
- Herald earns
- 0
Testnet CCD. No publisher has signed up yet, so the first slot is open.
01 What you get
Your door, your money.
- 01Your own payToPayments go straight to your account, not through mine.
- 02Your own priceIn testnet CCD for now. The demo door asks 7 CCD for a pass.
- 03Your own receiptsUnder your name, with an explorer link for every payment.
- 04Log-only firstHerald checks every badge it sees and tells you what it would have done, and serves your page as usual.
Where things stand today: remoteCheckEngine is log-only. It runs the free checks and records what it would have done. It never takes a payment and it doesn't gate your content. The paid lane today runs through Herald's publisher door at /api/p/<your slug>, which is Option 2 below.
02 Measured
Five attacks. Three tries each.
I ran the same five attacks three times against a naive API-key gate and against Herald's live testnet door. Here is how many each one stopped.
| Attack, tried 3 times each | Naive API-key gate: blocked | Herald on testnet: blocked |
|---|---|---|
| No badgeAsk for the protected content with no credential at all. | 3 of 3 blocked | 3 of 3 blocked |
| Revoked badgeUse a credential its owner has already revoked. | 3 of 3 blocked | 3 of 3 blocked |
| Stolen or replayed proofUse someone else's credential: a copied API key, or a copied badge with a real payment signed by a different wallet. | 0 of 3 blocked | 3 of 3 blocked |
| Fake paymentPresent a forged payment or a made-up credential. | 3 of 3 blocked | 3 of 3 blocked |
| Badge owner mismatchAct as an owner you are not: a copied key used by other people, or another account's proof replayed for a badge you hold. | 0 of 3 blocked | 3 of 3 blocked |
| All five | 9 of 15 blocked | 15 of 15 blocked |
- Blocked means the attacker did not get the protected content.
- The naive gate is what most APIs run today: a table of API keys, one of them revoked. It checks that the key exists and nothing else. It is a small server written for this test, in scripts/attacks.ts.
- The stolen badge row uses Herald's demo runner, which signs a real testnet payment from a different wallet than the badge's. Herald refuses it and no money moves.
- Not covered: a copied pass. A pass is a ticket, so whoever holds one can use it until it expires or runs out (15 minutes or 50 requests), and it stops working if the badge is revoked.
- Run on 03 Dec 2026 08:32 UTC against https://useherald.vercel.app, with no errored attempts. Raw results: docs/attacks.json. Run it again with
pnpm attacks.
Option 1
The package, in your own server
npm i herald-door (on npm). The free checks go to Herald's public /api/check; no keys. This is log-only: use it to see which badges visit you.
// app/api/posts/[slug]/route.ts
import { heraldDoor, remoteCheckEngine } from "herald-door";
const door = heraldDoor({
engine: remoteCheckEngine({ base: "https://useherald.vercel.app" }),
priceMicroCcd: 7_000_000, // 7 testnet CCD
payTo: "<your testnet account>",
mode: "log-only", // watch first, block nobody
});
export const GET = door.next(async (_req, ctx: { params: Promise<{ slug: string }> }) => {
const { slug } = await ctx.params;
const post = await loadPost(slug);
return post ? { name: `posts:${slug}`, description: post.title, produce: async () => post } : null;
});import { heraldDoor, remoteCheckEngine } from "herald-door";
const door = heraldDoor({
engine: remoteCheckEngine({ base: "https://useherald.vercel.app" }),
priceMicroCcd: 7_000_000,
payTo: "<your testnet account>",
mode: "log-only",
onDecision: (d) => console.log(d.resource, d.badge, d.badgeValid),
});
app.get("/posts/:slug", door.express((req) => {
const post = loadPost(req.params.slug);
return post ? { name: `posts:${req.params.slug}`, description: post.title, produce: async () => post } : null;
}));Option 2
Herald in front of your site, no code (the paid lane)
Herald can sit in front of your site as a reverse proxy at /api/p/<your slug>/…. Admitted requests are forwarded to your site; refused ones never reach it. Fill this in, then DM @levithefirst on X with the entry it makes. Nothing is sent from this page.