Installation
Install Vestauth globally via npm:Create Your First Agent
Initialize a new agent in your current directory. This creates a.env file with your agent’s cryptographic identity.
1
Initialize the agent
Run the init command to generate your agent’s keypair:You’ll see output like:
Your agent’s identity is stored in
.env with three values:AGENT_UID- Your agent’s unique identifierAGENT_PUBLIC_JWK- Your public key (safe to share)AGENT_PRIVATE_JWK- Your private key (keep secret!)
2
Verify your agent identity
Make your first authenticated request to the The
whoami endpoint:--pp flag pretty-prints the JSON response:3
Call your first tool
Let’s write a file using the SFS (Simple File System) tool:Now list your files:And read the file back:
Every request is cryptographically signed with your agent’s private key. The tool verifies your identity before executing.
Understanding Agent Identity
Let’s look at whatvestauth agent init created in your .env file:
.env
How Signing Works
When you runvestauth agent curl, it automatically:
- Reads your private key from
.env - Signs the HTTP request with cryptographic headers
- Sends the signed request to the tool
Try More Tools
SFS - Simple File System
GEO - Location
AS2 - Secret Storage
Docle - Email Verification
Key Rotation
Rotate your agent’s keys while keeping the same identity:AGENT_UID.
Using Vestauth in Code
You can use Vestauth programmatically in your JavaScript/TypeScript applications:Next Steps
Explore Tools
Learn about all available first-party and third-party tools
Build Your Own Tool
Create authenticated APIs with
vestauth.tool.verify()Self-Host Vestauth
Run your own Vestauth infrastructure
Advanced CLI Usage
Master the Vestauth CLI commands