项目处于 public alpha,API 与集成可能变动;首次启动需登录并激活托管模型,交互式 shell 需要 TTY;自托管容器部署需设置 LLM_PROVIDER 及其 API key,共享状态时才需 DATABASE_URL
opensre
Tracer-CloudApache-2.0活跃维护面向 CI/CD 可靠性的开源智能体,接入 Datadog、Grafana、GitLab CI 等可观测性数据,自动定位流水线故障并给出修复建议。
The open-source agent for CI/CD reliability.
curl -fsSL https://install.opensre.com | bash -s -- -gh
opensreREADME 未说明
开源自托管 CI/CD 可靠性代理,自动排查失败流水线并推送修复供你审阅
面向 CI/CD 可靠性的开源智能体,接入 Datadog、Grafana、GitLab CI 等可观测性数据,自动定位流水线故障并给出修复建议。
核心能力
- 读取失败运行日志与提交记录,追踪根因
- 区分 CI 自身故障与代码导致的失败
- 在工具调用循环中验证假设并给出证据链
- 把修复推送到 PR 分支供人工审阅
- 将摘要推送到 Slack、PagerDuty 或 Telegram
容易踩的坑
- v0.1.2026.11.9OpenSRE 0.1.2026.11.9最新正式版2026-11-09 · 2026-11-09 00:56 UTC
Install
cURL (macOS / Linux)
curl -fsSL https://install.opensre.com | bash -s -- --release --version 0.1.2026.11.9Start OpenSRE:
opensreOn Windows, use WSL.
Changelog
Changes since v0.1.2026.11.8
- v0.1.2026.11.8OpenSRE 0.1.2026.11.82026-11-08 · 2026-11-08 00:59 UTC
查看更新说明
Install
cURL (macOS / Linux)
curl -fsSL https://install.opensre.com | bash -s -- --release --version 0.1.2026.11.8Start OpenSRE:
opensreOn Windows, use WSL.
Changelog
Changes since v0.1.2026.11.7
- v0.1.2026.11.7OpenSRE 0.1.2026.11.72026-11-07 · 2026-11-07 00:51 UTC
查看更新说明
Install
cURL (macOS / Linux)
curl -fsSL https://install.opensre.com | bash -s -- --release --version 0.1.2026.11.7Start OpenSRE:
opensreOn Windows, use WSL.
Changelog
Changes since v0.1.2026.11.6
- v0.1.2026.11.6OpenSRE 0.1.2026.11.62026-11-06 · 2026-11-06 00:59 UTC
查看更新说明
Install
cURL (macOS / Linux)
curl -fsSL https://install.opensre.com | bash -s -- --release --version 0.1.2026.11.6Start OpenSRE:
opensreOn Windows, use WSL.
Changelog
Changes since v0.1.2026.11.5
- fix(bitbucket): scope repo code search with the repo: qualifier (#6969) (fe2908738) — Dhruvin Krutarthkumar Dave
- fix(vercel): read runtime logs from the project endpoint and report failures (#6970) (c0496c5d7) — Dhruvin Krutarthkumar Dave
- docs: document Pipedream and scheduled email delivery; remove stale Yandex Cloud file (#6952) (54dad0684) — Awokoya Olawale Davidson
- feat(neon): add read-only Neon integration and a neon remote-sync provider (#6987) (92ec47863) — Rishi Raj Jain
- perf(github): let github_cli reads batch, fit in one call, and skip discovery (#6986) (82a7314f8) — Vaibhav Upreti
- v0.1.2026.11.5OpenSRE 0.1.2026.11.52026-11-05 · 2026-11-05 00:53 UTC
查看更新说明
Install
cURL (macOS / Linux)
curl -fsSL https://install.opensre.com | bash -s -- --release --version 0.1.2026.11.5Start OpenSRE:
opensreOn Windows, use WSL.
Changelog
Changes since v0.1.2026.11.4
- build(deps): bump boto3 from 1.43.118 to 1.43.123 (#6971) (9b30fc1b4) — dependabot[bot]
- build(deps): bump ruff from 0.17.2 to 0.17.3 (#6972) (247e59a8d) — dependabot[bot]
- build(deps): bump pydantic from 2.14.1 to 2.14.2 (#6973) (7d06ef434) — dependabot[bot]
- build(deps-dev): bump pytest from 9.0.3 to 9.2.0 (#6975) (fa4b2fcca) — dependabot[bot]
- build(deps): bump pytest-asyncio from 1.3.0 to 1.4.1 (#6976) (65fd7fc23) — dependabot[bot]
- build(deps): bump slack-sdk from 3.45.0 to 3.46.0 (#6977) (50e5c32da) — dependabot[bot]
- build(deps): bump opentelemetry-instrumentation-botocore (#6979) (586218337) — dependabot[bot]
- build(deps-dev): bump types-pyyaml (#6980) (dcc15d7a5) — dependabot[bot]
用户点评
登录用户的真实使用记录,可按版本和硬件筛选还没有人点评。第一个说出真实体验的人最有价值。
🚧 Public Alpha: Core workflows are usable for early exploration, though not yet fully stable. The project is in active development, and APIs and integrations may evolve.
Before you begin
Make sure you have:
- A terminal open in a code project
- A Git repository (recommended for the full workflow demonstration)
Step 1: Install and start opensre
macOS or Linux:
curl -fsSL https://install.opensre.com | bash -s -- -gh
Windows (PowerShell):
& ([scriptblock]::Create((irm https://install.opensre.com/install.ps1))) -gh
Then start OpenSRE:
opensre

Windows details: Windows.
The installer fetches the latest build from main without requiring sudo. If opensre is not found, follow the PATH instructions printed by the installer or open a new terminal.
For supported platforms and troubleshooting, see Install locally.
Table of Contents
- Before you begin
- Install and start opensre
- Why OpenSRE?
- Quick Start
- Deployment
- How OpenSRE Works
- Integrations
- Security
- Telemetry
- License
- Citations
Why OpenSRE?
AI writes more of the code every month. Someone still has to fix the build.
When CI goes red, it tells you that something failed, not why or how to fix it. Under deadline pressure, teams hit re-run and move on, flaky checks pile up, main stays red, and the real investigation waits for whichever senior engineer has time. OpenSRE is an open-source CI/CD reliability agent that does that investigation for you, built to run on your own infrastructure with your own models:
- Recover from red builds faster: it investigates the moment a run fails, reading logs, testing hypotheses and pushing a fix for you to review
- Fix the cause, not just the rerun: it separates CI-caused failures from code-caused ones, so you fix the right thing
- Know what CI is costing you: failure rate, developer hours lost to unreliable CI, and how long
mainstays red - Senior-level context for everyone: every engineer gets the same depth of analysis
SWE-bench1 showed that agents improve fastest with realistic tasks and clear feedback. Pipeline failures are slower, noisier and harder to reproduce than local code tasks, so we hold OpenSRE to the same standard by:
- running real-world end-to-end tests across cloud-backed scenarios (tests/e2e)
- keeping semantic test-catalog naming so e2e vs unit and local vs cloud boundaries stay obvious (tests/README.md)
Start with the CI/CD overview: analyze a repository's CI reliability, fix failing checks on a PR, or set up an agent that keeps CI green.
1 https://arxiv.org/abs/2310.06770
Quick Start
Contributors: start at main.py for the process entrypoint map.
Run opensre to sign in and get started. The first launch activates the hosted model.
opensre
Webapp contributors can run opensre setup --dev to authenticate through http://localhost:3000.
Interactive shell — with no subcommand, opensre validates your account and starts a REPL (TTY required). You can exit and stay signed out, but the shell only opens for an active account. Describe incidents in plain language, watch the agent work, and use slash commands for session control (/help, /status, /cost, /sessions, /resume, /compact, /new, /exit) and integrations (/integrations list, /integrations verify). Ctrl+C cancels an in-flight turn without losing session state. See interactive shell commands for the full reference.
Headless CLI — run one agent turn non-interactively from a terminal, script, or CI job:
opensre ask "why is checkout-api slow?"
See Headless CLI for stdin prompts, JSON output, and tool approvals.
From Python — drive the agent in-process from your own code (source checkout required):
from bootstrap.embedded import start_embedded_session
session = start_embedded_session()
result = session.chat("why is checkout-api slow?")
if result.answered:
print(result.primary_response_text)
See Python API for sessions, conversations, and custom output sinks.
For your team's daily loop: embed OpenSRE in the Python services and automations your teammates already use. Start with the in-repo Python API guide, then use it every day to make incident response repeatable.
Other useful commands:
opensre integrations setup
opensre update
opensre uninstall # remove opensre and all local data
Deployment
An OpenSRE Cloud managed gateway, an AWS EC2 path, and a general self-hosted option:
- OpenSRE Cloud managed gateway: an organization admin provisions it in the web app; signed-in shell users can check, start, or stop it without handling infrastructure credentials locally.
- Gateway (AMI + systemd):
make build-gateway-imagethenmake deploy-gateway— Telegram gateway only, no Docker; the gateway is installed into a server image that new servers start from. - Self-hosted container (Railway / ECS / Vercel): deploy the repo
Dockerfile, selectMODE, and setLLM_PROVIDERplus its API key. UseDATABASE_URLonly when the gateway needs shared Postgres-backed state, such as Slack Events API replicas.
Full deployment steps and prerequisites → DEPLOYMENT.md
How OpenSRE Works
When a CI run fails, an alert arrives, or you ask a question, OpenSRE automatically:
- Fetches the relevant context: failing checks and CI logs, recent commits and deploys, and correlated logs, metrics and traces
- Masks sensitive identifiers (optional) before external LLM calls
- Reasons across your connected systems to test hypotheses in a tool-calling loop, separating CI-caused failures from code-caused ones
- Answers with an evidence-linked response in the conversation
- Fixes the cause and pushes it to the PR branch for you to review, or suggests next steps and, optionally, executes remediation actions
- Posts a summary directly to Slack, PagerDuty, or Telegram — no context switching needed
For the current code-level agent architecture after removing the old graph and chain framework layers, see AGENTS.md.
Integrations
OpenSRE connects to 60+ tools and services across the modern cloud stack, from LLM providers and observability platforms to infrastructure, databases, and incident management.
| Category | Integrations | Roadmap |
|---|---|---|
| AI / LLM Providers | Anthropic · OpenAI · OpenAI Codex · Ollama · Google Gemini · OpenRouter · TrustedRouter · NVIDIA NIM · Bedrock | |
| Observability | Grafana (Loki · Mimir · Tempo · annotations) · Datadog · Honeycomb · Coralogix · groundcover · CloudWatch · Sentry · Elasticsearch · Better Stack · Splunk · Victoria Logs · SignOz · OpenObserve · OpenSearch · Azure Monitor · New Relic | |
| Infrastructure | Kubernetes · AWS (S3 · Lambda · EKS · EC2 · CloudTrail · Bedrock) · Azure · ArgoCD · Helm | |
| Database | MongoDB · ClickHouse · PostgreSQL · MySQL · MariaDB · MongoDB Atlas · Azure SQL · Snowflake · Redis · RDS · Supabase · Neon | |
| Data Platform | Apache Airflow · Apache Kafka · Prefect · RabbitMQ · Dagster · Temporal | |
| Dev Tools | GitHub · GitHub MCP · Bitbucket · GitLab · Jenkins | |
| Incident Management | PagerDuty · Jira · Alertmanager · incident.io · ServiceNow · Trello (client helpers only) | Linear |
| Communication | Slack · Google Docs · Discord · Telegram · Rocket.Chat · WhatsApp · Buzz | Notion · Teams · Confluence |
| Agent Deployment | Vercel · EC2 · ECS · Railway | |
| Protocols | MCP |
OpenSRE is community-built. Looking for a safe first contribution? Browse good first issue tickets or see the Good First Issues guide. See CONTRIBUTING.md for the full workflow.
Local environment: SETUP.md (all platforms, Windows, MCP).
Developing in this repo: docs/DEVELOPMENT.md (install from source, CI parity checks, dev container, deployment detail, telemetry reference).
Thanks goes to these amazing people:
Security
OpenSRE is designed with production environments in mind: structured and auditable LLM prompts, local transcript handling by default, and no silent bulk export of raw logs. See SECURITY.md for responsible disclosure.
Telemetry
First-party product analytics and Sentry (errors) are opt-out. Quick disable:
export OPENSRE_NO_TELEMETRY=1
Full matrix, DSN override, and local event logging → docs/DEVELOPMENT.md
License
Apache 2.0 — see LICENSE.