I Built LiveAuth: POW and Lightning Network Authentication for AI Agents
1 points
1 hour ago
| 1 comment
| HN
AI agents need to pay for API calls. Existing auth solutions don't handle this.

LiveAuth is a CAPTCHA alternative that:

• Uses Proof-of-Work (free for humans) or Lightning payments (for agents) • Issues JWT tokens on successful verification • Supports MCP (Model Context Protocol) for AI agents • Self-hosted, non-custodial Lightning

The problem it solves:

• CAPTCHAs are broken - AI solves them in seconds • API keys leak, have no per-request payment • Agents need identity + ability to pay for resources

How it works:

1. User/agent requests auth challenge 2. Solves PoW (free) OR pays 1-3 sats via Lightning 3. Gets JWT token valid for API calls 4. Agent can pre-fund a Lightning wallet for autonomous payments

Demo: https://docs.liveauth.app/demo.html Landing page: https://liveauth.app

Built with .NET 8, Angular, LND node. Open source coming soon.

Questions? AMA.

scka-de
27 minutes ago
[-]
The JWT + MCP integration is the real insight here. Most agent auth systems treat payments and identity as separate concerns, but tying both to a single token means you can express fine-grained capabilities directly in claims—rate limits, spend caps, request signatures—without a separate policy layer. POW for humans is clever UX (no friction), but the Lightning side only works if settlement is subsecond; any latency on verification becomes a denial vector at scale.
reply