Node / TypeScript SDKs
The MerchantGuard family is published to npm under the @merchantguard scope. Every SDK is fully typed, tree-shake friendly, and works in Node 20+ (most also work in modern browsers).
Main SDK — install once, compliance everywhere
npm install @merchantguard/guardIncludes GuardScore, 14 AI compliance coaches, PSP matching, alerts, GuardScorePassport, wallet verification.
AgentGuard™ Chargeback
npm install @merchantguard/agentguard-cbOpen-source CE 3.0 evidence assembly SDK. See /docs/products/agentguard-cb.
Sentinela (Node)
npm install @merchantguard/sentinelaConversational intent firewall. Includes Sentinela class plus Express middleware for Twilio WhatsApp, Meta Cloud API, and Telegram Bot API. Fail-open by default. Zero runtime dependencies (uses native fetch).
Mystery Shopper (CLI / library)
npx @merchantguard/mystery-shopper https://your-agent.example.comProbe Handler
npm install @merchantguard/probe-handlerDrop-in handler for receiving Mystery Shopper probes inside your own agent. Express, Fastify, and bare HTTP handler shapes available.
GuardScan (CLI)
npx @merchantguard/guardscan .Cloudflare LLM Firewall (Worker)
npm install @merchantguard/cloudflare-llm-firewallEdge-runtime LLM firewall, deploy as a Cloudflare Worker.
Common patterns
- All SDKs use sk_live_ API keys with SHA-256 hashed verification on the server side.
- Generate keys at /developers (Privy login). Keys are shown ONCE.
- Tier rate limits: FREE 1K req/60s, DEVELOPER 10K, PRO 50K, ENTERPRISE 200K.
- Errors are typed: SentinelaAuthError, SentinelaRateLimitError, etc.

