https://github.com/enaples/aihelpme
A simple core-lightning plugin that uses L402 (LSAT) to get response from AI in helping managing a lightning node
https://github.com/enaples/aihelpme
Last synced: 11 months ago
JSON representation
A simple core-lightning plugin that uses L402 (LSAT) to get response from AI in helping managing a lightning node
- Host: GitHub
- URL: https://github.com/enaples/aihelpme
- Owner: enaples
- License: mit
- Created: 2023-07-27T05:51:06.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2023-07-27T05:58:45.000Z (almost 3 years ago)
- Last Synced: 2024-04-14T12:23:33.696Z (about 2 years ago)
- Language: Python
- Size: 6.84 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AIHELPME
This is a simple core-lightning plugin that, using the L402 (LSAT) standard, that uses AI to help the user in the node administration.
Please remember that it is a draft so __DO NOT USE IT WITH REAL SATS__. Instead, use it in some test environments.
### Load plugin
To load the plugin in an already-running core-lightning node
```
lightning-cli -k plugin subcommand=start plugin=/lightningd/cln-plugins/aihelpme/aihelpme.py endpoint='http://:/'
```
If you have an endpoint that uses tor, add the option `torproxy=true`.
By default, the plugin will require the user actually to make the payment. If you want the plugin to automatically pay the invoice provided by the endpoint, add the option `pay1shot=true`.
### Usage
```
lightning-cli aihelpme ''
```
If the flag `pay1shot=true` is not set, the command will ask to pay the L402 invoice by copy/paste a command (`lightning-cli pay402 `). After the payment, the response from AI is returned.
There are a lot of improvements to make. Again, this is only a draft, __DO NOT USE WITH REAL SATS__.