- Provides a sample and working implementation for Solana Agent
- Login via your Solana wallet via Helius
- Utilizes FastAPI and Next.js - the most popular and supported web frameworks
- Clone this repo -
git clone https://github.com/truemagic-coder/solana-agent-app
- Ensure the latest LTS Node is installed with yarn
- Ensure Python 3.13.2 is installed with poetry
- Ensure Docker and Docker Compose are installed
docker-compose up -d
- Rename
.env.sample
to.env
insite
andagent
- Get and set the OPENAI_API_KEY var in the
agent
folder for.env
file - OpenAI API Key - Get and set the ZEP_API_KEY in the
agent
folder for.env
file - Zep - Get and set the RPC_URL in the
agent
folder for the.env
file - Helius - Get and set the PRIVATE_KEY in the
agent
folder for the.env
file - your bs58 encoded private key for a burner Solana wallet - Set all the secrets to match between the
.env
files and make themuuidv4
s or other strong keys - UUID Generator - Open two terminal windows
Terminal 1
:cd site && yarn install && yarn dev
Terminal 2
:cd agent && poetry install && bash ./dev.sh
- Open your browser to
http://localhost:3000
- Provision a MongoDB database
- Get one domains with two sub-domains - one for the
site
and one for theagent
- Add the proper env vars on Heroku or Dokku to your apps
- Add your proper remotes in each folder locally (each folder
site
andagent
should be their own repos -git init
) - For each folder (
site
andagent
) git commit and git push to the main branch
Contributions to Solana Agent Example App are welcome! Please feel free to submit a Pull Request.
This project is licensed under the MIT License - see the LICENSE file for details.