install
source · Clone the upstream repo
git clone https://github.com/lightninglabs/lnget
Claude Code · Install into ~/.claude/skills/
git clone --depth=1 https://github.com/lightninglabs/lnget ~/.claude/skills/lightninglabs-lnget-lnget
OpenClaw · Install into ~/.openclaw/skills/
git clone --depth=1 https://github.com/lightninglabs/lnget ~/.openclaw/skills/lightninglabs-lnget-lnget
manifest:
SKILL.mdsource content
lnget
Download files with automatic L402 Lightning micropayments. When a server returns HTTP 402 Payment Required with an L402 challenge, lnget automatically pays the Lightning invoice and retries the request.
Quick Reference
# JSON metadata + inline response body lnget --json --print-body https://api.example.com/data.json # Pipe raw response body to stdout lnget -q https://api.example.com/data.json | jq . lnget -o - https://api.example.com/data.json # Preview payment without executing lnget --dry-run https://api.example.com/paid-endpoint # Agent-first JSON input lnget --json --params '{"url": "https://api.example.com/data", "max_cost": 500}' # Introspect CLI schema lnget schema --all # Manage tokens lnget tokens list --json --fields domain,amount_sat # Check Lightning backend lnget ln status --json
Key Rules
- Always use
for machine-readable output--json - Use
with--print-body
to get response content inline--json - Use
before making payments--dry-run - Use
or-q
when you only want the raw response body-o - - Use
to limit output to needed fields--fields - Use
on destructive commands (tokens clear)--force - Check
for parameter detailslnget schema <command>
Full skill documentation
See
skills/lnget/SKILL.md for comprehensive usage guide.