BrainPower 🧠⚡

An AI-powered blockchain agent that interacts with the Solana blockchain using natural language. Built with OpenAI's Assistant API.

Intuitive Chat Interface

Interact with the Solana blockchain using natural language through our user-friendly chat interface. Simply type your requests, and let BrainPower handle the complexities for you.

  • Natural language processing for blockchain operations
  • Real-time responses and transaction updates
  • Seamless integration with all BrainPower tools
  • History tracking for easy reference
BrainPower Chat Interface

Available Tools & Features

Wallet & Balance Operations

  • Get wallet address
  • Check SOL/SPL token balances
  • Request test SOL from faucet
  • Send tokens to other wallets

NFT Operations

  • Create NFT collections
  • Mint NFTs with metadata
  • Generate AI images with DALL-E
  • Set custom royalties

Token Operations

  • Launch SPL tokens
  • Get token market data
  • Launch on Pump.fun
  • Configure token supply

DeFi & Trading

  • Swap tokens via Jupiter
  • Lend USDC on Lulo
  • Get Pyth price feeds
  • Create liquidity pools

Liquidity Pools

  • Create Orca Whirlpools
  • Raydium AMM V4 pools
  • Concentrated liquidity pools
  • Constant product pools

Utility & Monitoring

  • Check network TPS
  • Register .sol domains
  • Telegram notifications
  • Transaction monitoring

Setup Guide for Everyone

1. Install Required Software

For Windows:

1. Download Git from git-scm.com/downloads

Install Git for Windows - Use all default options during installation

2. Download NVM from github.com/coreybutler/nvm-windows/releases

Install NVM (Node Version Manager) for Windows - Download the latest nvm-setup.exe

For macOS:

1. Install Homebrew: /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh)"

Copy and paste this command in Terminal to install Homebrew

2. brew install nvm

Install NVM using Homebrew

For Both Systems - Install Node.js:

nvm install 23.1.0

Install Node.js version 23.1.0 or above (required)

nvm use 23.1.0

Switch to the installed Node.js version

npm install --global yarn

Install Yarn package manager globally

2. Download & Setup Project

git clone https://github.com/aryan877/brainpower

Download the project files (paste this in Terminal/Command Prompt)

cd brainpower

Go to the project folder

yarn install

Install all required dependencies

3. Configure Settings (Devnet Setup)

Create a file named .env in the frontend folder:

NEXT_PUBLIC_BACKEND_URL=http://localhost:5000

Copy this exactly into your .env file

MongoDB Setup:

1. Go to mongodb.com and create a free account

2. Create a new project and database

3. Click "Connect" and choose "Drivers"

4. Add your IP address to network access (click "Network Access" and "Add IP Address")

5. Copy your connection string

Create a file named .env in the backend folder:

PRIVATE_KEY_BASE58=your_private_key

Your Solana Devnet wallet private key (create one using Phantom wallet)

OPENAI_API_KEY=your_openai_key

Get this from platform.openai.com/api-keys

MONGODB_URI=your_mongodb_uri

Replace <password> in your MongoDB connection string with your actual password

HELIUS_API_KEY=your_helius_key

Get this from dev.helius.xyz (Free Devnet RPC available)

TELEGRAM_BOT_TOKEN=your_bot_token TELEGRAM_CHAT_ID=your_chat_id

Optional: For Telegram notifications

Important Notes:

  • This project runs on Solana Devnet - you'll need Devnet SOL (use faucets)
  • Make sure to allow network access in MongoDB for your IP address
  • Keep your private keys and API keys secure - never share them

4. Start the App

yarn dev

Start the application - Then open http://localhost:3000 in your browser