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.1.tar.gz (9.4 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.1-py3-none-any.whl (10.1 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: huh_cli-0.1.1.tar.gz
  • Upload date:
  • Size: 9.4 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.1.tar.gz
Algorithm Hash digest
SHA256 57db133021a93160a054c85088229c8e91ce909464af593e75a6d0148f9fc86b
MD5 bf14087948c08c3e2fcfdbf9da152136
BLAKE2b-256 add36fe44d5776c7ece7dc918c05cf8592a73a57c50d94e19933ba6bc6a35882

See more details on using hashes here.

File details

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

File metadata

  • Download URL: huh_cli-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 10.1 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.1-py3-none-any.whl
Algorithm Hash digest
SHA256 51f029be12d221ec32d0d92e407f2e8f039a92170aafa33cdce71692f8b89b2b
MD5 adae6dee4a8fcf695dd4c34e3bca4bdc
BLAKE2b-256 3022b95464e93d780675dbc2ee64ae6d1ccb59b2acf52a2c96a42ae794b8b3b7

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