OpenSRE is an open-source command-line agent that reads a failed CI run, works out why it failed, and pushes a fix to the pull request branch for you to review. It picked up 309 stars on GitHub's daily trending page on November 30, 2026, sits at about 16,700 stars in total, and shipped release v0.1.2026.11.30 the same morning.
Getting from nothing to a first CI report takes about ten minutes: one install command, a browser sign-in, and a GitHub connection. You do not need your own LLM key, because signing in activates OpenSRE's hosted model. The project labels itself a public alpha, so treat the fixing part as something to supervise, not something to leave alone over a weekend.
RelatedHermes Agent Setup: A Free, Self-Improving AI CLI
- It is Apache 2.0 licensed and written in Python, with prebuilt binaries for Windows x64, macOS (Apple silicon and Intel) and Linux (x64 and arm64).
- Analysis and the cross-repo health scan are read-only. Fixes and repair loops push commits, refuse pull requests opened from forks, and never push straight to a protected branch.
- Beyond CI, the same agent investigates production incidents through 60+ integrations, including Kubernetes, Grafana, Datadog, CloudWatch and Slack.
- Product analytics and Sentry error reports are on by default; one environment variable turns them off.
The exact steps, start to finish
- Check the prerequisites. You need a terminal inside a Git repository and, for the GitHub tools inside the agent's chat, the GitHub CLI on your PATH. On Linux, the prebuilt binary needs glibc 2.35 or newer, which
lddreports.git --version gh --version # Linux only: needs glibc 2.35+ (Ubuntu 22.04 or newer) ldd --version - Install on macOS or Linux. No sudo needed.
curl -fsSL https://install.opensre.com | bash -s -- -gh - Or install on Windows. Run this in a normal, non-elevated PowerShell window.
& ([scriptblock]::Create((irm https://install.opensre.com/install.ps1))) -gh - Start it and sign in. Choose Sign in or create account. Your browser opens the OpenSRE sign-up page; finish there and come back to the terminal.
opensre - Connect GitHub. If the shell shows Connect GitHub to continue, pick Open the dashboard to connect GitHub, connect your account at app.opensre.com under Integrations, then pick I've connected GitHub, continue. To start the same flow by hand:
opensre integrations setup github - Confirm the connection works. A good result prints
Status: passed.opensre integrations verify github - Get your first CI report. In the What should OpenSRE do first? menu, pick Analyze a repo's CI performance, or type a request at the prompt with your own
owner/repo:analyze Tracer-Cloud/opensre CI/CD performance for the last 30 days
What happens between the sign-in and the first report?
The installer pulls the latest build and drops opensre into a writable directory on your PATH, falling back to ~/.local/bin (on Windows, %USERPROFILE%\.local\bin). If your shell says the command does not exist, open a new terminal or follow the PATH line the installer printed. That is the single most common snag, and the docs say so too.
Running opensre with no subcommand validates your account and opens an interactive shell, which needs a real TTY. The 30-day analysis reads your GitHub Actions history for one repository and prints failure rate, CI-caused versus code-caused failures, developer hours lost and how long the default branch stayed red. Nothing gets written to your repo during this step. I would run it on your busiest repository before letting the agent push anything, because the split between CI-caused and code-caused failures is the number that tells you whether a fixer is worth having at all.
One honest caveat: the GitHub connection has to come from the OpenSRE app. The docs state plainly that a local GITHUB_TOKEN or GH_TOKEN does not authorize the agent's GitHub tools. If you create a fine-grained token for the app's token form, grant read on Contents, Metadata, Issues, Pull requests and Actions, and add write only where you want it to push.
Letting OpenSRE fix a failing pull request
Once the report looks sane, hand it a red PR. Type the request in the shell with your own repository and PR number:
fix failing checks on Tracer-Cloud/opensre#4597
It reads the failing checks and their logs, applies a fix with a coding agent, pushes to the PR branch and waits for the new checks. Fixing needs Contents and Pull requests write access on that repository. If you would rather it kept watching, two more prompts from the docs turn it into a standing job:
how many PRs and branches currently have failing CI across all my orgs?
set up an agent that improves CI/CD reliability for Tracer-Cloud/opensre
The first is a read-only scan across every repository your connection can see. The second schedules a reliability agent that reviews the last 7 days every weekday morning. A separate repair loop for one PR makes up to three repair pushes within ten minutes, which is a sensible ceiling for an alpha agent with write access. /loops show <task-id> prints a finished repair's report with its evidence links.
Running OpenSRE headless in a script or a CI job
opensre ask runs one agent turn and exits, so it fits a cron job or a workflow step. The read-only tasks run as they are, and --json gives you machine-readable output:
RelatedStrix Setup: Run an AI Penetration Tester on Your Code
opensre --json ask "how many PRs currently have failing CI in Tracer-Cloud?"
Anything that pushes needs a tool approval, and a headless run has nobody to click yes. You authorize one tool for that run only:
# fix a pull request
opensre ask --allowed-tool fix_github_pr_ci "fix failing checks on Tracer-Cloud/opensre#4597"
Each --allowed-tool covers exactly one tool, so a task that needs two takes the flag twice. A machine that is not signed in, like a fresh CI runner, needs LLM_PROVIDER, that provider's API key and a GitHub token in the environment instead. Supported providers in the README include Anthropic, OpenAI, Gemini, OpenRouter, Bedrock, NVIDIA NIM and a local Ollama.
Turning off OpenSRE telemetry, updating and uninstalling
Product analytics and Sentry error reporting are opt-out. Set this before you run anything on a machine where that matters:
export OPENSRE_NO_TELEMETRY=1
On Windows PowerShell the same variable is set with $env:OPENSRE_NO_TELEMETRY = "1". Keeping up with an alpha that ships near-daily builds, and removing it cleanly, are both one command:
opensre update
opensre uninstall # remove opensre and all local data
Fixing "opensre: command not found" and a sign-in screen that keeps coming back
- Command not found after install. Open a new terminal. If it still fails, add the folder the installer printed (usually
~/.local/bin) to your PATH. - The sign-in screen returns instead of the shell. Run
opensre account status; it names what is wrong with the session. - Signing in over SSH or on a cloud VM. The browser cannot hand the session back, so OpenSRE prints a link and asks for a one-time code. Force that mode with
opensre account login --paste-code. The code expires five minutes after it is shown. - The binary will not start on an older Linux. Prebuilt binaries need glibc 2.35 or newer. Older distributions should use the Docker route in the project's install docs.
- Two different install flags. The README uses
-ghon the installer, while the docs site's install pages show-dc. Both come from the project itself; the commands above follow the README.
OpenSRE next to rerunning the job and pasting logs into a chatbot
| OpenSRE | Hit "Re-run jobs" | Paste logs into a coding agent | |
|---|---|---|---|
| Finds the cause | Yes, tests hypotheses across logs, commits and deploys | No | Partly, only from what you paste |
| Separates flaky CI from broken code | Yes, by design | No | Only if you ask |
| Pushes a fix | To the PR branch, for review | No | You copy it over |
| Reliability report | 30-day failure and hours-lost report | No | No |
| Maturity | Public alpha | Built into your CI | Depends on the tool |
Who should bother? Teams where main goes red often enough that someone has a habit of hitting re-run and moving on. The analysis alone is worth the ten minutes, since it puts a number on hours lost that you can take to whoever owns the build. I would hold off on the scheduled repair agent for a production repo until a few supervised fixes have landed cleanly, and keep branch protection on. The agent respects it, and that respect is the main reason giving it write access is reasonable in the first place.
- RepoTracer-Cloud/opensre on GitHub README: install, quick start, integrations, telemetry
- ReleasesRelease v0.1.2026.11.30 binaries for Windows, macOS and Linux, November 30, 2026
- DocsOpenSRE quickstart sign-in, first-run menu, SSH sign-in, glibc requirement
- DocsCI/CD with OpenSRE prompts, headless flags, what each capability reads and writes
- DocsGitHub integration app connection, token scopes, verify output
