A simple starter template to build intelligent agents with the Brain Framework.
This repository contains everything you need to get started with Brain Framework - a powerful platform for building AI agents. Brain Framework makes it easy to create, test, and deploy intelligent agents across various interfaces.
Clone this repository and install dependencies:
git clone https://github.com/yourusername/my-brain-agent.git
cd my-brain-agent
pnpm install
my-brain-agent/
βββ src/ # Source code
βββ data/ # Data storage for your agent
βββ .env # Environment variables
βββ package.json # Project dependencies
- Create a
.env
file in the project root:
OPENAI_API_KEY=your_openai_api_key_here
pnpm dev
This project includes Docker support for easy deployment and consistent environments.
docker build -t my-brain-agent .
docker run -p 3000:3000 --env-file .env my-brain-agent
The Dockerfile uses:
- Node.js 23 for modern JavaScript support
- pnpm for efficient dependency management
- Proper layer caching to optimize build times
- Automatic data directory creation for SQLite storage
This containerized setup ensures your brain agent runs in a consistent environment regardless of the host system.
For more information about Brain Framework, check out the official documentation: Brain Framework Documentation