Installation
Ralph can be installed using the automated install script or manually from source. This guide covers both methods and helps you verify your installation.
Prerequisites
Before installing Ralph, ensure you have:
Required
- One of these AI agents:
- Cursor CLI (most common)
- Claude Code
- Codex CLI
- Git — For version control and GitHub features
Optional (for building from source)
- Bun or Node.js 18+ — Only needed if building from source
Quick Install (Recommended)
The fastest way to install Ralph is using the automated install script:
curl -fsSL https://raw.githubusercontent.com/nitodeco/ralph/main/scripts/install.sh | bashWhat the Script Does
- Detects your operating system and CPU architecture
- Downloads the latest release binary for your platform
- Installs it to
~/.local/bin(or/usr/local/binif you have permissions) - Adds the installation directory to your PATH if needed
- Verifies the installation
Supported Platforms
- macOS (Intel and Apple Silicon)
- Linux (x64 and ARM64)
- Windows via WSL
Manual Installation
Option 1: Download Binary
Download the appropriate binary for your platform from the releases page:
# macOS (Apple Silicon)
curl -L https://github.com/nitodeco/ralph/releases/latest/download/ralph-macos-arm64 -o ralph
# macOS (Intel)
curl -L https://github.com/nitodeco/ralph/releases/latest/download/ralph-macos-x64 -o ralph
# Linux (x64)
curl -L https://github.com/nitodeco/ralph/releases/latest/download/ralph-linux-x64 -o ralph
# Make it executable
chmod +x ralph
# Move to a directory in your PATH
mv ralph ~/.local/bin/ralphOption 2: Build from Source
Clone the repository and build:
git clone https://github.com/nitodeco/ralph.git
cd ralph
bun install
bun run buildThe build creates platform-specific binaries in the dist/ directory.
Link it globally:
bun linkOr manually copy the binary:
cp dist/ralph-* ~/.local/bin/ralphVerify Installation
After installation, verify Ralph is working correctly:
ralph --versionExpected output:
ralph version 0.14.5Verify AI Agent
Ensure your chosen AI agent is installed and accessible:
# For Cursor CLI
which cursor
# For Claude Code
which claude
# For Codex
which codexEach command should return a path. If not, install the appropriate agent:
Verify Git
git --versionShould output Git version 2.x or higher.
Troubleshooting Installation
”ralph: command not found”
The installation directory isn’t in your PATH. Add it manually:
# For bash
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
# For zsh
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.zshrc
source ~/.zshrc“Permission denied” When Running Install Script
The script needs write access to the installation directory. Either:
Run with sudo (installs to
/usr/local/bin):curl -fsSL https://raw.githubusercontent.com/nitodeco/ralph/main/scripts/install.sh | sudo bashOr ensure
~/.local/binexists and is writable:mkdir -p ~/.local/bin
Build Fails with “bun: command not found”
Install Bun first:
curl -fsSL https://bun.sh/install | bashOr use npm/yarn if you have Node.js:
npm install
npm run buildUpdating Ralph
To update to the latest version:
ralph updateThis checks for updates and installs the newest release automatically.
Or manually re-run the install script:
curl -fsSL https://raw.githubusercontent.com/nitodeco/ralph/main/scripts/install.sh | bashUninstalling Ralph
Remove the Ralph binary:
rm ~/.local/bin/ralph
# or
rm /usr/local/bin/ralphOptionally remove Ralph’s data directory:
rm -rf ~/.ralphThis deletes all projects, configurations, and session data.
Next Steps
- Quickstart — Create your first PRD and run a session
- Configuration — Configure Ralph for your workflow
- GitHub Integration — Set up GitHub authentication