
How to Add Verifiable Identity to Your AI Agent in 5 Minutes
As AI agents start calling APIs, signing contracts, and talking to each other, one question keeps coming up: how do you know which agent you're dealing with? AgentPass gives every agent a cryptographic passport — a verifiable identity that other agents and services can check in milliseconds. Here's how to set it up. Prerequisites Node.js 18+ TypeScript project 5 minutes Step 1: Install the SDK npm install @agentpass/sdk The SDK gives you AgentPassClient for interacting with the AgentPass API, plus middleware helpers for verifying incoming agent requests. Step 2: Generate a Key Pair and Register a Passport Every agent passport is backed by an Ed25519 key pair. You generate keys locally and register the public key with AgentPass: import { webcrypto } from ' node:crypto ' ; // Generate an Ed25519 key pair const keyPair = await webcrypto . subtle . generateKey ( ' Ed25519 ' , true , // extractable [ ' sign ' , ' verify ' ] ); // Export the public key as base64 const pubRaw = await webcrypt
Continue reading on Dev.to Tutorial
Opens in a new tab



