Prerequisites
Before you begin, ensure you have the following installed on your system:Node.js 23+
Required for running elizaOS projects
bun
Fast JavaScript runtime and package manager
Step 1: Install Node.js
elizaOS requires Node.js version 23.3.0 or higher.Check if Node.js is installed
Open your terminal and run:If you see
v23.3.0 or higher, you’re good to go. Otherwise, continue to the next step.Install Node.js
Download and install Node.js from the official website:
- macOS
- Linux
- Windows (WSL 2)
Step 2: Install bun
bun is a fast JavaScript runtime and package manager that elizaOS uses for development and package management.Install bun
Run the official installation script:The script will install bun and add it to your PATH.
- macOS / Linux
- Windows (WSL 2)
Step 3: Install elizaOS
You have two options for getting started with elizaOS:- Option 1: Clone the Repository
- Option 2: Use elizaOS CLI
- Option 3: Add to Existing Project
Step 4: Configure Environment Variables
Create a.env file in your project root to configure API keys and settings:
Step 5: Verify Installation
Let’s verify everything is working correctly:Next Steps
Quick Start
Build your first AI agent in 5 minutes
What You Can Build
Explore what’s possible with elizaOS
Troubleshooting
Node.js version mismatch
Node.js version mismatch
If you see an error about Node.js version:
bun command not found
bun command not found
If
bun is not recognized after installation:- Restart your terminal
- Check if bun is in your PATH:
- Manually add to your shell config:
WSL 2 installation issues
WSL 2 installation issues
For Windows users having WSL 2 issues:
- Ensure WSL 2 is installed:
wsl --version - Update WSL:
wsl --update - Set WSL 2 as default:
wsl --set-default-version 2 - Install Ubuntu:
wsl --install -d Ubuntu
Build errors
Build errors
If you encounter build errors:
Need more help? Join our Discord community or check the GitHub issues.