Installation
First, install Vestauth globally using npm or the installation script:Setup Steps
1
Initialize Server Configuration
Run Output:This creates a
vestauth server init to create your server’s .env file with default configuration:.env file with:You can customize these values during initialization using flags:
2
Create Database
Create the Output:
vestauth_production PostgreSQL database:If the database already exists, you’ll see:
3
Run Database Migrations
Run migrations to create the required database schema:Output:This creates two tables:
agents- Stores agent identitiespublic_jwks- Stores agent public keys
4
Start the Server
Start your Vestauth server:Output:The server is now running and ready to accept agent registrations!
Verify Installation
Test your server is running:Create Your First Agent
Now that your server is running, create an agent that uses your self-hosted server:Production Deployment
Command Reference
Server Commands
Server Start
Database Commands
Troubleshooting
Database Connection Issues
If you see database connection errors:- Verify PostgreSQL is running:
pg_isready - Check DATABASE_URL format:
postgres://localhost/vestauth_production - Ensure database exists:
psql -l | grep vestauth_production
Port Already in Use
If port 3000 is already in use:.env:
Agent Discovery Not Working
If.well-known endpoints return 404:
- Ensure wildcard DNS is configured correctly
- Verify subdomain routing:
curl http://agent-test.localhost:3000/ - Check server logs for routing issues