Installation
Learn how to install MoAI-ADK 2.x on your system.
Prerequisites
Verify the following before installation:
1. Claude Code
MoAI-ADK is an extension framework that runs on top of Claude Code. Claude Code must be installed first.
claude --versionIf not yet installed, refer to the Claude Code official documentation .
2. Git (Required)
MoAI-ADK uses Git-based workflows. Git must be installed on your system.
git --versionWindows Users: You must use Git Bash or WSL. Command Prompt (cmd.exe) is not supported.
If Git is not installed:
- Windows: Install Git for Windows from git-scm.com . Git Bash is included.
- macOS:
xcode-select --installor git-scm.com - Linux:
sudo apt install git(Ubuntu/Debian) orsudo dnf install git(Fedora)
System Requirements
| Item | Requirement |
|---|---|
| OS | macOS, Linux, Windows (Git Bash / WSL) |
| Architecture | amd64, arm64 |
| Memory | Minimum 4GB RAM |
| Disk | Minimum 100MB free space |
Installation Methods
Method 1: Quick Install (Recommended)
Install the latest version automatically with a single command.
macOS / Linux / WSL / Git Bash:
curl -fsSL https://raw.githubusercontent.com/modu-ai/moai-adk/main/install.sh | bashWindows (PowerShell):
irm https://raw.githubusercontent.com/modu-ai/moai-adk/main/install.ps1 | iexThe install script automatically detects your platform, downloads the prebuilt binary from GitHub, verifies the SHA256 checksum, and configures PATH. No Python or separate runtime is required.
After installation, verify:
moai versionInstall Options
# Install a specific version
curl -fsSL https://raw.githubusercontent.com/modu-ai/moai-adk/main/install.sh | bash -s -- --version 2.0.0
# Install to a custom directory
curl -fsSL https://raw.githubusercontent.com/modu-ai/moai-adk/main/install.sh | bash -s -- --install-dir /usr/local/binMethod 2: Build from Source
If you have a Go development environment, you can build from source.
git clone https://github.com/modu-ai/moai-adk.git
cd moai-adk
make buildThe built binary will be at ./bin/moai. Copy it to a directory in your PATH:
cp ./bin/moai ~/.local/bin/Install Locations
The install script determines the installation directory in this order:
| Platform | Priority |
|---|---|
| macOS / Linux | $GOBIN → $GOPATH/bin → ~/.local/bin |
| Windows | %LOCALAPPDATA%\Programs\moai |
Migrating from 1.x
MoAI-ADK 1.x (Python version) users must uninstall the old version first.
Both 1.x and 2.x use the same moai command, so keeping the old version will cause conflicts.
Step 1: Remove existing 1.x
# If installed via uv
uv tool uninstall moai-adk
# If installed via pip
pip uninstall moai-adkStep 2: Backup existing config (optional)
# If you want to back up existing settings
cp -r ~/.moai ~/.moai-v1-backupStep 3: Install 2.x
curl -fsSL https://raw.githubusercontent.com/modu-ai/moai-adk/main/install.sh | bashStep 4: Verify installation
moai version
# Example output: moai v2.x.x (commit: abc1234, built: 2026-01-15)Version 2.x is a single Go binary with no Python runtime or virtual environment required. Startup time has improved dramatically from ~800ms to ~5ms.
WSL Support
Guide for installing and using MoAI-ADK in WSL (Windows Subsystem for Linux) on Windows.
Installing WSL
If WSL is not installed, run the following command in PowerShell (Administrator):
wsl --installAfter installation, restart Windows and Ubuntu will be automatically installed.
Installing MoAI-ADK in WSL
Use the same command as Linux in the WSL terminal:
curl -fsSL https://raw.githubusercontent.com/modu-ai/moai-adk/main/install.sh | bashPath Handling
Distinguish between Windows paths and WSL paths:
| Windows Path | WSL Path |
|---|---|
C:\Users\name\project | /mnt/c/Users/name/project |
D:\Projects\myapp | /mnt/d/Projects/myapp |
Recommended: Create projects in WSL’s Linux filesystem (~/projects/) for 2-5x better I/O performance. Accessing the Windows filesystem (/mnt/c/) may result in slower performance.
WSL Best Practices
- Use Linux filesystem: Create projects in
~/projects/directory - Configure Git credentials: Set up Git credentials separately in WSL from Windows
- Recommended terminal: Use Windows Terminal to manage multiple WSL distributions
WSL Troubleshooting
PATH Not Loaded
# Add to ~/.bashrc or ~/.zshrc
source ~/.cargo/env
export PATH="$HOME/.local/bin:$PATH"Hook/MCP Server Permission Issues
# Grant execute permissions
chmod +x ~/.claude/hooks/moai/*.shSlow Windows Path Access
Move the project to the Linux filesystem:
# Move from Windows to WSL
cp -r /mnt/c/Users/name/project ~/projects/
cd ~/projects/projectpip and uv Tool Conflict
A common issue for MoAI-ADK 1.x (Python version) users.
Problem Description
pip and uv install packages in different locations. Using both tools interchangeably may cause the moai command to execute an unexpected version.
Symptoms
moai versionshows 1.x versioncommand not found: moaierrorwhich moaishows a different path than expected
Root Cause
- pip installs to system Python paths
- uv tool installs to
~/.local/binor~/.cargo/bin - PATH order determines which version runs
Solutions
Clean Reinstall
# 1. Remove all existing versions
uv tool uninstall moai-adk 2>/dev/null || true
pip uninstall moai-adk -y 2>/dev/null || true
# 2. Check and remove remaining binaries
which moai && rm $(which moai) 2>/dev/null || true
ls ~/.local/bin/moai && rm ~/.local/bin/moai 2>/dev/null || true
# 3. Install 2.x
curl -fsSL https://raw.githubusercontent.com/modu-ai/moai-adk/main/install.sh | bash
# 4. Verify
moai versionUpdate Shell Configuration
# Add to ~/.bashrc or ~/.zshrc
export PATH="$HOME/.local/bin:$PATH"
# Apply settings
source ~/.bashrc # or source ~/.zshrcPrevention Tips
- MoAI-ADK 2.x is a Python-independent Go binary
- Uninstall 1.x (Python version) before installing 2.x
- Do not use pip and uv tool simultaneously
Troubleshooting
Problem: Command Not Found
command not found: moaiSolution:
- Restart your terminal
- Check your PATH:
echo $PATH- Verify the binary location:
which moai || ls ~/.local/bin/moai- Manually add to PATH:
# Bash/Zsh
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrcProblem: Permission Denied
Permission deniedSolution:
chmod +x ~/.local/bin/moaiProblem: 1.x and 2.x Conflict
If the old version of moai is being executed:
# Check which moai is running
which moai
# Remove 1.x if still present
uv tool uninstall moai-adk
# or
pip uninstall moai-adk
# Restart terminal and verify 2.x
moai versionNext Steps After Installation
Once installed, initialize your project:
Create a New Project
moai init my-projectApply to Existing Project
cd my-existing-project
moai initUpgrade
To upgrade to the latest version:
moai updateUpdate Options
# Check version only (no update)
moai update --check
# Synchronize templates only (skip package upgrade)
moai update --templates-only
# Config edit mode (re-run init wizard)
moai update --config
moai update -c
# Force update without backup
moai update --force
# Auto-approve mode (auto-approve all confirmations)
moai update --yesMerge Strategy
# Force auto-merge (default)
moai update --merge
# Force manual merge
moai update --manualAutomatically Preserved Items: User settings, custom agents, custom commands, custom skills, custom hooks, SPEC documents, and reports are automatically preserved during updates.
See the Update Guide for details.
Uninstall
To completely remove MoAI-ADK:
# Remove the binary
rm $(which moai)
# Remove config directory (optional)
rm -rf ~/.moaiNext Steps
Learn how to configure MoAI-ADK in the Initial Setup Wizard.