Installation Guide
This guide describes how to install the AI Cluster Runtime (AICR) CLI tool (aicr) on Linux, macOS, or Windows.
What is AICR: AICR generates validated configurations for GPU-accelerated Kubernetes deployments. See README for project overview.
Prerequisites
- Operating System: Linux, macOS, or Windows (via WSL)
- Kubernetes Cluster (optional): For agent deployment or bundle generation testing
- GPU Hardware (optional): NVIDIA GPUs for full system snapshot capabilities
- kubectl (optional): For Kubernetes agent deployment
Install aicr CLI
Option 1: Homebrew (macOS/Linux)
Option 2: Automated Installation
Install the latest version using the install script:
To install to a custom directory instead of the default /usr/local/bin:
Optional: if you hit GitHub API rate limits, set GITHUB_TOKEN before running the install command. No special repository scope is required for public releases.
This script:
- Detects your OS and architecture automatically
- Downloads the appropriate binary from GitHub releases
- Installs to
/usr/local/bin/aicrby default (use-d <dir>for a custom location) - Installs shell completions for bash, zsh, and fish (set
AICR_NO_COMPLETIONS=1to skip) - Verifies the installation
- Uses
GITHUB_TOKENenvironment variable for authenticated API calls (avoids rate limits)
Supply Chain Security: AICR includes SLSA Build Level 3 compliance with signed SBOMs and verifiable attestations. See SECURITY for verification instructions.
Option 3: Manual Installation
- Download the latest release
Visit the releases page and download the appropriate binary for your platform:
- macOS ARM64 (M1/M2/M3):
aicr_<version>_darwin_arm64.tar.gz - macOS Intel:
aicr_<version>_darwin_amd64.tar.gz - Linux ARM64:
aicr_<version>_linux_arm64.tar.gz - Linux x86_64:
aicr_<version>_linux_amd64.tar.gz
- Extract and install
Option 4: Build from Source
Requirements:
- Go 1.26 or higher
Verify Installation
Check that aicr is correctly installed:
Expected output shows version information and available commands.
Post-Installation
Shell Completion
Tab completion for commands and flags is installed automatically by both the Homebrew formula and the install script. No manual setup is required.
Opt out (install script only): set AICR_NO_COMPLETIONS=1 before running the script:
Manual setup (build from source or go install):
Bash:
Zsh:
Fish:
Alternatively, source completions dynamically in your shell RC file (evaluates on every shell start):
Container Images
AICR is also available as container images for integration into automated pipelines:
CLI Image
API Server Image (Self-hosting)
Next Steps
See CLI Reference for command usage
Troubleshooting
Command Not Found
If aicr is not found after installation:
Permission Denied
GPU Detection Issues
Snapshot GPU measurements require nvidia-smi in PATH:
Uninstall
Getting Help
- Documentation: User Documentation
- Issues: GitHub Issues
- API Server: See Kubernetes Deployment