| Crates.io | log-genius |
| lib.rs | log-genius |
| version | 0.1.0 |
| created_at | 2025-07-09 15:43:56.881346+00 |
| updated_at | 2025-07-09 15:43:56.881346+00 |
| description | An AI-powered CLI to instantly analyze and explain complex logs. |
| homepage | https://github.com/LunaStev/log-genius |
| repository | https://github.com/LunaStev/log-genius |
| max_upload_size | |
| id | 1745049 |
| size | 137,805 |
Don't read logs. Understand them.
log-genius is a smart CLI tool that uses AI to analyze and explain complex logs. Stop deciphering cryptic error messages and get human-readable summaries, potential causes, and actionable solutions directly in your terminal.

log-genius?log-genius speaks your language.docker-compose logs | log-genius is all you need.log-genius error.log.You must have an OpenAI API key. You can get one from the OpenAI Platform.
cargo (Recommended)If you have the Rust toolchain installed, you can install log-genius with a single command:
cargo install log-genius
Download the pre-compiled binary for your operating system from the Releases page. Unzip it and place it in a directory within your $PATH.
git clone https://github.com/LunaStev/log-genius.git
cd log-genius
cargo build --release
target/release/log-genius.log-genius requires your OpenAI API key to function. Set it as an environment variable:
export OPENAI_API_KEY="sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
To make this permanent, add the line above to your shell's configuration file (e.g., .zshrc, .bash_profile, or .bashrc).
Alternatively, you can create a .env file in the directory where you run log-genius (or in your project's root) with the following content:
# .env
OPENAI_API_KEY=sk-xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
log-genius is designed to be simple and intuitive.
Pipe the output of any command that generates logs directly into log-genius.
# Analyze Docker Compose logs
docker-compose logs | log-genius
# Analyze Kubernetes pod logs
kubectl logs my-pod-name | log-genius
# Analyze a service's journald logs
journalctl -u my-service.service -n 50 | log-genius
You can also pass a log file path as an argument.
log-genius /path/to/your/error.log
Contributions are welcome! Whether it's a bug report, a feature request, or a pull request, please feel free to get involved. Check out the CONTRIBUTING.md file for more details.