Lightning-Agent-Tools / agent-ln
PublicSelf‑hosted AI agent control plane with local LLM planner (Ollama) + Bitcoin Lightning‑style micropayments (L402‑inspired mock). TypeScript + Docker.
Agent-LN is an educational demo project showing how AI agents can pay for things automatically using Bitcoin Lightning Network micropayments. It provides a complete simulated environment with a web dashboard where you can watch your agent execute skills (like checking balances, buying data, or managing payments), understand natural language commands, and schedule recurring tasks. The project uses mock Lightning services so you can learn the patterns without risking real money. It's based on Lightning Labs' Lightning Agent Tools project and is designed for developers exploring the intersection of AI and cryptocurrency payments.
How It Works
You discover a project that lets AI assistants pay for things automatically using Lightning Network micropayments, like a robot paying for its own API access.
With one command, you launch three simulated services: a Lightning simulator, a mock payment provider, and the agent itself—all running together like a training environment.
You open a web page showing your agent's health, wallet balance, budget usage, and all available skills—everything at a glance, updating automatically.
You type 'Check my Lightning balance' or 'Buy the premium data feed' and watch as the agent understands your intent, picks the right skill, and executes it.
The agent matches your words to skills instantly—fast and reliable for testing.
The agent actually thinks about your request and explains its reasoning before acting.
You set up 'Every Friday at 9 AM, buy premium data' and the agent automatically fires that task on schedule, handling payments each time.
Tasks complete, payments log, budgets stay healthy. You've seen how AI agents can pay for resources themselves using Lightning micropayments.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.