An AI-powered terminal command assistant for when TLDR isn't helpful and the man page is too long.
# go install
go install github.com/connorgannaway/how@latest
# homebrew
brew tap connorgannaway/tap
brew install how
# winget
winget source add -n connorgannaway https://github.com/connorgannaway/winget-pkgs
winget install connorgannaway.how
# scoop
scoop bucket add connorgannaway https://github.com/connorgannaway/scoops
scoop install howFirst time setup:
how --configureThen start asking questions:
how do I check if a process is listening on port 3000
how do I get open pr authors using gh and jq
how do I find all files modified in the last 7 daysPreconfigured cloud providers and models include
- OpenAI - GPT-5, GPT-4.1, GPT-4o, GPT-4, O-series models
- Anthropic - Claude Opus 4, Claude Sonnet 4.5, Claude 3.7/3.5
- Google - Gemini 2.5 Pro/Flash, Gemini 2.0 Flash
- xAI - Grok 4, Grok 3, Grok Code
The configuration flow includes a custom model field for models not listed.
Connect to any OpenAI-compatible API endpoint, including:
Local:
Cloud:
- Groq
- DeepSeek
- Perplexity
# Ask a question
how [question]
# Examples
how do I kill the process on port 8080
how do I compress png images over 20MB in a folder# Interactive configuration
how --configure
how -c
# View current configuration
how --status
how -s
# View with API key
how --status --key
how -s -k
# View all API keys
how --status --key --all
how -s -k -a
# Show full unmasked API keys
how --status --key --reveal-full# Interactive checklist to clear specific API keys
how --clear
how -r
# Clear all API keys at once
how --clear --all
how -r -a# Show version
how --version
how -v
# Show help
how --help
how -hConfig file location defaults to XDG_CONFIG_HOME if set, otherwise:
- macOS/Linux:
~/.config/how/config.json - Windows:
%APPDATA%\how\config.json
Example config:
{
"current_provider": "OpenAI-Compatible",
"current_model": "gemma3:4b",
"base_url": "http://localhost:11434/v1"
}API keys are stored in the user keyring:
- macOS: Keychain
- Windows: Credential Manager
- Linux: Secret Service (gnome-keyring)
MIT

