Project for a friend ๐Ÿ˜

Excited to announce the ECASH OpenAI API client! There's still a lot to be done, contributions are welcome ๐Ÿ™

https://github.com/9qeklajc/ecash-402-client

https://cdn.nostrcheck.me/2224da17d76bb87ff4611eef23962da04f154a9bbe641355fcb6448e359d220a/f8538e7cef2095be7335bfcde91411320daf1555ac1fed559fc3c6f8be0e9d96.mp4

Reply to this note

Please Login to reply.

Discussion

I have been using this e-cash based LLM provider since two days now and I'm not switching back to API keys that are issued by a counterparty.

Steps:

1. An e-cash wallet that runs on your local machine provides an API key that you can use in cursor/roo code.

2. Your wallet receives the LLM requests, removes the API key and puts ecash in the request instead.

3. The LLM aggregator redeems the e-cash, processes the request and returns the change along with the response from the LLM.

Spending money has never been this much fun!

docker compose up -d --build

LLM aggregator that supports e-cash: https://ecash.otrta.io

nostr:nevent1qqspt2vp5z5827ncjv43a2wt8shjrph4z4zwlv2vlduz9ku2dmlkl4cpz4mhxue69uhhyetvv9ujuerpd46hxtnfduhsygpzyndp04mthpllgcg7au3evtdqfu254xa7vsf4tl9kgj8rt8fzpgpsgqqqqqqsuvgt4f

this is awesome! it's such a good use case

Instant follow! ๐Ÿซก

Solid project. The design is quite similar to the Keychat AI bot's approach.

nostr:nevent1qyt8wumn8ghj7un9d3shjtnwdaehgu3wvfskueqqyrz3uktwfpqlyp8al38jvwmed59d4w5d0d7frtc3p4zy4fx6qc9lkqy54as

"The Bitcoin network's limitation of 1 satoshi as the smallest transaction unit creates challenges for micropayments in AI services. This constraint particularly affects high-volume, low-cost AI API calls where transaction amounts are often fractions of a satoshi."

Very interesting! To increase precision (and allow setting lower tx fees), did you consider using an msat keyset with nutshell instead of sat?

cdk-mint also supports msat

Saw it but didn't really have the knowledge and capacity to setup all those technologies together ..

Was really happy when I found nutshell to use via API (currently the API ist not supported anymore ๐Ÿ™ˆ) so an older version is used!

There still a lot to do ..

In nutshell, you simply set the derivation path so that it generated an msat keyset (start with a fresh database). You can check the .env.example file.

That would be the easy part (I think), when I setup my own mint ..

โค๏ธโ€๐Ÿ”ฅ๐Ÿซก

Im still waiting for a refund from overcharge?