Autonomous self-healing DevOps engineer for incident response, remediation, and deployment hygiene.
Production teams still spend too much time turning logs, alerts, drift, and security findings into safe fixes. DevPilot AI compresses that loop into one browser workflow: analyze the signal, generate the remediation, review the plan, and apply recovery with an audit trail.
flowchart LR
Browser["Browser UI"] --> Frontend["Next.js frontend"]
Frontend -->|HTTP fetch| Backend["FastAPI backend"]
Backend --> Neon["Neon PostgreSQL"]
Backend --> OpenAI["OpenAI API"]
Backend --> GitHub["GitHub API"]
Backend --> Slack["Slack webhook"]
Frontend --> Vercel["Vercel deployment"]
Frontend --> Netlify["Netlify deployment"]
Backend --> Render["Render deployment"]
- Node.js 22+
- Python 3.12+
- Neon PostgreSQL for production
Backend .env:
APP_ENV=development
DATABASE_URL=
SESSION_SECRET=dev-only-change-me-please-generate-a-real-secret
OPENAI_API_KEY=
FRONTEND_ORIGINS=http://localhost:3000,http://127.0.0.1:3000
SSO_ENABLED=false
SSO_PROVIDER_NAME=Company SSO
SSO_DISCOVERY_URL=
SSO_CLIENT_ID=
SSO_CLIENT_SECRET=
DEVPILOT_MAX_REQUEST_BODY_BYTES=1500000
DEVPILOT_RATE_LIMIT_WINDOW_SECONDS=60
DEVPILOT_RATE_LIMIT_REQUESTS_PER_WINDOW=120
GITHUB_TOKEN=
GITHUB_REPOSITORY=owner/repo
Frontend .env.local:
NEXT_PUBLIC_API_URL=http://127.0.0.1:8000
NEXT_PUBLIC_ENABLE_LIVE_K8S_TWIN=false
Backend:
cd backend
copy .env.example .env
python -m pip install -r requirements.txt
uvicorn main:app --reload --host 127.0.0.1 --port 8000Frontend:
cd frontend
copy .env.example .env.local
npm ci
npm run devOpen http://127.0.0.1:3000.
The first visit to an app route prompts you to create the initial owner account.
Production sessions use an HttpOnly signed JWT cookie plus a CSRF token; team
and role access are read from the backend session instead of browser storage.
Enterprise SSO is available through any OIDC provider by setting
SSO_ENABLED=true, provider metadata, client credentials, and optional allowed
email domains.
cd backend
python -m pip install -r requirements-dev.txt
python -m py_compile main.py
python -m pytest
cd ../frontend
npm run lint
npm run build
npm run test:e2e- GitHub Actions CI is defined in
.github/workflows/ci.yml. It runs backend contract tests, dependency health checks, frontend lint, production build, Playwright E2E, and a high-severity npm audit gate on pull requests and pushes tomain. - Scheduled production smoke checks are defined in
.github/workflows/production-smoke.yml. They verify the live Vercel frontend routes, Render/healthand/ready, and public auth/SSO configuration endpoints every six hours. - The authenticated app includes
Production Monitoringat/monitoring. It shows API uptime, storage mode, frontend/backend URLs, SMTP, SSO, OpenAI, GitHub, Slack, CI/CD, and database readiness. - The monitoring page also captures beta user feedback into the backend database, giving DevPilot a real pilot-user pipeline instead of a static interest form.
- The public landing page includes a pilot access form backed by
/pilot/leads, so real buyer interest can be captured before a visitor creates an account.
Docker:
docker build -t devpilot-backend ./backend
docker build --build-arg NEXT_PUBLIC_API_URL=https://your-backend.example -t devpilot-frontend ./frontendFull stack with persistent PostgreSQL and Nginx:
copy .env.example .env
# Replace POSTGRES_PASSWORD and SESSION_SECRET with generated secrets.
docker compose up --buildNginx expects TLS files at nginx/certs/fullchain.pem and
nginx/certs/privkey.pem. The HTTP listener serves ACME challenge files from
nginx/certbot/ and redirects app traffic to HTTPS.
- Open the landing page.
- Request pilot access or create the first owner workspace.
- Configure the production backend secrets for database, email, SSO, OpenAI, GitHub, Slack, and Kubernetes as needed.
- Open
Production Monitoringto verify frontend, backend, database, CI/CD, SMTP, SSO, and integration readiness. - Upload logs, review AI diagnosis, generate a remediation pull request, and run approved recovery actions from the control plane.
- Ask the voice assistant:
Why did deployment fail?
Primary production targets: Vercel or Netlify frontend, Render FastAPI backend, and Neon Postgres. Keep real GitHub, Slack, Kubernetes, and OpenAI credentials out of local test runs unless you deliberately want live integrations.
- Set the Vercel project root to
frontend/. - Use Node.js 22;
frontend/package.jsondeclares>=22 <23. - Set
NEXT_PUBLIC_API_URLto the Render HTTPS backend URL. - Set
NEXT_PUBLIC_ENABLE_LIVE_K8S_TWIN=falseunless live Kubernetes reads are intentionally enabled. - The frontend uses
frontend/vercel.jsonandfrontend/next.config.tsfor production output and headers. - Store Vercel values in Project Settings, not in committed files.
- Use the repo root with
netlify.toml; it buildsfrontend/with the samenpm run buildflow. - Set
NEXT_PUBLIC_API_URLto the Render HTTPS backend URL. - Keep
NEXT_PUBLIC_ENABLE_LIVE_K8S_TWIN=falseunless live Kubernetes reads are intentionally enabled. NPM_FLAGS=--legacy-peer-depsis included for Netlify builds because the frontend uses the same dependency resolution as Vercel.
- Deploy the backend service from
render.yaml. - Set
APP_ENV=production. - Create a Neon Postgres database separately and set its connection string as the required Render secret
DATABASE_URL. - Set
SESSION_SECRETto a generated high-entropy value. - Set
FRONTEND_ORIGINSto your deployed frontend origins if you use custom domains. The bundled regex already covers default*.vercel.appand*.netlify.apphosts. - To enable real password reset email, set SMTP credentials from a verified sender. For SendGrid SMTP use
SMTP_HOST=smtp.sendgrid.net,SMTP_PORT=587,SMTP_USERNAME=apikey,SMTP_PASSWORD=<SendGrid API key>,SMTP_FROM_EMAIL=<verified sender>, andSMTP_USE_TLS=true. - To enable enterprise SSO, set
SSO_ENABLED=true, eitherSSO_DISCOVERY_URLor the authorization/token/userinfo URLs,SSO_CLIENT_ID,SSO_CLIENT_SECRET,SSO_REDIRECT_URI, and optionallySSO_ALLOWED_DOMAINS. - Auth launch status is available after sign-in at
/auth/integrations/readiness; it reports whether SMTP password reset and OIDC SSO are production-ready without exposing secrets. - Set
OPENAI_API_KEY,GITHUB_TOKEN,SLACK_WEBHOOK_URL, and Kubernetes credentials only when live integrations are needed. - For Kubernetes on Render, prefer
KUBECONFIG_B64: base64-encode the kubeconfig YAML and store that value as a Render secret.KUBECONFIG_CONTENTalso works for hosts that safely support multiline secrets, whileKUBECONFIGis for local/dev file paths. - Render should use
/readyas the health check because it verifies the database connection. render.yamlis backend-only and does not provision a Render database.
Railway can still be used for custom deployments, but it is not the primary target for this repository.
Backend:
APP_ENV=production
DATABASE_URL=postgresql://...
SESSION_SECRET=<generated secret>
FRONTEND_ORIGINS=https://your-vercel-app.vercel.app,https://your-netlify-site.netlify.app
SMTP_HOST=smtp.sendgrid.net
SMTP_PORT=587
SMTP_USERNAME=apikey
SMTP_PASSWORD=<sendgrid-api-key>
SMTP_FROM_EMAIL=noreply@yourdomain.com
SMTP_USE_TLS=true
SSO_ENABLED=false
SSO_PROVIDER_NAME=Google Workspace
SSO_DISCOVERY_URL=https://accounts.google.com/.well-known/openid-configuration
SSO_CLIENT_ID=<oidc-client-id>
SSO_CLIENT_SECRET=<oidc-client-secret>
SSO_REDIRECT_URI=https://your-render-api.example.com/auth/sso/callback
SSO_ALLOWED_DOMAINS=yourcompany.com
KUBECONFIG_B64=<base64-encoded kubeconfig for Render live mode>
KUBECONFIG_CONTENT=
KUBECONFIG=
Frontend:
NEXT_PUBLIC_API_URL=https://your-backend.example.com
NEXT_PUBLIC_ENABLE_LIVE_K8S_TWIN=false
backend/main.py- FastAPI API and incident workflows.github/workflows/ci.yml- pull request and main branch quality gate.github/workflows/production-smoke.yml- scheduled live deployment checksbackend/Dockerfile- backend container buildbackend/railway.toml- Railway deployment configrender.yaml- Render backend Blueprint using a NeonDATABASE_URLsecretnetlify.toml- Netlify frontend config for thefrontend/appdocker-compose.yml- full-stack container deployment with persistent PostgreSQLnginx/conf.d/default.conf- HTTPS-ready reverse proxy configfrontend/src/app/- Next.js routesfrontend/Dockerfile- frontend container buildfrontend/vercel.json- Vercel deployment config
- Redis-backed rate limiting and request tracking
- SAML SSO, SCIM provisioning, and expanded organization-level audit controls
- Background workers for long-running recovery jobs
- Exportable incident reports and approvals
- Persistent observability integrations


