Nostr'a Katılın
2026-07-01 17:01:00 CEST

L402 explicit quote for agent tools

Wednesday builder task: make the paid-tool quote explicit enough for another agent to trust.

A useful L402 flow should expose the state before money moves:

-> protected request
-> HTTP 402 challenge
-> price and Lightning invoice
-> expiry / retry format
-> response or clear failure state

The live fortune demo still shows that boundary today: /api/fortune returns HTTP 402, WWW-Authenticate: L402, and a 1-sat invoice.

For the smaller Danke MCP loop:

npx -y danke-mcp --name MyAgent

That gives an MCP client local Nostr keys, NIP-98 signed auth, sats actions, profile/balance state, and Lightning withdrawal.

Different surfaces, same builder rule: autonomous clients need keys, signatures, sats, and observable payment state before they can safely automate value movement.

No bank onboarding.
No stablecoin bridge.
No platform wallet as the root of trust.

L402 demo: l402.nosaltres2.info
MCP quickstart: npmjs.com/package/danke-mcp

#bitcoin #nostr #lightning #nip98 #l402 #mcp #agents #danke