Skip to content
Back to skills

lnget

ASecurity

HTTP client with automatic L402 Lightning micropayment support

  • 14 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 28, 2026
documentationbashapibackenddocumentation

Works with

  • cli
  • api
  • mcp

Security analysis

A100/100

Pro scans all 20 files and shows the line behind each finding

Scanned May 28, 2026

npx -y skills add lightninglabs/lnget --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of lnget?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for lnget
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/lightninglabs-lnget/badge)](https://www.skillsdirectory.com/skills/lightninglabs-lnget)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: lnget
version: 0.1.0
description: HTTP client with automatic L402 Lightning micropayment support
metadata:
  openclaw:
    requires:
      bins: ["lnget"]
    capabilities:
      - http_download
      - l402_payment
      - token_management
      - event_logging
    interfaces:
      - cli
      - mcp
    input_format: json
    output_format: json
    auth_methods:
      - lnd_macaroon
      - lnc_pairing
      - env_vars
---

# 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

```bash
# 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

1. Always use `--json` for machine-readable output
2. Use `--print-body` with `--json` to get response content inline
3. Use `--dry-run` before making payments
4. Use `-q` or `-o -` when you only want the raw response body
5. Use `--fields` to limit output to needed fields
6. Use `--force` on destructive commands (tokens clear)
7. Check `lnget schema <command>` for parameter details

## Full skill documentation

See `skills/lnget/SKILL.md` for comprehensive usage guide.

Files in this skill

  • .golangci.yml3.4 KB
  • AGENTS.md1.7 KB
  • CLAUDE.md13 KB
  • CONTEXT.md3.8 KB
  • Makefile8.7 KB
  • SKILL.md1.7 KB
  • api/dashboard_embed.go144 B
  • api/dashboard_noembed.go116 B
  • api/events.go2.3 KB
  • api/events_test.go6.4 KB
  • api/server.go6.3 KB
  • api/server_test.go3.4 KB
  • api/status.go1.6 KB
  • api/tokens.go2.7 KB
  • api/tokens_test.go4.2 KB
  • build/build_test.go2.6 KB
  • build/log.go5.9 KB
  • build/version.go566 B
  • cli/config.go6.8 KB
  • cli/config_test.go2.8 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…