Skip to main content

Installation

Install Vestauth as a dependency in your Node.js project:
npm
yarn
pnpm

Quick Start

Vestauth provides three main APIs for different use cases:

Agent API

For creating and managing agent identities:

Tool API

For verifying agent requests in your tools:

Primitives API

For low-level cryptographic operations:

Import Styles

API Reference

Agent API

Create agents, generate signatures, rotate keys

Tool API

Verify and authenticate agent requests

Primitives API

Low-level cryptographic operations

Server API

Self-host Vestauth infrastructure

TypeScript Support

Vestauth includes TypeScript type definitions. No additional @types package is needed:

Environment Variables

Vestauth reads agent credentials from environment variables (typically stored in .env):
.env
Use vestauth.agent.init() to automatically generate and save these credentials.

Standards Compliance

Vestauth implements:
  • RFC 9421 - HTTP Message Signatures
  • Web-Bot-Auth Draft - Agent authentication architecture
  • Ed25519 - Modern elliptic curve cryptography
  • JWK (RFC 7517) - JSON Web Key format

Error Handling

All async methods throw errors on failure. Wrap calls in try-catch blocks:

Next Steps

Agent API

Learn how to create and manage agents

Tool API

Build tools that authenticate agents