Paste or pipe any error message and get a plain-English explanation powered by Claude
Project description
errex — Error Explainer
Paste or pipe any error message and get a clear, plain-English explanation powered by Claude.
$ cat traceback.txt | errex.py
────────────────────────────────────────────────────
errex — Error Analysis
────────────────────────────────────────────────────
**TypeError: unsupported operand type(s) for +: 'int' and 'str'**
This is a Python type error...
Install
pip install errex
export ANTHROPIC_API_KEY=sk-...
Requires Python 3.9+ and an Anthropic API key.
Usage
# Interactive — paste your error, then Ctrl+D (Mac/Linux) or Ctrl+Z+Enter (Windows)
errex
# Read from a file
errex traceback.txt
# Pipe from another command
cat error.log | errex
# Watch a log file and auto-explain errors as they appear
errex --watch server.log
# Get just the fix command, no explanation
errex --fix traceback.txt
# One-paragraph summary instead of full analysis
errex --brief traceback.txt
# Hint the language when the error is ambiguous
errex --lang rust traceback.txt
# Copy the explanation to the clipboard
errex --copy traceback.txt
# Structured JSON output (error_type, root_cause, fix_steps, gotchas)
errex --json traceback.txt
# Use a different Claude model
errex --model claude-opus-4-7 traceback.txt
# View past explanations
errex --history
errex --history "KeyError"
Web UI
errex --web
# → opens http://localhost:7337
Paste your error in the browser, pick a model, hit Explain (or ⌘Enter). No extra dependencies.
Shell integration
Run errex --install-shell to add an errex-last function to your shell config.
After any failed command, just run errex-last to explain why it failed.
Config file
Create ~/.errexrc to set your defaults (all fields optional):
{
"model": "claude-opus-4-7",
"brief": false,
"lang": "python"
}
CLI flags always override the config file.
Past explanations are saved to ~/.errex_history (one JSON object per line).
What you get
For any error, errex explains:
- What kind of error it is and which language or tool produced it
- What it means in plain English
- The most likely root cause, ranked by probability
- Numbered fix steps with code snippets where helpful
- Common gotchas — the non-obvious things that trip people up
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file errex-0.8.0.tar.gz.
File metadata
- Download URL: errex-0.8.0.tar.gz
- Upload date:
- Size: 22.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d7092ce205283f417c16a1a3750aae6698b59332880ededd3411af351fbee2c9
|
|
| MD5 |
a0861af36a91dc13e24afae6779d81a2
|
|
| BLAKE2b-256 |
fbd3ccf287e665c262230cb4bf8004325e562fe25c5d539efc4f21469fc23cac
|
File details
Details for the file errex-0.8.0-py3-none-any.whl.
File metadata
- Download URL: errex-0.8.0-py3-none-any.whl
- Upload date:
- Size: 21.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.11.15
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
181a27353b5b3bd17bd5ea1fde8f80bec900b0e57a309ee2380d116727cc0bf2
|
|
| MD5 |
1622a971c605024f06cde4e4fac71ba4
|
|
| BLAKE2b-256 |
9c0377475b5ab26dee1838ffb053ffc382037e4b56672e5f67deb713a5c37524
|