Skip to main content

On-device AI assistant for your terminal

Project description

huh

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.

Install

pip install huh-cli
huh install   # adds shell hook to ~/.zshrc or ~/.bashrc

Then open a new terminal (or source ~/.zshrc) to activate.

Usage

# 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-4bit

How it works

After 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-lm with a 4-bit quantized model
  • Everything else: uses llama-cpp-python with a GGUF model auto-downloaded on first use

No data leaves your machine.

Requirements

  • Python 3.10+
  • Apple Silicon Mac (MLX backend) or any machine that can run llama.cpp

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

huh_cli-0.1.0.tar.gz (8.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

huh_cli-0.1.0-py3-none-any.whl (9.2 kB view details)

Uploaded Python 3

File details

Details for the file huh_cli-0.1.0.tar.gz.

File metadata

  • Download URL: huh_cli-0.1.0.tar.gz
  • Upload date:
  • Size: 8.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for huh_cli-0.1.0.tar.gz
Algorithm Hash digest
SHA256 158eeb40b722dee7814db2c4b1f4f6cc6d0a0c820970023906f5f97f3481aa5f
MD5 46bdd49ebc92c397fa92c7fe3aab6147
BLAKE2b-256 0e9b703282f7649ae55e3e5236e155cf433678e83c724dd09d5a1ff2b32c532e

See more details on using hashes here.

File details

Details for the file huh_cli-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: huh_cli-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 9.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.13.3

File hashes

Hashes for huh_cli-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 23ce7f7d5d789843c45fa203aac25642e1a81d8fa5787be149189a6a31eb281b
MD5 b138ad3abec5f079e132b2103f2c411c
BLAKE2b-256 9233c484d9f671b141968b73e9e0633c72458de0219bea68d3491c70caa6217f

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page