An autonomous AI agent that scans GitHub repositories for bugs, fixes them, and automatically opens Pull Requests.
Tech stack: FastAPI (backend) + React/Vite (frontend)
cd server
uv syncConfigure .env in server/:
GITHUB_CLIENT_ID=your_github_oauth_app_client_id
GITHUB_CLIENT_SECRET=your_github_oauth_app_client_secret
SESSION_SECRET_KEY=random_secret_key
APP_BASE_URL=http://localhost:8000
OPENROUTER_API_KEY=your_openrouter_api_key
OPENROUTER_MODEL=anthropic/claude-3-haikuRun locally:
uv run uvicorn app.main:app --reloadcd client
npm install
npm run devThe Vite dev server proxies /api requests to the backend automatically.
Build and run both services with a single command:
docker compose up -dThe frontend is served at http://localhost:3000 and the API at http://localhost:8000.
To rebuild after code changes:
docker compose up -d --buildTo stop:
docker compose downEnvironment variables are read from server/.env. See .env.example for all available options.
- Frontend — deploy
client/to Vercel withVITE_API_URLset to the backend URL - Backend — deploy
server/to Render with root directory set toserver, start commanduv run uvicorn app.main:app --host 0.0.0.0 --port $PORT, and env vars:APP_BASE_URL,COOKIE_SAMESITE=none,COOKIE_SECURE=true