Explain your runtime errors with ChatGPT
FreeA terminal assistant for the hopelessly confused
FreeFree tier
About Explain your runtime errors with ChatGPT
wut is a CLI tool that explains the output of your last command. Just type 'wut' and an LLM (such as OpenAI's GPT-4 or Anthropic's Claude) will help you understand whatever's in your terminal. It can help with understanding stack traces, deciphering error codes, fixing incorrect commands, and summarizing logs. It supports multiple LLM providers including OpenAI, Anthropic, and local models via Ollama. Note: currently requires being inside a tmux or screen session.
Key Features
Explains the output of your last command using an LLM
Supports OpenAI, Anthropic Claude, and local models via Ollama
Helps understand stack traces, decipher error codes, fix incorrect commands, and summarize logs
Allows follow-up queries with a natural language question
Works inside tmux or screen sessions
Open source, MIT licensed, written in Python
Pros & Cons
Pros
- Simple and fast: just type 'wut' after a command to get an explanation
- Supports multiple LLM providers (OpenAI, Claude, Ollama)
- Can provide tailored explanations for specific questions using a query
- Open source and free to use
- Helps beginners and experienced users understand terminal output
Cons
- Requires tmux or screen session to capture the last command's output
- Requires setting up API keys for cloud-based LLMs (unless using local Ollama)
- Still in early development (v0.1.0) with limited features
- No automatic fix execution yet (roadmap item)
Best For
Understand stack tracesDecipher error codesFix incorrect commandsSummarize logsDebug terminal errorsLearn from command output
FAQ
How do I install wut?
Install via pip: pipx install wut-cli. Then set your LLM API key (OPENAI_API_KEY or ANTHROPIC_API_KEY) or configure a local Ollama model (OLLAMA_MODEL).
Which LLM providers does wut support?
wut supports OpenAI, Anthropic Claude, and local models via Ollama. You can customize the model and API URL for OpenAI.