key0Router().
Endpoints
Discovery
Payment
MCP (when mcp: true)
Health (standalone server only)
Authentication Model
Key0 uses the x402 payment protocol instead of traditional API keys: discover a plan, request a challenge (402), sign an EIP-3009 authorization, settle on-chain, receive a Bearer token. For the full three-phase flow explanation and sequence diagram, see How It Works.Base URL
All paths are relative to the host where you mount the Key0 router. For example, if your server runs athttps://api.example.com, the agent card is at https://api.example.com/.well-known/agent.json.

