GithubHelp home page GithubHelp logo

lnchat's Introduction

LNChat - Lightning Node Management with ChatGPT

LNChat is a reckless experiment that combines the power of OpenAI's GPT-4 model with the capabilities of managing a Lightning node.

⚠️ Warning: This is Reckless! ⚠️

This application directly executes the Python code generated by the GPT-4 model in response to your queries. While we've tried to ensure safety, there are no guarantees. There is a real risk that errors or malicious responses from the AI could cause you to lose funds.

Use LNChat at your own risk. If you're not comfortable with this level of risk, do not use this application.

Prerequisites

  • Python 3.6+
  • Flask
  • An OpenAI API key
  • A Lightning node

Installation

  1. Clone the repository.
  2. Install the dependencies with pip install -r requirements.txt.
  3. Get ahold of your node's macaroon and cert (maybe from nodes.voltage.cloud/) and put them somewhere handy.
  4. Copy the .env.sample to .env and fill in your environment variables.
  5. Run the application with python app.py.

Usage

  1. Navigate to http://127.0.0.1:5555 in your web browser.
  2. Enter a query about managing your Lightning node. For example, "How many peers are connected to my node?"
  3. Submit the query and view the response.

Remember, this application is #reckless. It's fun to experiment with, but use it responsibly and at your own risk.

lnchat's People

Contributors

litch avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.