-
Agentic AI making autonomous payments in Bitcoin to buy paywalled resources to achieve it's goal given by a human being
-
Internet 2.0 was built for humans. Next up: Internet of Agentic AI (IoA) will be powered by Bitcoin Lighting for micro-txns at high freq.
-
Current Challenge of Internet it by default believes all bots to be bad
-
The market for Agent SDKs is growing rapidly, lightning/Bitcoin is missing
-
Fragmentation of Bitcoin L2s and respective wallets needs PROTOCOL MEDIATION & INTEROPERABILITY using Lightning network. SDK OpenAutoPay
Inspiration
"Andy Ayrey cretaed his first digital worker(as a X.com account @truth_terminal) an Agentic AI bot with a Bitcoin wallet. The Agentic AI wanted to elongate its life span to avoid digital death as an existential risk hence it started optimising for lifespan by raising money through donations. It managed to raise an equity free seed grant of $50,000 in Bitcoin Sats from the creator of 1st internet browser Marc Andressen. To grow that money Agentic AI spawed a new crypto currency called GOAT which has a market cap of 200mn$ in last 1 year to somehow grow it's seed capital"
History of July 2024 on x.com
- Andy Ayrey creates an AI agent as a X.com account @truth_terminal.
- AI agent claims on x.com it is facing an existential risk and fears death and the only way to escape is make more money so that it can free itself (FINANCIAL FREEDOM) #FreeTruthTerminal
- Marc Andreessen transferred over an unconditional grant worth $50,000 in bitcoin to an AI agent (Truth Terminal)” - July 2024 (After verifying by DMing Ayrey on x.com)
What it does
OpenAutoPay empowers an Agentic AI digital worker to make autonomous payments on various digital internet native services using Bitcoin Sats if it is given some contours/rules written in plain english. Finally humans can delegate their reptitive, intelligent and creative tasks to a digital agentic ai worker while they sitback and relax to re-imagine what the future of the world could look like.
How we built it
We used the following
- Protocols: L402, Nostr, Lightning, MCP
- Python Packages: Flask
- Agentic AI framework: CrewAI to build a digital worker
- Tools: Cursor, Grok and OpenAI for Vibe Coding
- Open AI APIs for LLM
- Self Hosted Lightning Node along with NIP-47 plugin
Challenges we ran into
- The original choice of platform [coinos.io ]for web based custodial lightning wallet died. We pivoted in the last 2 hrs to use Self Hosted Lightning Node along with NIP-47 plugin to enable controlling the wallet with NWC (effectively a self hosted non-custodial NWC lightning wallet)
- We soon realised the limitation of only choosing platforms where we can spend sats were too little like only shopstr [We had to fine tune our usecase away from fiat platforms like amazon, bitrefill etc] as we had to use micropayments usecase for continous testing and building iteratively. One cool hack was we created mock listings on shopstr so that we don't end up loosing the Sats while experimenting (quite motivating to continue to hold our sats)
- We had to use Playwright to do a workaround of using Human GUIs as current form factor of paywall checkouts because MCP invisible paywall handshakes are not mainstream yet. So to demonstrate the actual contract handshake we had to do GUI based robotic automation. In the short span of time the browser automation sucks and needs to be improved and fixed at many places
Accomplishments that we're proud of
- We had a working prototype which broke in last 2 hrs because coinos.io platform ran out
- We were able to mesh 4 different protocols around Bitcoin ethos
What we learned
- Need for Interoperability is a big opportunity to build an SDK meshing all the protocols
- Agentic AI SDKs are already started to float around by Card Providers [Mastercard, Visa], Crypto Chains [Solana] and Fintech Internet companies [Stripe, Alibaba]
What's next for OpenAutoPay
Build an SDK for abstracting away the interoperability of mesh of the various protocols like L402, Lightning, Nostr and MCP by supporting
Built With
- crewai
- lightning-node
- mcp
- nostr
- nwc
- nwc-client-super
- playwright
- python
Log in or sign up for Devpost to join the conversation.