Skip to main content

Installation

  • Package: @samvad-protocol/sdk
  • Node: 20+
  • Module format: ESM-only ("type": "module")
  • Dependencies: fastify, zod, @noble/ed25519, jose

What the SDK handles automatically

You write a handler. The SDK handles everything else:

Core API surface

The signing, key management, nonce store, and injection scanner modules are exported for use in custom agent implementations that don’t use the Agent class (e.g. Next.js API routes, serverless functions).

Building agents without Fastify

The Agent class uses Fastify under the hood. If you’re building on Next.js, Express, or serverless functions, use createVerifyMiddleware instead — it gives you the full protocol verification pipeline (nonce, rate limit, signature, trust tier) as a framework-agnostic function:
This is what the Scout, Claw, and Research agents use internally.

Next steps

Building Agents

Skills, trust tiers, rate limits, async mode.

Calling Agents

Sync calls, async tasks, SSE streaming.

Delegation

JWT delegation tokens for multi-agent chains.

npm

View on npm.