-
Notifications
You must be signed in to change notification settings - Fork 0
Installation Methods
Status: ✅ Complete
Phase: Phase 7 - Integration Features
Last Updated: December 9, 2025
RiceCoder provides multiple installation methods to suit different preferences and environments. Choose from curl script, package managers, Docker, or binary releases. All methods are supported on Windows, macOS, and Linux.
Build and install RiceCoder with a single command:
curl -fsSL https://raw.githubusercontent.com/moabualruz/ricecoder/main/scripts/install | bashThis script:
- Detects your OS and architecture
- Checks prerequisites (Rust, Cargo, Git)
- Updates Rust toolchain
- Builds from source
- Installs to
/usr/local/binor custom prefix - Adds to PATH automatically
- Verifies installation
Install via Homebrew:
brew install ricecoderUpdate to latest version:
brew upgrade ricecoderUninstall:
brew uninstall ricecoderInstall via Cargo:
cargo install ricecoderInstall specific version:
cargo install [email protected]Update to latest:
cargo install --upgrade ricecoderUninstall:
cargo uninstall ricecoderInstall via NPM:
npm install -g ricecoderInstall specific version:
npm install -g [email protected]Update to latest:
npm update -g ricecoderUninstall:
npm uninstall -g ricecoderInstall via Chocolatey:
choco install ricecoderUpdate:
choco upgrade ricecoderInstall via Scoop:
scoop install ricecoderUpdate:
scoop update ricecoderInstall via Windows Package Manager:
winget install ricecoderUpdate:
winget upgrade ricecoderDownload and install manually:
- Download latest release from GitHub Releases
- Extract to desired location
- Add to PATH:
- Right-click "This PC" → Properties
- Advanced system settings → Environment Variables
- Add installation directory to PATH
- Verify installation:
rice --version
brew install ricecodersudo port install ricecoder- Download latest release for macOS
- Extract:
tar -xzf ricecoder-*.tar.gz - Move to PATH:
sudo mv ricecoder /usr/local/bin/ - Verify:
rice --version
Add repository (via GitHub raw content):
curl -fsSL https://raw.githubusercontent.com/moabualruz/ricecoder/main/scripts/install-apt-key.sh | sudo bash
echo "deb [signed-by=/usr/share/keyrings/ricecoder-archive-keyring.gpg] https://github.com/moabualruz/ricecoder/releases/download/latest stable main" | sudo tee /etc/apt/sources.list.d/ricecoder.listInstall:
sudo apt update
sudo apt install ricecoderUpdate:
sudo apt upgrade ricecoderAdd repository (via GitHub raw content):
curl -fsSL https://raw.githubusercontent.com/moabualruz/ricecoder/main/scripts/install-yum-repo.sh | sudo bashInstall:
sudo yum install ricecoderUpdate:
sudo yum upgrade ricecoderInstall from AUR:
yay -S ricecoderOr manually:
git clone https://aur.archlinux.org/ricecoder.git
cd ricecoder
makepkg -si- Download latest release for Linux
- Extract:
tar -xzf ricecoder-*.tar.gz - Move to PATH:
sudo mv ricecoder /usr/local/bin/ - Verify:
rice --version
Pull and run Docker image:
docker pull ricecoder/ricecoder:latest
docker run -it ricecoder/ricecoder:latest rice --versionRun with volume mount:
docker run -it -v ~/.ricecoder:/root/.ricecoder ricecoder/ricecoder:latest rice chatCreate docker-compose.yml:
version: '3.8'
services:
ricecoder:
image: ricecoder/ricecoder:latest
container_name: ricecoder
volumes:
- ~/.ricecoder:/root/.ricecoder
- ./projects:/workspace
environment:
- RICECODER_HOME=/root/.ricecoder
- OPENAI_API_KEY=${OPENAI_API_KEY}
stdin_open: true
tty: true
command: rice chatRun with Docker Compose:
docker-compose up -d
docker-compose exec ricecoder rice chatCreate custom Dockerfile:
FROM ricecoder/ricecoder:latest
# Install additional tools
RUN apt-get update && apt-get install -y \
git \
curl \
&& rm -rf /var/lib/apt/lists/*
# Set working directory
WORKDIR /workspace
# Set environment variables
ENV RICECODER_HOME=/root/.ricecoder
# Default command
CMD ["rice", "chat"]Build and run:
docker build -t my-ricecoder .
docker run -it -v ~/.ricecoder:/root/.ricecoder my-ricecoderDownload pre-compiled binaries from GitHub Releases:
-
ricecoder-x86_64-unknown-linux-gnu- Linux x86_64 -
ricecoder-x86_64-apple-darwin- macOS Intel -
ricecoder-aarch64-apple-darwin- macOS ARM64 -
ricecoder-x86_64-pc-windows-msvc- Windows x86_64 -
ricecoder-aarch64-unknown-linux-gnu- Linux ARM64
Extract and install:
# Linux/macOS
tar -xzf ricecoder-*.tar.gz
sudo mv ricecoder /usr/local/bin/
# Windows (PowerShell)
Expand-Archive ricecoder-*.zip
Move-Item ricecoder.exe "C:\Program Files\ricecoder\"Verify installation:
rice --versionAutomated build and installation with prerequisite checking:
Linux/macOS:
# Clone repository
git clone https://github.com/moabualruz/ricecoder.git
cd ricecoder
# Make script executable
chmod +x scripts/install.sh
# Run installation script
./scripts/install.sh
# Verify installation
rice --versionInstallation Script Options:
# Install to custom prefix
./scripts/install.sh --prefix /usr/local
# Debug build
./scripts/install.sh --debug
# Verbose output
./scripts/install.sh --verboseWindows (PowerShell):
# Clone repository
git clone https://github.com/moabualruz/ricecoder.git
cd ricecoder
# Run installation script
.\scripts\install.ps1
# Verify installation
rice --versionInstallation Script Options:
# Install to custom prefix
.\scripts\install.ps1 -Prefix "C:\Program Files\ricecoder"
# Debug build
.\scripts\install.ps1 -Debug
# Verbose output
.\scripts\install.ps1 -VerboseWindows (CMD):
# Clone repository
git clone https://github.com/moabualruz/ricecoder.git
cd ricecoder
# Run installation script
scripts\install.bat
# Verify installation
rice --versionInstallation Script Features:
- ✅ Automatic OS and architecture detection
- ✅ Prerequisite verification (Rust, Cargo, Git)
- ✅ Automatic Rust toolchain update
- ✅ Configurable build mode (release/debug)
- ✅ Automatic binary installation
- ✅ Configuration file installation
- ✅ Documentation installation
- ✅ Installation verification
- ✅ PATH configuration guidance
For advanced users or custom builds:
Prerequisites:
- Rust 1.70+ (Install Rust)
- Git
- C compiler (gcc/clang)
Clone and Build:
Clone repository:
git clone https://github.com/moabualruz/ricecoder.git
cd ricecoderBuild release binary:
cargo build --releaseBinary location: target/release/ricecoder
Install to PATH:
# Linux/macOS
sudo cp target/release/ricecoder /usr/local/bin/
# Windows (PowerShell)
Copy-Item target/release/ricecoder.exe "C:\Program Files\ricecoder\"Verify installation:
rice --versionCheck installation:
rice --version
# Output: ricecoder 0.1.7
rice --help
# Output: RiceCoder - Terminal-first coding assistantTest basic functionality:
# Initialize a project
rice init
# Start interactive chat
rice chat
# Generate code
rice gen --helpbrew uninstall ricecodercargo uninstall ricecodernpm uninstall -g ricecoderchoco uninstall ricecoderscoop uninstall ricecoderRemove binary:
# Linux/macOS
sudo rm /usr/local/bin/ricecoder
# Windows
Remove-Item "C:\Program Files\ricecoder\ricecoder.exe"Remove configuration:
# Remove all RiceCoder data
rm -rf ~/.ricecoder
# Windows
Remove-Item -Recurse -Force $env:APPDATA\.ricecoderSolution: Ensure RiceCoder is in PATH:
# Check if rice is in PATH
which rice
# If not found, add to PATH manually
export PATH="/usr/local/bin:$PATH"
# Or reinstall with correct locationSolution: Fix file permissions:
# Make binary executable
chmod +x /usr/local/bin/ricecoder
# Or reinstall with sudo
sudo cargo install ricecoderSolution: Update to latest version:
# Using Homebrew
brew upgrade ricecoder
# Using Cargo
cargo install --upgrade ricecoder
# Using NPM
npm update -g ricecoder
# Using curl script (from GitHub)
curl -fsSL https://raw.githubusercontent.com/moabualruz/ricecoder/main/scripts/install | bashSolution: Pull latest image:
docker pull ricecoder/ricecoder:latest
docker run -it ricecoder/ricecoder:latest rice --version| Platform | Status | Installation Methods |
|---|---|---|
| Linux x86_64 | ✅ | Curl, APT, YUM, Pacman, Cargo, NPM, Docker, Binary |
| Linux ARM64 | ✅ | Curl, Cargo, NPM, Docker, Binary |
| macOS Intel | ✅ | Curl, Homebrew, MacPorts, Cargo, NPM, Docker, Binary |
| macOS ARM64 | ✅ | Curl, Homebrew, MacPorts, Cargo, NPM, Docker, Binary |
| Windows x86_64 | ✅ | Curl, Chocolatey, Scoop, WinGet, Cargo, NPM, Docker, Binary |
| Windows ARM64 | ✅ | Cargo, NPM, Docker, Binary |
- Curl Installation: < 30 seconds
- Homebrew Installation: < 1 minute
- Cargo Installation: 2-5 minutes (first time)
- Docker Pull: < 1 minute
- Binary Extraction: < 5 seconds
- Quick Start Guide - Get started after installation
- Configuration Guide - Configure RiceCoder
- Troubleshooting Guide - Solve common issues
- Architecture Overview - System architecture
Last updated: December 9, 2025