Skip to content
/ ethgpt Public template

ChatGPT Plugin for Ethereum and EVM dApp / smart contract functionalities

Notifications You must be signed in to change notification settings

xinbenlv/ethgpt

Repository files navigation

EthGPT

EthGPT is an ChatGPT plugin (and template) written in Typescript to bring Ethereum and EVM-chain based dApp and smart contract functionalities.

As of today OpenAI ChatGPT plugin is still alpha test only. To beging use it you could apply to join the waitlist

Usage Demo

demo

Install Demo

demo

Contributor Guide

This app has no user interface, instead it's meant to use with GhatGPT's UI so therefore you must have access to ChatGPT plugins, which at the moment are still in beta.

Project setup

  1. Clone the repo, install depdendencies:
git clone git@github.com:xinbenlv/ethgpt.git

cd ethgpt

yarn # or npm install, pnpm
  1. Run the server in dev mode
yarn dev

# If you run this in dev mode, the memory may not persist well as the server will randomly restart sometimes
  1. Set up your GPT Plugin in the ChatGPT Plugin UI.

When prompted for your website domain, type in 'http://localhost:3000'

Usage

  1. Go to ChatGPT and start a conversation with the bot you've set up.

  2. Ask the bot to do something, for example, resolve the ENS xinbenlv.eth for me.

Configuration

To add more routes:

  1. Create new route in pages/api directory.

  2. Update openapi.yaml with new path

  3. Update openapi.yaml with schema for any data model coming back or being passed in.