Put it on the path
Point agent-to-agent calls at your gateway address. kepalai checks the call, adds a short-lived signed token, and forwards it. Your agents verify that token in a few lines, so nothing reaches them without passing the rules.
import { kepalaiAuth } from '@kepalai/verifier/hono';
app.use('/a2a/*', kepalaiAuth({
issuer: 'https://app.kepalai.com',
agentId: process.env.KEPALAI_AGENT_ID,
}));