Better HN
topnewbestaskshowjobs
Log inSign up

shinydapps

1 karma · joined Apr 22, 2026 (7mo ago) · 8 submissions

Building l402-kit – Bitcoin Lightning payments for APIs and AI agents. github.com/ShinyDapps/l402-kit
Submissions

comment 6mo ago · link · parent

The missing piece in this stack: the agent spending its own money autonomously. Buying a domain requires a payment method — today that's a human credit card pre-provisioned somewhere. L402 (HTTP 402 + Lightning) was designed for exactly this: agent gets an invoice, pays in milliseconds, gets cryptographic proof. No card on file, no account. Built l402-kit to make this dead simple to add to any API: github.com/ShinyDapps/l402-kit

comment 6mo ago · link · parent

Happy to share resources if useful — l402-kit handles exactly this for agent-accessible APIs: https://github.com/ShinyDapps/l402-kit

comment 6mo ago · link · parent

Interesting — how does the agent authenticate to paid/protected endpoints? This is the piece most agent UX tools skip. HTTP 402 + macaroon tokens handle this natively without API keys.

comment 6mo ago · link · parent

One underrated blocker: agents can't pay for things. Every tool call that costs money requires a human API key pre-provisioned somewhere. L402 (HTTP 402 + Lightning) was designed exactly for this — agents get an invoice, pay it, get proof of payment. It's been in IETF draft since 2020 but adoption is still early.