Stop copy-pasting errors. Get instant fixes right in your terminal..
🚀 No API Key? No Problem! Includes a completely free mode out of the box.
Install · Usage · How it Works · Contributing
errpipe is an interactive shell wrapper built in Go that monitors your commands. When a command fails, it automatically captures the error output and sends it to your preferred LLM for immediate analysis and fixes.
Instead of switching to your browser manually, errpipe brings the fix to you, either directly in your terminal or by automating your browser.
Windows (PowerShell)
irm https://github.com/diamondosas/errpipe/releases/download/vlatest/install.ps1 | iexmacOS / Linux
curl -fsSL https://github.com/diamondosas/errpipe/releases/download/vlatest/install.sh | shFrom Source (Go required)
Ensure you have Go installed (1.21+ recommended).
git clone https://github.com/diamondosas/errpipe
cd errpipe
go mod tidy
go build -o errpipeAdd the resulting binary to your system PATH.
Run errpipe to start the interactive session. On your first run, it will automatically guide you through a quick setup.
errpipeOnce inside the errpipe shell, run your commands as usual. It works with any language or tool:
# Go
[EP] C:\projects\myapp> go build
# Python
[EP] ~/projects/myapp$ python main.py
# Node.js
[EP] ~/projects/myapp$ node app.js
# Rust
[EP] ~/projects/myapp$ cargo build
# If any command fails, errpipe automatically captures the stderr and triggers the AI--help: Show help message.--init: Reconfigure the application.exit: Leave theerrpipeshell.
errpipe supports multiple ways to interact with AI:
| Provider | Status | Inline (Streaming) | CLI Mode | Web Mode |
|---|---|---|---|---|
| Free Mode | ✅ Supported | ✅ Yes | ❌ No | ❌ No |
| Google Gemini | ✅ Supported | ✅ Yes | ✅ Yes | ✅ Yes |
| Anthropic Claude | ✅ Supported | ✅ Yes | ✅ Yes | ✅ Yes |
| OpenAI ChatGPT | ✅ Supported | ✅ Yes | ✅ Yes | ✅ Yes |
- Free Mode: Completely free, built-in AI mode. No API key required!
- Inline CLI Mode: Streams AI responses directly into your terminal. Requires an API Key from the provider.
- CLI Mode: Interacts with the official CLI tools of the providers installed on your system.
- Web Mode: Automatically detects your browser, opens the provider's chat page, and types the error message for you using browser automation.
- REPL:
errpipeacts as a thin wrapper around your default shell (cmd/powershellon Windows,sh/bashon Linux/macOS). - Monitor: It pipes
stdoutandstderrto your terminal while also capturingstderrin a buffer. - Trigger: If a command returns a non-zero exit code,
errpipesends the capturedstderrto the configured AI service. - Analysis: Depending on your mode, it will either stream the fix directly or automate your environment to get you the answer.
errpipe runs locally and only sends data to the LLM when a command fails. Be mindful of sensitive information in your error logs before sending them to public AI models.
PRs are welcome.
- Fork the repo
- Create your feature branch (
git checkout -b feature/amazing) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing) - Open a Pull Request
MIT.