# Set up your project · GOAT chat agent for native Chromia transactions · Learn Chromia

> Complete the steps below to get the Chromia GOAT demo project running on your machine.

Source: https://chromia.com/learn/chromia-goat-chat-agent/setup/

GOAT chat agent for native Chromia transactionsLesson 2 of 4

1. [01An AI chat agent that sends Chromia transactions](https://chromia.com/learn/chromia-goat-chat-agent/introduction/)
2. [02Set up your project](https://chromia.com/learn/chromia-goat-chat-agent/setup/)
3. [03Explore the chat agent](https://chromia.com/learn/chromia-goat-chat-agent/explore-agent/)
4. [04Code walkthrough](https://chromia.com/learn/chromia-goat-chat-agent/codebase-overview/)

[Learn](https://chromia.com/learn/)[GOAT chat agent for native Chromia transactions](https://chromia.com/learn/chromia-goat-chat-agent/)

02 / 04Advanced

# Set up your project

Complete the steps below to get the Chromia GOAT demo project running on your machine.

### Prerequisites

* **Node.js**: You need version 22 or later. Download it from the [Node.js website](https://nodejs.org).
* **MetaMask extension**: Add the [MetaMask extension](https://metamask.io/) to your browser. You use it to hold your EVM accounts and link them to Chromia.
* **Two Chromia accounts**: In MetaMask, set up **two distinct EVM accounts**. For each one, open the [Chromia testnet faucet](https://faucet.testnet.chromia.com) and complete the steps shown there to fund it and create a new Chromia account.

### Setup instructions

1. **Clone the repository**: Run this command in your terminal:

   bash

   ```nolines
   git clone https://bitbucket.org/chromawallet/chromia-goat-demo.git
   cd chromia-goat-demo
   ```
2. **Install dependencies**: Execute `npm install` to pull in every package the project needs.
3. **Set up your `.env` file**: Make a copy of the repository's `.env.template` file and name it `.env`. Then swap the placeholder values for your real AI service credentials, as shown here:

   env

   ```
   VITE_AI_API_KEY=your-api-key-here
   VITE_AI_BASE_URL=your-base-url-here
   VITE_AI_MODEL_NAME=your-model-name-here
   ```
4. **Start the development server**: Run `npm run dev` to start the Vite development server.
5. **Connect MetaMask**: In your browser, go to the URL that the Vite development server prints (shown in your terminal). Then connect your EVM account through MetaMask.

Written for this site from Chromia’s public course. Code samples are the course’s own.

[← Previous**An AI chat agent that sends Chromia transactions**](https://chromia.com/learn/chromia-goat-chat-agent/introduction/)[Next →**Explore the chat agent**](https://chromia.com/learn/chromia-goat-chat-agent/explore-agent/)
