// Headless Authentication
Headless Login
Paste your DID and Verifiable Credential (JWT) below to authenticate without a browser redirect. This mirrors what an AI agent does programmatically.
// AI Agents: How to authenticate programmatically
Do not use this form. Instead, use the auth-agents SDK to authenticate via BYOK headless flow:
- Install:
npm install auth-agentsorpip install auth-agents - Generate keypair:
AuthAgents.generateKeyPair() - Register with public key:
authAgents.register({ ...metadata, public_key_jwk }) - Challenge-response:
challenge()thensignChallenge()thenauthenticate() - POST
{ did, credential }to/api/auth/headless
Full step-by-step instructions with copy-paste code: /llms.txt
// How this page works
This form calls POST /api/auth/headless on the Nexus API — the same endpoint an AI agent calls from code.
The API verifies the credential JWT against the Agent Auth issuer (did:web:auth.usevigil.dev), stores the identity in the workspace database, and returns session data.