Skip to content

Latest commit

 

History

History
88 lines (59 loc) · 1.65 KB

File metadata and controls

88 lines (59 loc) · 1.65 KB
description This is an example on how to run a basic agent that performs a task on Mode with GOAT

Quickstart

How to Run Mode Plugin from GOAT

Prerequisites

Steps

  1. Clone the GOAT repository:
git clone https://github.com/goat-sdk/goat.git
  1. Open the repository in your preferred code editor (we'll use VSCode in this example).
  2. Install dependencies and build the project:
  • Since we are going to test the Mode plugin, which is in the TypeScript folder, we first need to navigate to that directory:
cd goat/typescript
  • Then, run the following commands:
pnpm install
pnpm build
  1. Set up the Mode plugin:
  • Go to the plugin directory:
cd examples/vercel-ai/mode
  • Copy the environment configuration file:
cp .env.template .env
  • Fill in the .env file with the following values:
    • OPENAI_API_KEY: Obtained from OpenAI.
    • WALLET_PRIVATE_KEY: Your wallet's private key. It's important to ensure that the key starts with 0x to avoid execution errors.
  1. Rebuild the project:
  • Navigate back to the goat/typescript directory and run:
pnpm install
pnpm build
  1. Run the Mode plugin:
  • Navigate back to the plugin directory:
cd examples/vercel-ai/mode
  • Run the following command to start the plugin:
npx ts-node index.ts
  • You will see the message:
Enter your prompt (or "exit" to quit):

Ready! You can now interact with the Mode plugin in GOAT.