Copy-paste snippet
Add this to any agent’s system prompt to enable autonomous L402 payments:{BUDGET_SATS} with your session budget (e.g. 1000 for ~$0.50).
LangChain
OpenAI Agents SDK
CrewAI
Vercel AI SDK
Tips
- Set
budgetSatsconservatively — agents can accumulate calls fast - Use
spendingReport()to log usage at session end - For production, use BudgetManager with per-user limits