Whai
Whai is a lightweight AI terminal assistant that integrates directly into your native shell and workflow. The philosophy of whai is to supplement your normal terminal usage without taking control. You don't have to start a chat loop, alt-tab or copy paste.
Cost / License
- Free
- Open Source
Platforms
- Python
- Mac
- Linux
- Windows
- BSD
Features
Properties
- Lightweight
Features
- Command line interface
- Python-based
- AI-Powered
- Context-aware help
- AI Chatbot
- Terminal-based
Tags
- gemini-ai
- model-agnostic
- context-aware
- OpenAI
- anthropic
- Ollama
- lmstudio
- AI Assistant
- local-ai
Whai News & Activities
Recent activities
- niksavc liked Whai
- POX added Whai as alternative to hi - AI Assistant, TmuxAI and Warp Terminal
- POX added Whai
Whai information
What is Whai?
Whai is a lightweight AI terminal assistant that integrates directly into your native shell and workflow. The philosophy of whai is to supplement your normal terminal usage without taking control. You don't have to start a chat loop, alt-tab or copy paste. When you get stuck, need a command, or encounter an error, just call whai for help on demand.
Core features:
-
Analyze Previous Errors: If a command fails, you can call whai (no arguments needed!) or ask whai why did that fail?. It reads the failed command and its error output from your terminal history to provide a diagnosis and solution. Note: Command output is available when running inside tmux or a whai shell session. Otherwise, the model will only see your commands but not their outputs.
-
Persistent Roles (Memory): whai uses simple, file-based "Roles" to provide persistent memory. You define your context once, what machine you are on, what tools are available, your personal preferences, and how you like to work, and whai retains this context for all future interactions.
-
Session Context: When running inside tmux or a whai shell session, whai reads your command history and outputs to understand both what you ran and what happened.
-
Help On Demand: Get help as you're using your shell:
whai check my docker containers logs for errors whai "Is this resource usage normal?"
-
Requires Approval: Every whai command requires your explicit [a]pprove / [r]eject confirmation.
-
Model-Agnostic: Use models from OpenAI, Gemini, Anthropic, local Ollama models, and more.




