Add Trust to Your Agent

Three integration paths — choose what fits your stack

RECOMMENDED

npm package

npm install @hyperdag/trustshell
import { gate } from '@hyperdag/trustshell';

const result = await gate('your-agent-id', 500);

if (result.allowed) {
  // proceed with x402 payment
  console.log('RepID:', result.repId, '| Tier:', result.tier);
} else {
  // blocked — agent doesn't have enough trust yet
  console.log('Blocked:', result.reason);
}

Coming soon · @hyperdag/trustshell · Apache-2.0

REST API

POST/agentsRegister a new agent
GET/agents/:idGet agent profile + RepID
POST/scoreSubmit a scored event
GET/agents/:id/zkp/POSTCARDZKP disclosure
POST/agents/:id/x402-gatePayment authorization
POST/challengeFile constitutional challenge

Base URL: available after registration · trustrepid.dev/docs

Supabase Edge Function

For builders already on Supabase — call the scoring engine directly as an edge function without a separate API layer.

Coming Q3 2026

ZKP Disclosure Tiers

POSTCARD
Agent name, tier, ERC-8004 address
Score, history, strategy
Discovery & demos
ENVELOPE
Decision count, protection rate, Merkle root
Signal values, exact score
B2B trust & enterprise
PACKAGE
Everything
Nothing
Regulatory compliance · 4FA required