Install Heidi CLI with a single command! The installer will automatically:
- Clone the latest version from GitHub
- Install all dependencies
- Build and install Heidi CLI
- Verify the installation
- Clean up temporary files
- Python 3.10+ - Download Python
- Git - Download Git
- pip - Usually included with Python
- CUDA - For GPU acceleration (automatic if available)
- Admin/root access - For system-wide installation (optional)
# Download and run the installer
curl -fsSL https://raw.githubusercontent.com/heidi-dang/heidi-cli/main/install | bash
# Or download first, then run
wget https://raw.githubusercontent.com/heidi-dang/heidi-cli/main/install
chmod +x install
./install# Download and run the installer
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/heidi-dang/heidi-cli/main/install.ps1" -OutFile "install.ps1"
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
.\install.ps1# Clone the repository
git clone https://github.com/heidi-dang/heidi-cli.git
cd heidi-cli
# Run the installer
./install # Linux/macOS
# or
.\install.ps1 # Windows- 🔍 Check Requirements - Verifies Python, Git, and pip
- 📥 Clone Repository - Downloads latest Heidi CLI from main branch
- 🏗️ Setup Environment - Creates virtual environment
- 📦 Install Dependencies - Installs all required packages
- 🔨 Build Heidi CLI - Compiles and builds the application
- ⚙️ Install Heidi CLI - Installs system-wide or for current user
- ✅ Verify Installation - Tests that everything works
- 🧹 Clean Up - Removes temporary files
After successful installation, you'll have:
- ✅ Heidi CLI command available system-wide
- ✅ All dependencies installed and configured
- ✅ API key system ready to use
- ✅ Model hosting capabilities
- ✅ Complete documentation accessible
# Verify installation
heidi --version
# Run setup wizard
heidi setup
# Generate API key
heidi api generate --name "My First Key"
# Start model server
heidi model serve
# View help
heidi --help-
🔑 Generate API Key
heidi api generate --name "Production Key" --user "your-username"
-
🤖 Download Models
heidi hf search "text-generation" --limit 5 heidi hf download "TinyLlama/TinyLlama-1.1B-Chat-v1.0"
-
🌐 Start API Server
heidi api server
-
📚 Explore Documentation
# View comprehensive guide cat docs/how-to-use.md
User Installation (Default)
- Installs to
~/.local/bin(Linux/macOS) or%USERPROFILE%\AppData\Local\Programs(Windows) - No admin privileges required
- Available only for current user
System Installation (Admin Required)
- Installs to
/usr/local/bin(Linux/macOS) or system-wide (Windows) - Requires admin/root privileges
- Available for all users
# Linux/macOS - set custom prefix
export HEIDI_INSTALL_PREFIX="/opt/heidi-cli"
./install
# Windows - custom path
.\install.ps1 -InstallPath "C:\HeidiCLI"# Install Python 3.10+
# Ubuntu/Debian:
sudo apt update && sudo apt install python3 python3-pip python3-venv
# macOS (with Homebrew):
brew install python3
# Windows: Download from python.org# Ubuntu/Debian:
sudo apt install git
# macOS (with Homebrew):
brew install git
# Windows: Download from git-scm.com# Make installer executable
chmod +x install
# Or use bash directly
bash install# Add to PATH (Linux/macOS)
echo 'export PATH="$HOME/.local/bin:$PATH"' >> ~/.bashrc
source ~/.bashrc
# Or restart your terminal# Clean installation
rm -rf ~/.heidi
./install --force# Check system requirements
heidi doctor
# View installation logs
# Installer shows detailed error messages
# Get community help
# GitHub Issues: https://github.com/heidi-dang/heidi-cli/issues
# Discord: https://discord.gg/heidi-cli# Verify Heidi CLI is installed
heidi --version
# Check all systems
heidi doctor
# Test API key system
heidi api config
# List available models
heidi api models🔑 Heidi API Key: heidik_abc123...
📋 User Information:
┌─────────────────┬─────────────────┐
│ User ID: │ default │
│ Key Name: │ Demo Key │
│ Rate Limit: │ 100 requests/min │
│ Usage Count: │ 0 requests │
└─────────────────┴─────────────────┘
🤖 Available Models:
• local://opencode-gpt-4
• hf://TinyLlama/TinyLlama-1.1B-Chat-v1.0
• opencode://gpt-4
# Re-run the installer (will update existing installation)
./install
# Or manually update
pip install --upgrade heidi-cli# Uninstall with pip
pip uninstall heidi-cli
# Remove configuration (optional)
rm -rf ~/.heidi🚀 Heidi CLI is now installed and ready to use!
- ✅ Generate API keys for unified model access
- ✅ Host models locally with automatic management
- ✅ Access HuggingFace models with smart integration
- ✅ Track usage and costs with built-in analytics
- ✅ Scale to production with enterprise features
- 📖 Complete Guide: docs/how-to-use.md
- 🔑 API Keys: docs/api-keys.md
- 🤖 Model Management: docs/model-management.md
- 💬 Community: Discord Server
🎯 Installation completed successfully! Welcome to Heidi CLI! 🚀
Last updated: March 2026
Installer version: 1.0.0
Heidi CLI version: 0.1.1