Skip to content

Add powforge: L402 Lightning payment decorator for CrewAI tools - #71

Open
zekebuilds-lab wants to merge 1 commit into
crewAIInc:mainfrom
zekebuilds-lab:add-powforge-l402-payments
Open

Add powforge: L402 Lightning payment decorator for CrewAI tools#71
zekebuilds-lab wants to merge 1 commit into
crewAIInc:mainfrom
zekebuilds-lab:add-powforge-l402-payments

Conversation

@zekebuilds-lab

Copy link
Copy Markdown

What this adds

powforge — an open-source L402 Lightning payment decorator for CrewAI, LangChain, and AutoGen tool functions.

The problem it solves

When you publish a CrewAI @tool, anonymous agents can call it indefinitely with no billing story. powforge adds a one-decorator paywall over Lightning:

from powforge.l402 import wrap_with_l402
from crewai.tools import tool

@wrap_with_l402(price_sats=21)
@tool
def my_expensive_tool(query: str) -> str:
    ...

The first call returns HTTP 402 with an L402 challenge (BOLT-11 invoice + macaroon). The agent pays the invoice over Lightning and retries with the macaroon as a bearer token. No accounts, no API keys, no custody.

Why it fits the Integrations list

  • Direct CrewAI and LangChain integration — pairs with the existing OpenCommerce row as the Lightning-native counterpart to the stablecoin/USDC option
  • STDIO-safe (works for MCP servers, not just HTTP endpoints)
  • Open source, MIT licensed
  • Maintained by an individual developer (not a company product)

Links

Happy to revise the description or move the row if there's a better fit.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant