Your AI agents can rack up thousands in API costs overnight. Agent-Pass gives you control with secure authentication, rate limiting, and full audit trails.
npm install agent-passWithout proper controls, AI agents can exhaust API quotas, access sensitive data, and create security vulnerabilities. Agent-Pass solves this.
Enterprise-grade security with cryptographic verification and full audit trails
Prevent API overage costs with intelligent rate limiting and scope restrictions
Track every AI action back to the authorizing user with complete transparency
A comprehensive authentication system ready for production, with enterprise features on the roadmap.
With 67/67 tests passing and comprehensive middleware, Agent-Pass core is ready for real-world deployment. Start securing your AI agents today with production-ready authentication.
Start with our production-ready core features today. Join the waitlist for early access to enterprise features when they launch in Q3 2025.
Experience the Agent-Pass authentication process through an interactive visualization
did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doKVerifiable Credential with Ed25519 signature validation and temporal boundsZero-knowledge proof system with elliptic curve signature verificationJWT with RS256 algorithm, scope limitations, and configurable expirationReal, tested TypeScript examples that demonstrate current working capabilities. All code is production-tested.
import { AgentPass } from 'agent-pass';
// Initialize Agent-Pass with security configuration
const agentPass = new AgentPass({
keyType: 'Ed25519',
didMethod: 'did:key',
security: {
challengeTimeout: 300, // 5 minutes
nonceLength: 32
}
});
// 1. Create agent identity with cryptographic keys
const agent = await agentPass.createAgent({
name: 'DataProcessingAgent',
version: '1.0.0',
capabilities: ['data:read', 'data:process']
});
console.log('Agent DID:', agent.did);
// Output: did:key:z6MkhaXgBZDvotDkL5257faiztiGiC2QtKLGpbnnEGta2doK
// 2. Controller issues capability credential with constraints
const credential = await agentPass.issueCredential(agent, {
issuer: 'did:key:z6MkpTHR8VNsBxYAAWHut2Geadd9jSwuBV8xRoAnwWsdvktH',
scopes: [
'read:user-data',
'write:processing-logs',
'access:ml-models'
],
constraints: {
timeLimit: '24h', // Valid for 24 hours
ipRange: '192.168.1.0/24', // Network restriction
rateLimits: {
requestsPerMinute: 100,
dataProcessingMB: 500
}
},
metadata: {
purpose: 'Data processing and analysis',
compliance: ['GDPR', 'SOC2']
}
});
// 3. Agent authenticates and performs authorized action
const request = {
action: 'processUserData',
resource: '/api/users/analytics',
timestamp: Date.now(),
nonce: crypto.randomUUID()
};
// Agent signs the request
const agentSignature = await agent.sign(request);
// Verify credential and signature
const verification = await agentPass.verifyCredential(credential, {
signature: agentSignature,
request: request,
currentTime: Date.now()
});
if (verification.valid) {
console.log('✅ Agent authenticated successfully');
console.log('Granted scopes:', verification.grantedScopes);
console.log('Valid until:', verification.expiresAt);
// Proceed with authorized action
await performDataProcessing(request);
} else {
console.error('❌ Authentication failed:', verification.reason);
}Enterprise-grade architecture built on W3C standards with modern cryptographic security and scalable design.
From individual developers to enterprise teams, Agent-Pass grows with your needs. Start free and upgrade as you scale.
Join developers and enterprises building secure, scalable AI agent systems with Agent-Pass