AI-powered CLI that explains programming errors using a persistent cache and LLMs.
Project description
fixr ⚡
AI-powered CLI that explains errors and suggests fixes — using a hashtable cache + LLM hybrid.
pip install fixr-cli
How it works
your error
│
▼
SHA256 cache lookup ─> hit ─> instant fix ⚡ (no LLM call)
│
miss
▼
LiteLLM → Groq / Gemini / Mistral / OpenAI / Anthropic / ...
│
▼
cache result → show fix
Identical errors are resolved instantly from cache. The tool gets faster the more you use it.
Usage
# Run any file — fxr captures the error automatically
fxr script.py
fxr main.rs
fxr app.js
fxr main.cpp
fxr Main.java
fxr main.go
# Paste an error directly
fxr "TypeError: unsupported operand type(s) for +: 'int' and 'str'"
# Pipe any command
python script.py 2>&1 | fxr
cargo build 2>&1 | fxr
Setup
# 1. Install
pip install fixr-cli
# or
uv add fixr-cli
# 2. Run setup wizard (select provider, model, paste API key)
fxr setup
Setup takes 30 seconds. Free API keys work — no credit card needed.
Free Tier Providers
| Provider | Free API | Speed |
|---|---|---|
| Groq | ✅ | ⚡⚡ Faster (free) |
| Cerebras | ✅ | ⚡ Fast (free) |
| Gemini | ✅ | ✅ Good |
| Mistral | ✅ | ✅ Good |
| OpenRouter | ✅ | ✅ Good |
| Ollama | ✅ Local | Depends on hardware |
| OpenAI | ❌ Paid | ⚡⚡⚡ Fastest overall |
| Anthropic | ❌ Paid | ⚡ Fast |
Default: Groq → llama-3.3-70b-versatile
Commands
fxr setup # interactive setup wizard
fxr providers # list all providers + models
fxr config --show # show current config
fxr config --provider groq --api-key # set API key
fxr add-model <provider> <model> # add custom model
fxr clear-cache # wipe local cache
Languages Supported
Python · JavaScript · TypeScript · Rust · C · C++ · Java · Go · Ruby · PHP · Bash · Lua · Perl · R · Swift · Kotlin
Architecture
fixr/
├── main.py # Typer CLI — commands + cli() entrypoint
├── cache.py # SHA256 hashtable — ~/.fixr/cache.json
├── llm.py # LiteLLM routing — 10+ providers
├── config.py # Config store — ~/.fixr/config.json
└── auth.py # API key storage + OAuth scaffold
Stack
Python · Typer · LiteLLM · Rich · Hatchling · uv
License
MIT
Project details
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 fixr_cli-0.1.3.tar.gz.
File metadata
- Download URL: fixr_cli-0.1.3.tar.gz
- Upload date:
- Size: 7.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
385ad22bdc07cfb63d53a8ee52db154ca412a44da4735b3bd7af6a50666c8791
|
|
| MD5 |
dc18e69efa4359ab51e6fe250bf8107a
|
|
| BLAKE2b-256 |
c9e57e84baa7161c3346a47fc71a0f869be38befe5f6e3d18727b5e26f76dbba
|
File details
Details for the file fixr_cli-0.1.3-py3-none-any.whl.
File metadata
- Download URL: fixr_cli-0.1.3-py3-none-any.whl
- Upload date:
- Size: 9.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.12.9
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a7cc5c74775c9b6f0c99b48403fde3792508d6d502665c0fd34c1cbc64aa4f51
|
|
| MD5 |
2a028449fdafd198800077b07c08a319
|
|
| BLAKE2b-256 |
3e49bbefa72754b0d16571989f7e724eaf95b4e761dadc50080703ae3712e946
|