lnget
OfficialHTTP client that auto-pays Lightning-enabled APIs.
Authorlightninglabs
Version1.0.0
Installs0
System Documentation
What problem does it solve?
lnget solves the challenge of programmatic access to paid APIs by automatically paying Lightning invoices (L402) when servers respond with HTTP 402, then retrying the request with the valid token.
Core Features & Use Cases
- Automatic L402 payments: pays invoices and retries requests, caching tokens per domain for reuse.
- Token management: per-domain token storage and secure reuse across invocations.
- Backend flexibility: supports external lnd, LNC, and embedded neutrino backends for payments.
Quick Start
Download a paid API by running lnget and observe automatic L402 payment, retry, and token caching.
Dependency Matrix
Required Modules
None requiredComponents
scripts
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: lnget Download link: https://github.com/lightninglabs/lnget/archive/main.zip#lnget Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 471,000+ vetted skills library on demand.