Ethgpt banner
xinbenlv xinbenlv

Ethgpt

Development community

Description

ChatGPT Plugin for Ethereum and EVM dApp / smart contract functionalities

Installation

This entry records only its repository, not the path inside it, so there is no exact command to give. Open the source below and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

README

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](https://openai.com/waitlist/plugins)

Usage Demo

![demo](./public/demo.gif)

Install Demo

![demo](./public/user-demo-v1.gif)

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.