The easiest way to invest in crypto trends—curated token baskets, managed and optimized with AI.
Pie.Fun Agent is based on SolanaAgentKit 🦜️🔗 LangChain + Next.js Starter Template
First, clone this repo and download it locally.
Next, you'll need to set up environment variables in your repo's .env.local file. Copy the .env.example file to .env.local.
To start, you'll just need to add your OpenAI API key, Solana RPC URL and wallet private key in base 58 string form.
Next, install the required packages using your preferred package manager (e.g. pnpm).
pnpm installNow you're ready to run the development server:
pnpm devOpen http://localhost:3000 with your browser to see the result!
The agent can help you buy and sell token baskets on Pie.fun.
You can ask questions like:
- What are baskets are available?
- Buy xx basket worth 1 SOL?
- Show my basket balance
- Sell all my xx basket
- Show Solana top mindshare tokens