Installation
One-Line Install (recommended)
bash
curl -fsSL https://raw.githubusercontent.com/utensils/mold/main/install.sh | shDownloads the latest pre-built binary to ~/.local/bin/mold. On Linux, the installer auto-detects your NVIDIA GPU architecture (RTX 40-series or RTX 50-series). macOS builds include Metal support.
Override the GPU architecture:
bash
MOLD_CUDA_ARCH=sm120 curl -fsSL ... | sh # Blackwell (RTX 50-series)
MOLD_CUDA_ARCH=sm89 curl -fsSL ... | sh # Ada (RTX 40-series)Nix
bash
# Run directly — no install needed
nix run github:utensils/mold -- run "a cat"
# Blackwell / RTX 50-series
nix run github:utensils/mold#mold-sm120 -- run "a cat"
# Add to your system profile
nix profile install github:utensils/moldFrom Source
bash
cargo build --release -p mold-ai --features cudabash
cargo build --release -p mold-ai --features metalRequires Rust 1.85+ and CUDA toolkit (Linux) or Xcode (macOS).
Optional features can be added to the same build, for example --features cuda,preview,expand,discord or --features metal,preview,expand,discord if you also want terminal preview, local prompt expansion, or the Discord bot commands.
Docker
bash
docker pull ghcr.io/utensils/mold:latest
docker run --gpus all -p 7680:7680 ghcr.io/utensils/mold:latestSee Docker & RunPod for full deployment instructions.
Pre-Built Binaries
Available on the releases page:
| Platform | File |
|---|---|
| macOS Apple Silicon | mold-aarch64-apple-darwin.tar.gz |
| Linux x86_64 (Ada, RTX 4090 / 40-series) | mold-x86_64-unknown-linux-gnu-cuda-sm89.tar.gz |
| Linux x86_64 (Blackwell, RTX 5090 / 50-series) | mold-x86_64-unknown-linux-gnu-cuda-sm120.tar.gz |
Shell Completions
bash
source <(mold completions bash) # bash
source <(mold completions zsh) # zsh
mold completions fish | source # fish