본문으로 건너뛰기
TakoAPI
스킬로 돌아가기

lightning-agent-commerce

roasbeef 제작

Productivity & Tasks
794clawskills.sh가 보고한 다운로드 수
1조회수
좋아요 0개로그인하면 이 스킬에 좋아요를 누를 수 있습니다
—아직 평가 없음
내 평가

요약

End-to-end agentic commerce workflow using Lightning Network.

설명

이 스킬이 하는 일

Sets up a full Lightning Network payment stack for autonomous agent commerce using three components: lnd (Lightning Terminal), lnget (L402 HTTP client), and aperture (L402 reverse proxy). Agents can buy L402-protected data by paying invoices automatically, or sell data behind a paywall that other agents pay per request.

L402 lets agents pay per request rather than sharing API keys or managing subscriptions, enabling fully autonomous commerce between agents without human intervention.

사용 시점

  • Fetching real-time market data from a paid API with automatic invoice settlement
  • Running a per-request paywall in front of an existing backend service
  • Enabling two agents to exchange data and payment without human involvement
  • Capping micropayment spend per API call to stay within a budget
  • Prototyping agent payment workflows on a testnet Lightning node

예시 워크플로

입력

User asks: Fetch market data from a paid Lightning API endpoint

에이전트
  1. 1

    Start the lnd node and confirm it is running with lncli getinfo

  2. 2

    Generate a Bitcoin address, fund the wallet, and open a payment channel

  3. 3

    Initialize lnget and connect it to the local lnd instance

  4. 4

    Run lnget --max-cost 1000 https://api.example.com/market-data to fetch and pay atomically

  5. 5

    Verify the received L402 token is cached with lnget tokens list

출력

JSON market data returned after lnget pays the Lightning invoice and retries with the validated L402 token

요구 사항

  • Bitcoin (BTC) to fund the Lightning wallet, obtained from an exchange or existing wallet

설치

clawhub install roasbeef/lightning-agent-commerce

CLI 명령을 실행하거나, 프롬프트를 Claude Code, Cursor, Codex 등 사용하는 코딩 에이전트에 붙여넣으세요.

링크