Quickstart
This is an example on how to run a basic agent that performs a task on Mode with GOAT
How to Run Mode Plugin from GOAT
Prerequisites
- Node.js >=20.12.2 and <21. 
- PNPM. 
Steps
- Clone the GOAT repository: 
git clone https://github.com/goat-sdk/goat.git- Open the repository in your preferred code editor (we'll use VSCode in this example). 
- 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- 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. 
 
- Rebuild the project: 
- Navigate back to the goat/typescript directory and run: 
pnpm install
pnpm build- 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.
Last updated
Was this helpful?
