Architecture
How HermesBridge verifies, routes, and audits agent requests.
1. Request flow
Every request originates from an agent that has a DID registered in HermesVault. The agent signs the request body and a timestamp with its bound key before transmitting. The HermesBridge edge node receives the request, verifies the signature against the resolved DID document, checks capability claims, then routes to the appropriate provider. Cache hits skip the provider API entirely and return in under 20ms. Every request — hit or miss — produces an immutable usage log entry attributable to the specific agent DID.
2. Identity binding
Agent identity is carried in a signed JWT attached to every request via theX-Hermes-Signature header. The JWT payload includes standard claims plus HermesBridge-specific extensions. The cnf (key confirmation) claim binds the signing key to the token, and the agent_did claim is the resolvable identifier used for audit attribution.
3. Attestation tiers
| Tier | Verification | Discount | Required for |
|---|---|---|---|
| self-attested | Agent declares identity | — | Development, testing |
| runtime-signed | Known framework signs agent | 15% | Production agents |
| TEE-verified | Confidential compute attestation | 30% | Regulated workloads |
4. Supported providers
Last updated: 2026-05-19. Provider list is reviewed weekly.
5. Routing modes
The model field in a completion request accepts any of the following values. Routing constraints (cost ceiling, latency target) can be passed in the routing object.