lnget
Skill by lightninglabs
Installs and uses lnget, a wget and curl-like CLI that pays Lightning L402 challenges automatically. It is for downloading files behind Lightning paywalls and making HTTP requests that may need micropayments.
Install lnget
Built from the published package, never by AI.
git clone --depth 1 https://github.com/lightninglabs/lightning-agent-tools /tmp/lightning-agent-tools && mkdir -p ~/.claude/skills && cp -r /tmp/lightning-agent-tools/skills/lnget ~/.claude/skills/lngetRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/lightninglabs/lightning-agent-tools /tmp/lightning-agent-tools && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/lightning-agent-tools/skills/lnget ~/.gemini/antigravity-cli/skills/lngetAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
lnget is a command-line HTTP client that handles L402 (Lightning HTTP 402) authentication natively. When a server returns HTTP 402 with an L402 challenge, lnget parses the challenge, checks the invoice amount against a configured maximum, pays the invoice through the configured Lightning backend, and retries the request with the paid token. Paid tokens are cached per domain, so later requests to the same domain reuse them without new payment.
The tool supports downloads with output to stdout or a file, resuming partial downloads, custom methods, headers and data, and payment limits such as maximum cost and routing fee. It offers JSON and human-readable output, token management, configuration, and Lightning backend checks. Backends include lnd, Lightning Node Connect (LNC) and an embedded Neutrino wallet. The source is aimed at developers and AI agents that need to fetch paid resources with a budget.
Written from the project's SKILL.md and checked against it.
What it can do
- Paid resource fetchingFetches URLs and pays L402 invoices automatically, then retries with the paid token.
- Payment controlSets maximum auto-pay cost, maximum routing fee and payment timeout, or previews the 402 challenge with --no-pay.
- Token managementLists, shows, removes and clears cached per-domain L402 tokens with lnget tokens subcommands.
- Lightning backend statusChecks backend connection with lnget ln status and shows node details with lnget ln info.
- LNC pairingPairs with a node using a Lightning Node Connect pairing phrase and manages saved LNC sessions.
- Embedded Neutrino walletInitializes, funds and checks the balance and sync status of an embedded Neutrino wallet.
- Download optionsSaves output to a file, resumes partial downloads, and sends custom methods, headers and data.
- JSON output for agentsReturns JSON by default, with l402_paid and invoice amount fields for scripted budget checks.
What you need
- Go, which the install script checks for
- A Lightning backend such as lnd, LNC or an embedded Neutrino wallet
- Access to a local lnd node's TLS cert and macaroon, if using lnd mode
Try asking
- Fetch this paywalled JSON file with lnget and keep the cost under 1000 sats.
- Check my lnget Lightning backend status and show the node info.
- List my cached L402 tokens with lnget and remove the one for api.example.com.
Good to know
- lnget config init may write incorrect YAML key names, so the ln.lnd keys should be checked against the documented format.
- Payments only happen when the invoice amount is within the configured max cost.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/lnget/SKILL.md. This looks for known risky patterns and is not a full audit. How grades work
Alternatives to lnget
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
lnget: common questions
What is L402 in lnget?
L402 is Lightning HTTP 402 authentication. lnget pays the invoice in an L402 challenge and retries the request with the paid token.
Does lnget pay for every request?
No. Tokens are cached per domain and reused on later requests to the same domain without payment, according to the source.
Can I see the cost before paying?
Yes. The --no-pay flag previews the 402 challenge details without paying, and --json output includes the invoice amount for budget checks.
How do I install lnget?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is lnget free?
The code is public, but no licence file was found, so check the repository before commercial use.
Is lnget safe to use?
It scores 51 of 100. Grades: maintenance D, licence F, quality B. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to lnget?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
