AI-powered GitHub issue fixer that creates PRs while you sleep 😴
GitFixer watches your GitHub repositories and automatically fixes bugs using open-source AI models. When a new issue is opened, it analyzes your codebase, generates a fix, and creates a pull request — all without human intervention.
- 🤖 Automatic Bug Fixing — New issue opened? AI reads your code, understands the bug, and creates a PR
- 🔓 100% Open Source AI — Choose from DeepSeek R1, Qwen2.5, Mixtral, or bring your own API key
- 🆓 Free Tier Friendly — HuggingFace integration means you can run this for $0
- ⚡ Smart Fallback — If one AI hits rate limits, automatically switches to another
- 🔐 Secure — API keys encrypted with AES-256-GCM, GitHub OAuth for auth
- 🌙 Works 24/7 — Fixes issues even when you're asleep
- Unmaintained repos with piling issues
- Research paper code that nobody has time to maintain
- Side projects you built 3 years ago
- Open source maintainers drowning in bug reports
- Framework: Next.js 15 (App Router)
- Database: PostgreSQL (Neon Serverless)
- Auth: NextAuth.js + GitHub OAuth
- Background Jobs: Inngest
- AI: HuggingFace Inference API / OpenAI / Google Gemini / Anthropic
- Styling: Tailwind CSS
- Deployment: Vercel
- Node.js 18+
- PostgreSQL database (recommend Neon)
- GitHub OAuth App
- At least one AI API key (HuggingFace is free!)
git clone https://github.com/eeshwarantharan/GitFixer.git
cd GitFixer
npm installCopy the example env file:
cp .env.example .envFill in your credentials:
# Database
DATABASE_URL="postgresql://..."
# NextAuth
NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET="your-secret-here" # Generate: openssl rand -base64 32
# GitHub OAuth (https://github.com/settings/developers)
GITHUB_CLIENT_ID="..."
GITHUB_CLIENT_SECRET="..."
GITHUB_WEBHOOK_SECRET="your-webhook-secret"
# Encryption (for API keys)
ENCRYPTION_KEY="..." # Generate: openssl rand -hex 32
# Inngest (https://inngest.com)
INNGEST_EVENT_KEY="..."
INNGEST_SIGNING_KEY="..."npx prisma generate
npx prisma db push# Terminal 1: Next.js
npm run dev
# Terminal 2: Inngest Dev Server
npx inngest-cli@latest devOpen http://localhost:3000 🎉
- Push to GitHub
- Import to Vercel
- Add all environment variables
- Deploy!
Important: After deployment, update:
NEXTAUTH_URLto your Vercel URL- GitHub OAuth callback URL to
https://your-app.vercel.app/api/auth/callback/github - Inngest integration (connect via Vercel integration)
- Go to huggingface.co/settings/tokens
- Create new token with "Read" access
- Add to GitFixer Settings
- Go to aistudio.google.com/apikey
- Create API key
- Add to GitFixer Settings
- Go to platform.openai.com/api-keys
- Create new secret key
- Add to GitFixer Settings
1. You enable "Watch" on a repository
↓
2. GitFixer creates a webhook on that repo
↓
3. New issue opened → GitHub notifies GitFixer
↓
4. Inngest triggers the fix-issue function
↓
5. AI analyzes code + generates fix
↓
6. GitFixer creates a PR with the solution
↓
7. You review & merge 🎉
Contributions welcome! Feel free to:
- Report bugs
- Suggest features
- Submit PRs
MIT © Tharan
Built with ❤️ at SeNSE Lab, IIT Madras
Open Source AI Models Used: