AI-powered CLI tool for intelligent log analysis and incident triage using Google Gemini API.
Built for HackLondon 2026 :)
npm Package: @ceasermikes/edgecli
Documentation: https://ceasermikes002.github.io/edgecli/
- 🔍 Real-time log watching (files or stdin)
- 🤖 AI-powered triage with confidence scoring
- 🔬 Deep analysis with root cause detection
- 💊 Automated patch suggestions (diff format)
- 🎙️ Voice alerts with ElevenLabs AI (74 languages)
- 📊 Transparent metrics (latency, tokens)
- 🎭 Mock simulation mode for testing
- ✨ Beautiful gradient UI with brand colors
- 🌍 Language-agnostic - Works with ANY programming language!
npm install -g @ceasermikes/edgecliThat's it! No cloning, no setup - just install and go.
# Clone or navigate to the project
cd edgecli
# Install dependencies
npm install
# Build the project
npm run build
# Link globally for local development
npm link
# Now you can use edgecli command
edgecli --help-
Get your Gemini API key from Google AI Studio
-
Run the interactive setup:
edgecli initThis will:
- Prompt you to enter your Gemini API key (securely)
- Let you choose which Gemini model to use
- Optionally configure ElevenLabs voice alerts
- Save your configuration locally
EdgeCLI supports AI-powered voice alerts using ElevenLabs. During setup, you can:
- Enable voice notifications for critical incidents
- Choose from 30+ professional voices (male/female, various accents)
- Select severity threshold (info/warning/error/critical)
- Pick from multiple voice models (multilingual, turbo, flash)
Get your ElevenLabs API key from ElevenLabs Settings
- gemini-2.5-flash ⭐ (Recommended) - Latest flash model, fast and efficient
- gemini-2.5-pro - Most capable 2.5 model for complex analysis
- gemini-2.0-flash - Stable 2.0 flash model
- gemini-3-flash - Next-gen flash model
- gemini-3-pro - Next-gen pro model with maximum capability
You can also set API keys via environment variables (overrides config):
# Linux/macOS
export GEMINI_API_KEY="your-api-key-here"
export ELEVENLABS_API_KEY="your-elevenlabs-key-here"
# Windows PowerShell
$env:GEMINI_API_KEY="your-api-key-here"
$env:ELEVENLABS_API_KEY="your-elevenlabs-key-here"edgecli watch app.logedgecli watch app.log --voicenpm run dev 2>&1 | edgecli watch --stdinedgecli watch app.log --no-voiceedgecli suggest --file src/auth.jsedgecli simulateedgecli stats# Interactive configuration
edgecli voice
# Enable voice alerts
edgecli voice --enable
# Disable voice alerts
edgecli voice --disable
# Test voice output
edgecli voice --testEdgeCLI is language-agnostic - it works with ANY programming language! If your application writes to stdout/stderr, EdgeCLI can monitor it.
JavaScript/TypeScript:
# Node.js / Express
npm run dev 2>&1 | edgecli watch --stdin --voice
# NestJS
npm run start:dev 2>&1 | edgecli watch --stdin --voice
# Next.js
npm run dev 2>&1 | edgecli watch --stdin --voicePython:
# Django
python manage.py runserver 2>&1 | edgecli watch --stdin --voice
# Flask
flask run 2>&1 | edgecli watch --stdin --voice
# FastAPI
uvicorn main:app --reload 2>&1 | edgecli watch --stdin --voiceJava:
# Spring Boot
./mvnw spring-boot:run 2>&1 | edgecli watch --stdin --voice
# Gradle
./gradlew bootRun 2>&1 | edgecli watch --stdin --voiceGo:
go run main.go 2>&1 | edgecli watch --stdin --voiceRuby:
# Rails
rails server 2>&1 | edgecli watch --stdin --voicePHP:
# Laravel
php artisan serve 2>&1 | edgecli watch --stdin --voiceRust:
cargo run 2>&1 | edgecli watch --stdin --voiceC# / .NET:
dotnet run 2>&1 | edgecli watch --stdin --voiceElixir:
# Phoenix
mix phx.server 2>&1 | edgecli watch --stdin --voiceDocker:
docker logs -f container_name 2>&1 | edgecli watch --stdin --voiceKubernetes:
kubectl logs -f pod-name 2>&1 | edgecli watch --stdin --voiceSystem Logs:
tail -f /var/log/syslog 2>&1 | edgecli watch --stdin --voiceEdgeCLI analyzes text output, not code:
- ✅ Reads stdout/stderr from any application
- ✅ AI understands error patterns across all languages
- ✅ Recognizes stack traces, exceptions, and error messages universally
- ✅ Automatically detects language and framework from logs
- Light Triage: Quick classification (severity, hypothesis, confidence)
- Auto-escalation: If confidence < 65%, chains to deep analysis
- Deep Analysis: Root cause detection + patch generation
- Voice Alerts: Optional AI voice notifications for critical incidents
- Privacy-first: Logs summarized locally, sensitive data masked
EdgeCLI integrates ElevenLabs for professional voice alerts:
- 30+ Voices: Choose from male/female voices with various accents (American, British, Australian, Irish, Italian-English)
- 4 Models: Multilingual V2 (emotionally rich), Turbo V2.5 (low latency), Flash V2.5 (fastest), Flash V2
- Smart Filtering: Only speak alerts above your chosen severity threshold
- Streaming: Low-latency audio streaming for instant notifications
- 74 Languages: Multilingual support for global teams
Perfect for:
- On-call engineers monitoring multiple terminals
- Hands-free incident response
- Accessibility and screen-free monitoring
- High-pressure situations requiring immediate attention
# Terminal 1: Run your app
npm run dev 2>&1 | tee app.log
# Terminal 2: Watch with EdgeCLI
edgecli watch app.log
# See AI triage in real-time!Comprehensive HTML documentation is available at: https://ceasermikes002.github.io/edgecli/
Or view locally by opening docs/index.html in your browser for:
- Complete command reference
- Voice alerts guide
- Configuration options
- Language support examples
- Troubleshooting tips
- API reference
- Examples and use cases
npm installnpm run buildnpm testnpm link- Node.js >= 18
- Google Gemini API key (get one at Google AI Studio)
Built for HackLondon 2026 :)