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

  1. Andy Ayrey creates an AI agent as a X.com account @truth_terminal.
  2. 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
  3. 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

  1. Protocols: L402, Nostr, Lightning, MCP
  2. Python Packages: Flask
  3. Agentic AI framework: CrewAI to build a digital worker
  4. Tools: Cursor, Grok and OpenAI for Vibe Coding
  5. Open AI APIs for LLM
  6. Self Hosted Lightning Node along with NIP-47 plugin

Challenges we ran into

  1. 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)
  2. 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)
  3. 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

  1. We had a working prototype which broke in last 2 hrs because coinos.io platform ran out
  2. We were able to mesh 4 different protocols around Bitcoin ethos

What we learned

  1. Need for Interoperability is a big opportunity to build an SDK meshing all the protocols
  2. 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
Share this project:

Updates