Installation
Installation
Section titled “Installation”caro can be installed via Cargo (Rust’s package manager), from source, or using pre-built binaries.
Requirements
Section titled “Requirements”- Rust 1.75+ (for building from source)
- CMake (for MLX backend on macOS)
- 4GB RAM minimum, 8GB recommended
- 2GB disk space for model cache
Quick Install
Section titled “Quick Install”# Install caro from crates.iocargo install caro
# Verify installationcaro --version# Clone the repositorygit clone https://github.com/wildcard/caro.gitcd caro
# Build and installcargo install --path .
# Or build without installingcargo build --release# Download the latest releasecurl -fsSL https://github.com/wildcard/caro/releases/latest/download/caro-$(uname -s)-$(uname -m) -o caro
# Make executablechmod +x caro
# Move to your PATHsudo mv caro /usr/local/bin/Platform-Specific Instructions
Section titled “Platform-Specific Instructions”-
Install Rust (if not already installed):
Terminal window curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shsource "$HOME/.cargo/env" -
Install CMake (required for MLX):
Terminal window brew install cmake -
Install caro:
Terminal window cargo install caro -
Verify installation:
Terminal window caro --versioncaro "list files"
# Install dependenciessudo apt updatesudo apt install -y build-essential cmake curl
# Install Rustcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shsource "$HOME/.cargo/env"
# Install carocargo install caro# Install dependenciessudo dnf install -y cmake gcc-c++ curl
# Install Rustcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shsource "$HOME/.cargo/env"
# Install carocargo install caro# Install dependenciessudo pacman -S cmake base-devel curl
# Install Rustcurl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | shsource "$HOME/.cargo/env"
# Install carocargo install caroWindows
Section titled “Windows”# Using WSL2 (recommended)wsl --install# Then follow Linux instructions inside WSL
# Native Windows (experimental)# Install Rust from https://rustup.rscargo install caroVerifying Installation
Section titled “Verifying Installation”After installation, verify everything is working:
# Check versioncaro --version# Output: caro 0.1.0
# Test basic functionalitycaro "show current directory"# Output: pwd
# Test with a more complex querycaro "find all markdown files"# Output: find . -name "*.md"First Run
Section titled “First Run”On first run, caro will download the required model (~1.1GB):
$ caro "list files"Downloading model... [====================] 100%Model cached at ~/.cache/caro/models/
find . -type fConfiguration
Section titled “Configuration”caro stores configuration in:
- macOS:
~/Library/Application Support/caro/ - Linux:
~/.config/caro/ - Windows:
%APPDATA%\caro\
Model cache location:
- macOS:
~/Library/Caches/caro/models/ - Linux:
~/.cache/caro/models/ - Windows:
%LOCALAPPDATA%\caro\cache\
Troubleshooting
Section titled “Troubleshooting””command not found: caro”
Section titled “”command not found: caro””Ensure Cargo’s bin directory is in your PATH:
# Add to ~/.bashrc or ~/.zshrcexport PATH="$HOME/.cargo/bin:$PATH"
# Reload shellsource ~/.bashrc # or ~/.zshrcBuild fails with CMake error
Section titled “Build fails with CMake error”Install CMake:
# macOSbrew install cmake
# Ubuntu/Debiansudo apt install cmake
# Fedorasudo dnf install cmakeModel download fails
Section titled “Model download fails”Check your internet connection and try again:
# Clear partial downloadrm -rf ~/.cache/caro/models/
# Retrycaro "test"Next Steps
Section titled “Next Steps”- Quick Start - Learn the basics
- macOS Setup - Enable GPU acceleration
- Configuration - Customize caro