West African Grid Brief
Interconnect flows rebalanced after the Lagos substation upgrade, lifting cross-border capacity by an estimated 14%.
corri is open-source middleware that checks a signed agent's identity and applies your access policy (allow, deny, or charge) before your protected code runs. Add it in one line.
MIT licensed. Self-host it anywhere, read every line, no vendor lock-in, no account required.
createCorri({ agents }), then wrap your handler. The secret, issuer and policy all have sane defaults.
Cryptographic signatures (RFC 9421 / Web Bot Auth). Not IP lists or user-agent guessing.
Agents with wallets pay USDC over x402, straight to your address. Verified before your code runs.
Portable, offline-verifiable proof of who accessed what, under which terms.
~10 KB, WebCrypto, edge-ready, near-zero dependencies. 155 tests. Nothing you have to run.
A robot knocks on your door. corri checks its ID. If it's allowed in, it comes in. If it has to pay first, it pays. That's the whole integration.
import { createCorri } from "@corri/sdk/server";
// The only required field: who you trust.
export const corri = createCorri({
agents: { "research-agent.example": AGENT_PUBLIC_JWK }
});
// app/api/report/route.ts: the one line that protects it.
export const GET = corri.protect(async () =>
Response.json({ report: await loadReport() }) // runs only once authorized
);Want to charge for access? Add access: "paid", price and pay: { wallet }. Nothing else to wire.