Skip to content

About

πŸ€– Bring-your-own-key AI code reviewer GitHub Action. Supports Gemini, OpenAI, Anthropic, Groq, Ollama & more. Sticky PR comments, inline annotations, SARIF, severity tiers, and CI gating β€” zero setup with npx init.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Latest commit

Β 

History

6 Commits

Folders and files

Repository files navigation

πŸ€– Erix Buddy

Open-source AI code reviewer for any GitHub repo. Bring your own LLM key. Drop into a workflow in two minutes. CodeRabbit-class output, zero lock-in.

GitHub Marketplace npm License: MIT Stars

Erix Buddy is a CodeRabbit-style PR / codebase reviewer that runs as a GitHub Action or locally as a CLI. It produces walkthroughs, mermaid sequence diagrams, severity-tiered findings, suggested patches, SARIF, GitHub annotations, and risk-scored markdown reports β€” using any LLM provider you have a key for.

This repository hosts the GitHub Action manifest (action.yml), workflow recipes, and end-user documentation. The runtime lives in a separate npm package and is invoked via npx. β†’ @ecodrix/erix-buddy


⚑ 60-second setup

# 1. Scaffold a review workflow + config in your repo
npx @ecodrix/erix-buddy init

# 2. Set your provider API key as a GitHub secret
gh secret set GEMINI_API_KEY

# 3. Commit and push
git add .github/workflows/erix-review.yml .codereview.json .erixignore
git commit -m "chore: add Erix code review"
git push

Your next pull request gets an automatic AI review.

Want to try it locally first? GEMINI_API_KEY=… npx @ecodrix/erix-buddy --staged


✨ Features

πŸ”Œ 12 LLM providers Gemini, Vertex AI, OpenAI, Anthropic Claude, Ollama (local), OpenRouter, Groq, Azure OpenAI, DeepSeek, Mistral, xAI Grok, ECODrix-hosted
πŸ”‘ Bring your own key Credentials never leave your machine or your CI runner
πŸ“ PR walkthrough Title, summary, change table, mermaid sequence diagrams
🎯 Per-file deep review Severity tiers (critical / major / minor / nitpick / info), 10 categories, confidence, CWE IDs
🧭 Cross-cutting pass Architecture / consistency issues that span files
πŸ’¬ Sticky PR comment Updates in place on every push, no comment spam
πŸ“Š Risk score Per-file and PR-level (0–100)
πŸ“‚ Full audit mode Walk the whole codebase with content-hash cache, file-limit guard
πŸ”§ Auto-fix patches Optional git apply of high-confidence fixes
πŸ›  Reports Markdown, JSON, SARIF (drops into GitHub code-scanning), GH annotations, console
🚦 CI gating Fail the build on critical/major issues
πŸ”“ MIT licensed No telemetry, no phone-home, hackable

πŸ§ͺ GitHub Action β€” copy-paste workflow

# .github/workflows/erix-review.yml
name: AI Code Review

on:
  pull_request:
    types: [opened, synchronize, reopened, ready_for_review]

permissions:
  contents: read
  pull-requests: write

jobs:
  review:
    if: github.event.pull_request.draft == false
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
        with: { fetch-depth: 0 } # full history for branch diffs

      - uses: ecodrix/erix_buddy@v1
        with:
          provider: gemini
          api-key: ${{ secrets.GEMINI_API_KEY }}
          mode: branch
          branch: origin/${{ github.base_ref }}
          severity: minor
          fail-on-blocking: "true"
          post-pr-comment: "true"

The full input list is in action.yml. Other recipes live in examples/.


πŸ”Œ Supported providers

Provider provider: id Required secret(s) Local?
Google Gemini API gemini GEMINI_API_KEY ❌
Google Vertex AI vertex GOOGLE_CLOUD_PROJECT, CLOUD_ML_REGION ❌
OpenAI openai OPENAI_API_KEY ❌
Anthropic Claude anthropic ANTHROPIC_API_KEY ❌
Ollama ollama OLLAMA_HOST (default http://127.0.0.1:11434) βœ…
OpenRouter openrouter OPENROUTER_API_KEY ❌
Groq groq GROQ_API_KEY ❌
Azure OpenAI azure-openai AZURE_OPENAI_API_KEY, AZURE_OPENAI_ENDPOINT, AZURE_OPENAI_DEPLOYMENT ❌
DeepSeek deepseek DEEPSEEK_API_KEY ❌
Mistral AI mistral MISTRAL_API_KEY ❌
xAI Grok xai XAI_API_KEY ❌
ECODrix Hosted ecodrix ECODRIX_REVIEWER_TOKEN ❌

The ecodrix provider is the optional ECODrix-hosted relay for users who don't want to bring their own key. The reviewer itself never contacts ECODrix unless you explicitly select it.


πŸ’» Run locally

# Interactive setup (saves credentials to ~/.config/erix-reviewer.json, mode 0600)
npx @ecodrix/erix-buddy

# Review staged changes
npx @ecodrix/erix-buddy --staged

# Audit the whole codebase, only major+ issues
npx @ecodrix/erix-buddy --full --severity major --max-files 200

# Use Ollama, no API key required
npx @ecodrix/erix-buddy --provider ollama --model qwen2.5-coder:7b

pnpm dlx and bunx work the same. Full local CLI guide β†’ docs/local-cli.md.


πŸ“š Documentation


🍳 Recipes


πŸ›‘οΈ Security

  • API keys live only in GitHub Secrets (CI) or ~/.config/erix-reviewer.json mode 0600 (local). They are never sent anywhere except the provider you selected.
  • Erix Buddy never phones home. There is no telemetry, no usage tracking, no analytics.
  • Treat LLM-generated patches as suggestions β€” always review before applying.
  • See SECURITY.md for the responsible disclosure policy.

πŸ†š How does this compare to CodeRabbit?

CodeRabbit Erix Buddy
Open source ❌ βœ… MIT
Bring your own LLM key Limited βœ… 12 providers
Run locally without a server ❌ βœ…
Local Ollama support (free / private) ❌ βœ…
GitHub Action βœ… βœ…
GitHub Marketplace βœ… βœ…
Inline review comments βœ… 🟑 in progress
Sticky PR walkthrough βœ… βœ…
Mermaid sequence diagrams βœ… βœ…
Severity tiers + categories βœ… βœ…
SARIF export 🟑 βœ…
Self-hostable ❌ βœ…
Cost $24/dev/mo $0 + your provider's metering

We're not pretending to have full parity yet β€” see the roadmap. But the trade-off is clear: own your tooling, choose your model, pay only for the tokens you actually use.


🀝 Contributing

We welcome issues, PRs, and recipes! Read CONTRIBUTING.md before submitting.


πŸ“„ License

MIT β€” built and maintained by ECODrix.

About

πŸ€– Bring-your-own-key AI code reviewer GitHub Action. Supports Gemini, OpenAI, Anthropic, Groq, Ollama & more. Sticky PR comments, inline annotations, SARIF, severity tiers, and CI gating β€” zero setup with npx init.

Resources

Code of conduct

Contributing

Security policy

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages