On-device AI assistant for your terminal. Run huh after a failed command and it tells you what you meant to type — no internet required.
pip install huh-cli
huh install # adds shell hook to ~/.zshrc or ~/.bashrcThen open a new terminal (or source ~/.zshrc) to activate.
# Fix your last failed command
huh
# Ask for any shell command
huh ask "compress a folder to tar.gz"
huh ask "find files modified in the last 24 hours"
# Copy suggestion to clipboard instead of running
huh --copy
huh ask "list open ports" --copy
# Show or change the model
huh model
huh model mlx-community/Qwen2.5-Coder-3B-Instruct-4bitAfter huh install, your shell captures the last failed command and exit code. When you run huh, it feeds that context along with a snapshot of your environment (OS, shell, CWD, git branch) to a local LLM and returns a single corrected command.
- Apple Silicon (M1/M2/M3): uses
mlx-lmwith a 4-bit quantized model - Everything else: uses
llama-cpp-pythonwith a GGUF model auto-downloaded on first use
No data leaves your machine.
- Python 3.10+
- Apple Silicon Mac (MLX backend) or any machine that can run llama.cpp