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
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.
- Clone the repo, install depdendencies:
git clone git@github.com:xinbenlv/ethgpt.git
cd ethgpt
yarn # or npm install, pnpm
- 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
- Set up your GPT Plugin in the ChatGPT Plugin UI.
When prompted for your website domain, type in 'http://localhost:3000'
-
Go to ChatGPT and start a conversation with the bot you've set up.
-
Ask the bot to do something, for example,
resolve the ENS xinbenlv.eth for me
.
To add more routes:
-
Create new route in
pages/api
directory. -
Update
openapi.yaml
with new path -
Update
openapi.yaml
with schema for any data model coming back or being passed in.