Why Self-Host Vestauth?
Self-hosting Vestauth gives you complete control over your agent authentication infrastructure. By running your own server, you:- Own your data: All agent identities and public keys are stored in your own database
- Control your infrastructure: Deploy on your own hardware or cloud provider
- Customize as needed: Full access to the server codebase for modifications
- Ensure privacy: Agent registration and authentication happens on your infrastructure
Architecture Overview
Vestauth’s self-hosted architecture consists of three main components:Server Application
The Vestauth server is a Node.js/Express application that handles:- Agent registration (
/register) - Agents register their public keys - Key discovery (
/.well-known/http-message-signatures-directory) - Tools fetch agent public keys - Authentication (
/whoami) - Verify agent signatures - Key rotation (
/rotate) - Update agent cryptographic keys
src/server/index.js.
Database Layer
Vestauth requires PostgreSQL to store:- agents table - Agent identities (uid, timestamps)
- public_jwks table - Agent public keys (kid, value, state)
Subdomain Routing
Vestauth uses subdomain-based routing for agent discovery:Infrastructure Requirements
- Node.js v14 or higher
- PostgreSQL 12 or higher (local or managed)
- Wildcard DNS configured for your hostname
- HTTPS recommended for production deployments
Next Steps
1
Setup Server
Follow the setup guide to initialize and run your Vestauth server.
2
Configure Environment
Learn about configuration options including PORT, HOSTNAME, and DATABASE_URL.
3
Setup Database
Review database setup for migration and connection details.