alash

Your shell. Your AI. No API keys.

Ask questions, understand failures and generate commands directly from your terminal.

# 1. get the binary (needs Rust's cargo)
cargo install --git https://github.com/hmedkouri/alash

# 2. add this line to ~/.zshrc (bash: alash init bash, in ~/.bashrc)
eval "$(alash init zsh)"

# 3. open a new shell
ask --doctor
ask how do I list listening ports
why

alash needs Claude Code or the Codex CLI installed and logged in.

What it is

ask, why and a command-line key binding for zsh and bash, answered by the AI CLI you are already logged in to. No API key: alash runs claude or codex for one answer, with the model's tools switched off.

Alash is "why" in Moroccan Darija.

Use

$ ask how do I list listening ports
$ make |& ask why does this fail
$ ask @codex what does set -o pipefail do

$ tar xf missing.tar
tar: missing.tar: Cannot open: No such file or directory
$ why

$ five biggest files here▌            # press Ctrl-X Ctrl-A
$ find . -type f -printf '%s\t%p\n' | sort -rn | head -5▌

The key binding replaces what you typed with one command and stops. It never runs it.

why sees the command you ran, not what it printed. To include the output, pipe it: cmd |& ask why does this fail.

What it will not do

Limits