百科.dev
全部条目AI 编程趋势榜开源项目技术资讯提交条目
登录
< 返回工具列表
O

opensre

> DevOps
开源

构建您自己的 AI SRE 代理。适用于 AI 时代的 开源 工具包。

9.7K stars0 点赞0 次浏览
访问官网GitHub

工具介绍

构建您自己的 AI SRE 代理。适用于 AI 时代的 开源 工具包。


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


Table of Contents

  • Why OpenSRE?
  • Install
  • Quick Start
  • Deployment
  • How OpenSRE Works
  • Capabilities & integrations
  • Contributing & development
  • Security
  • Telemetry
  • License
  • Citations

Why OpenSRE?

When something breaks in production, the evidence is scattered across logs, metrics, traces, runbooks, and Slack threads. OpenSRE is an open-source framework for AI SRE agents that resolve production incidents, built to run on your own infrastructure.

We do that because SWE-bench1 gave coding agents scalable training data and clear feedback. Production incident response still lacks an equivalent.

Distributed failures are slower, noisier, and harder to simulate and evaluate than local code tasks, which is why AI SRE, and AI for production debugging more broadly, remains unsolved.

OpenSRE is building that missing layer:

an open reinforcement learning environment for agentic infrastructure incident response, with end-to-end tests for realistic production failures

We do that by:

  • building easy-to-deploy, customizable AI SRE agents for production operations and incident response
  • 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)

Our mission is to build AI SRE agents on top of this, scale it to thousands of realistic infrastructure failure scenarios, and establish OpenSRE as the benchmark and training ground for AI SRE.

1 https://arxiv.org/abs/2310.06770


Install

The root installer URL auto-detects Unix shell vs PowerShell and installs the latest build from main. OpenSRE moves quickly, so main is the latest stable version for normal installs.

Before installing, check the supported platforms and architectures table for release availability and CI coverage.

macOS / Linux:

bash
curl -fsSL https://install.opensre.com | bash

The macOS/Linux installer does not require sudo. If no writable bin directory is already on PATH, it installs to ~/.local/bin and prints the shell command to apply the PATH update.

Prebuilt Linux binaries require glibc 2.35+ (Ubuntu 22.04+ or a comparable distribution) and do not run on Alpine Linux. On an older or musl-based Linux system, install from source instead.

Equivalent explicit main-channel form:

bash
curl -fsSL https://install.opensre.com | bash -s -- --main

Homebrew:

bash
brew tap tracer-cloud/tap
brew install tracer-cloud/tap/opensre

Windows (PowerShell):

powershell
irm https://install.opensre.com | iex

Quick Start

Contributors: start at main.py for the process entrypoint map.

Create or sign in to your OpenSRE account once. Setup activates the hosted model:

bash
opensre setup

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), integrations (/integrations list, /integrations verify), and local agent fleet monitoring (/agents). Ctrl+C cancels an in-flight turn without losing session state. See interactive shell commands for the full reference.

bash
opensre

Headless CLI — run one agent turn non-interactively from a terminal, script, or CI job:

bash
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):

python
from core.agent_harness import AgentSession

session = AgentSession.start()
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:

bash
opensre integrations setup
opensre fleet scan
opensre update
opensre uninstall   # remove opensre and all local data

Deployment

Two primary AWS EC2 paths and a general hosted option:

  • Gateway (AMI + systemd): make build-gateway-image then make deploy-gateway — Telegram gateway only, no Docker; the gateway is installed into a server image that new servers start from.
  • Hosted (Railway / ECS / Vercel): deploy with the repo Dockerfile; set LLM_PROVIDER and the matching API key (see .env.example), plus DATABASE_URI and REDIS_URI if persistence is needed.

Full deployment steps and prerequisites → DEPLOYMENT.md


How OpenSRE Works

When you ask a question or an alert arrives, OpenSRE automatically:

  1. Fetches the relevant context and correlated logs, metrics, traces, and recent deploys
  2. Masks sensitive identifiers (optional) before external LLM calls
  3. Reasons across your connected systems to test hypotheses in a tool-calling loop
  4. Answers with an evidence-linked response in the conversation
  5. Suggests next steps and, optionally, executes remediation actions
  6. 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.


Capabilities & integrations

Evidence-driven diagnosis Correlated analysis across logs, metrics, traces, deploys, and config
Runbook-aware reasoning OpenSRE reads your runbooks and applies them automatically
Evidence-backed root cause Every conclusion is linked to the data behind it
️ Reversible identifier masking Redact pods, clusters, and account IDs before external LLM calls; restore in output
Session cost & history Per-session token tracking (/cost) and resumable REPL sessions (/sessions)
Local agent fleet Monitor Claude Code, Cursor, Codex, and other coding agents on your machine
Full LLM flexibility Bring your own model — Anthropic, OpenAI, Codex, Ollama, Gemini, OpenRouter, TrustedRouter, NVIDIA NIM, Bedrock

OpenSRE connects to 60+ tools across LLMs, observability, cloud infrastructure, data platforms, incident management, and MCP. The full matrix (with roadmap links) lives in the product docs; a detailed catalog is also maintained in-repo as the project grows.


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) · GCP · Azure · Yandex Cloud · ArgoCD · Helm · Jenkins
Database MongoDB · ClickHouse · PostgreSQL · MySQL · MariaDB · MongoDB Atlas · Azure SQL · Snowflake · Redis · RDS · Supabase

Issues· 43 开放

查看全部 Issues在 GitHub 打开
  • #6320

    [测试] 验证 opensre ask context-file 场景

    implemented - needs testingtestscli更新于 2026年9月18日
  • #6135

    [功能] 扩展计划任务积压和恢复查询

    enhancementpending triage更新于 2026年9月18日
  • #6292

    [BUG] 失败的 CI 修复会被保留为成功的调度器运行

    更新于 2026年9月17日
  • #6290

    [BUG] 修复了警报正则化、正则表达式分隔符剥离和 GenericAlias 实例化中 PID 布尔强制转换问题

    更新于 2026年9月17日
  • #6095

    [BUG]GitHub CI 上线技能没有关闭所需的验证循环

    更新于 2026年9月16日
  • #6264

    [功能] 通用远程 MCP 服务器集成,适用于 MCP 网关

    enhancementpending triage更新于 2026年9月15日
  • #6252

    37 工具跳过封闭工单下的描述合同 (#5498)

    tests更新于 2026年9月14日
  • #6221

    [改进] 验证原生 Windows 命令行的端到端兼容性

    enhancement更新于 2026年9月14日
  • #6201

    [功能] 仅向 `opensre ask` 提供授权的工具

    enhancementpending triage更新于 2026年9月13日
  • #6223

    [BUG] 过期的帐户会话在除壳体以外的所有表面上保留 LLM 路由

    bugnot plannedon-hold更新于 2026年9月12日

> 标签

Pythonai-srealertingdatadoggrafana

暂无评论,来聊聊你的看法吧

> 工具信息

发布日期2026年8月1日
最后更新2026年9月19日
分类DevOps
定价开源

> 相关工具

D
Docker
容器化平台,标准化应用交付
G
GitHub Actions
GitHub 原生 CI/CD 工作流
N
Nginx
高性能 Web 服务器与反向代理