# OpenSRE — Complete Knowledge Base > OpenSRE is an open-source AI SRE platform that investigates production incidents autonomously. It uses memory to learn from past incidents and a Neo4j knowledge graph to map service dependencies. Licensed Apache 2.0, self-hosted, and provider-agnostic via LiteLLM. GitHub: https://github.com/swapnildahiphale/OpenSRE License: Apache 2.0 Website: https://opensre.in --- ## Documentation ### architecture # Architecture OpenSRE.in investigates incidents with an AI agent runtime built on the **Claude Agent SDK** — not a hand-rolled graph orchestration layer. A root investigator agent plans the work, loads integration skills on demand, can dispatch specialist subagents for independent sub-questions, and streams progress back to clients in real time. Memory and a service topology knowledge graph both live in Neo4j; configuration and full investigation traces live in PostgreSQL. ## System Overview ``` Web UI Slack Bot Teams Bot (Next.js) (Socket Mode) (Microsoft Teams) \ | / \ | / v v v ┌─────────────────────────────────────────┐ │ sre-agent │ └──────────────────┬──────────────────────┘ │ ┌───────────────────┼──────────────┬─────────────────┐ v v v v ┌──────────┐ ┌──────────┐ ┌──────────┐ ┌─────────────┐ │ config- │ │ Postgres │ │ Neo4j │ │ LiteLLM │ │ service │ │ agent │ │ memory + │ │ (optional │ │ │ │ runs + │ │ knowledge│ │ proxy) │ │ │ │ config │ │ graph │ │ │ └──────────┘ └──────────┘ └──────────┘ └─────────────┘ ``` **Entry points** - **Web UI** — admin console and investigation UI; streams SSE from sre-agent. Optional Microsoft Entra SSO ([Entra SSO](/docs/sso)). - **Slack bot** — Socket Mode; @mentions and threads; streams the same SSE protocol. - **Teams bot** — Microsoft Teams channels or DMs; streams the same SSE protocol. - **REST API** — `POST /investigate` and related thread endpoints on sre-agent, used by the clients above. ## Investigation Flow 1. A user starts an investigation from the web console, Slack, Teams, or the REST API. 2. sre-agent creates or resumes a thread and opens an `InteractiveAgentSession` (Claude Agent SDK). 3. The root agent (typically `investigator`, falling back to `planner`) plans the work, loads skills on demand, and dispatches specialists via the SDK `Task` tool. 4. After concrete symptoms are known — error text, a failing service, a stack trace — the agent may invoke `memory-search` and `infrastructure-neo4j`. There is **no** automatic pre-injection of past episodes or topology into the first prompt; recall is agent-driven. 5. Tool calls, thoughts, subagent progress, and the final answer stream to the client as Server-Sent Events. 6. On turn completion, a lifecycle hook upserts a Neo4j `:Episode` (one per conversation) and persists the full tool trace to PostgreSQL for replay in the web UI. There is no separate orchestration framework and no fixed pipeline of nodes. The Claude Agent SDK session itself is the runtime. ## The Agent SDK Runtime The investigation engine is `InteractiveAgentSession`, which wraps the SDK's `ClaudeSDKClient` and maps SDK messages onto OpenSRE.in's own SSE event protocol. ### Root agent and subagents - The **root agent** is resolved from team config (`investigator` preferred, then `planner`). Its system prompt comes from a nested config path (`agents.{agent_id}.prompt.system`) so it can be customized per team without touching other teams. - **Specialist subagents** are registered as SDK `AgentDefinition` objects, built from the team's configured agent topology. The root delegates to them via the SDK `Task` tool — optionally in the background, so multiple specialists can work concurrently. - **Skills** live as `SKILL.md` files plus optional scripts. The SDK `Skill` tool loads lightweight metadata for every skill up front (roughly 100 tokens each) and the full skill content only when the agent actually chooses to use it. Skill scripts then run via `Bash` under that loaded skill. ### Message stream drain The session follows the SDK-recommended pattern rather than the simpler single-response API: 1. Start `client.query()` with a streaming user-message generator, running concurrently with the receive loop. 2. Drain the response with `receive_messages()` — not `receive_response()` alone. `receive_messages()` doesn't stop automatically at the first result. That matters because a turn isn't necessarily over just because the SDK reports one — background subagents may still be running. ### Background subagents Subagents started in the background emit their own lifecycle messages on the SDK stream. While any are still outstanding: - Interim root text is emitted to the client as a `thought` event, not a final answer. - Clients receive a `background_waiting` event with the pending task IDs. - The parent agent automatically continues once every outstanding task clears — no follow-up prompt required from the user. ### Mid-run message queue You can add context to a running investigation without waiting for it to finish: - API: `POST /threads/{thread_id}/queue-message` - SSE: a `message_queued` event when queued text is merged into the agent's turn Queued messages are debounced for a fraction of a second and merged into a single numbered guidance block, so several quick follow-ups don't each interrupt the agent separately. Any remaining queue is flushed at the turn boundary so nothing gets silently dropped. ### SSE event types (high level) | Type | Purpose | |------|---------| | `thought` | Agent reasoning / interim narration | | `tool_start` / `tool_end` | Skill, Bash, Task, and other tool lifecycle | | `task_started` / `task_notification` | Background subagent lifecycle | | `background_waiting` | Parent waiting on outstanding background tasks | | `message_queued` | Mid-run user message accepted or consumed | | `question` | Agent asking a clarifying question | | `result` | Terminal answer for the turn | | `error` | Failure or timeout | Investigations run under a wall-clock timeout independent of the SDK's own turn-count limit — the two are separate caps and raising one doesn't raise the other. ## Deployment Modes | Aspect | Default (`make dev` / self-host) | Sandbox mode | |--------|----------------------------------|--------------| | **Server** | `server_simple.py` | `server.py` | | **Agent process** | Same process as the API | Per-thread isolated pod | | **Isolation** | Trusted local / single-tenant use | Filesystem and network isolation | | **Skills** | Copied to a per-thread workspace | Baked into the sandbox image | The default mode is what `make dev` runs and what typical self-hosting uses. Sandbox mode is a separate, production-oriented stack for stronger isolation between concurrent investigations and isn't required to run OpenSRE.in. ## Memory OpenSRE.in stores a condensed summary of every conversation as a Neo4j `:Episode`, and recalls similar past episodes on demand via semantic vector search — the agent decides when to search, based on evidence gathered so far, not a fixed rule fired on every alert. See [Memory](/docs/episodic-memory) for the full model, including how strategy playbooks get synthesized from repeated episodes. ## Knowledge Graph Neo4j also holds service topology — dependencies and blast radius — in the same database as memory, queried agent-driven via a dedicated skill once an affected service is known. See [Knowledge Graph](/docs/knowledge-graph) for what's tracked and how it's populated today. ## Skills Skills are the primary integration surface: a `SKILL.md` methodology doc plus optional scripts, organized by domain (Kubernetes and cloud, observability, databases, incident tooling, version control, and more). See [Investigation Skills](/docs/skills) for the full catalog and how to add your own. ## Configuration **config-service** is the control plane: - Hierarchical org → team configuration with deep merge (dicts merge, lists replace). - Team tokens for runtime auth; admin tokens for the configuration UI/API. - Agent prompts, model choice, subagent topology, and skill enablement, all team-scoped. - Integration credentials, pulled from environment variables via `${VAR}` substitution — never hardcoded in config. See [Configuration](/docs/configuration) for the full reference. ## Local Development Stack ```bash cp .env.example .env # set ANTHROPIC_API_KEY make dev # core stack make dev-slack # core + Slack bot make dev-teams # core + Teams bot ``` | Service | Port | Role | |---------|------|------| | Web UI | 3002 | Next.js console | | sre-agent | 8001 | Investigation API + SSE | | config-service | 8081 | Config, tokens, agent-run storage | | PostgreSQL | 5433 | Config DB + agent runs | | Neo4j Browser / Bolt | 7475 / 7688 | Memory + topology graph | | Slack bot | — | Optional (`--profile slack` / `make dev-slack`) | | Teams bot | 3978 | Optional (`--profile teams` / `make dev-teams`) | | LiteLLM | 4001 | Optional (`--profile litellm`) | By default the agent calls Anthropic directly (`ANTHROPIC_API_KEY`). To use OpenRouter or another provider, start the LiteLLM profile and set `ANTHROPIC_BASE_URL` to the proxy. --- ### configuration # Configuration OpenSRE.in uses a hierarchical configuration system managed by the config-service. Configuration flows from org-level defaults down to team-specific overrides — dicts merge, lists replace. ## Environment Variables The minimal required configuration is one env var: | Variable | Required | Description | |----------|----------|-------------| | `ANTHROPIC_API_KEY` | Yes | Direct Anthropic API key — the agent runtime (Claude Agent SDK) calls Anthropic by default | | `ANTHROPIC_MODEL` | No | Root agent model (default: a current Claude Sonnet) | | `MEMORY_LLM_MODEL` | No | Faster/cheaper model used for memory extraction (default: a Claude Haiku model) | | `OPENROUTER_API_KEY` | No | Only needed if you opt into the LiteLLM proxy to route through OpenRouter or another provider — see below | | `SLACK_BOT_TOKEN` | No | Slack bot token (xoxb-...) | | `SLACK_APP_TOKEN` | No | Slack app token (xapp-...) for Socket Mode | | `NEO4J_URI` | No | Neo4j connection URI (in-network default when using `make dev`) | | `NEO4J_USERNAME` | No | Neo4j username (default: neo4j) | | `NEO4J_PASSWORD` | No | Neo4j password | | `ADMIN_TOKEN` | No | Admin token for web UI | | `WEB_UI_SSO_ORG_ID` | No | Org id for the web-console Entra SSO button (see [Entra SSO](/docs/sso)) | | `WEB_UI_PUBLIC_BASE_URL` | No | Public origin used as the Entra `redirect_uri` | | `SSO_CLIENT_SECRET` | No | Entra/OIDC client secret on config-service (env only) | ## Organizations, Teams, and Tokens config-service organizes everything under a two-level tree: one or more **organizations**, each with one or more **teams**. For local development, `CONFIG_MODE=local` auto-seeds a single org (`local`) and team (`default`) from `config_service/config/local.yaml` — you don't create these by hand for `make dev`. Two token types gate access, both issued by config-service's admin API: | Token | Scope | Where it comes from locally | |-------|-------|------------------------------| | **Admin token** | Org/team management, issuing and revoking tokens, org-wide config | `ADMIN_TOKEN` env var (default `local-admin-token`) | | **Team token** | Runtime auth for investigations and team-scoped config (`team:read`, `team:write`) | Minted via the admin API against a specific org/team, e.g. `make e2e-token` for `local`/`default` | The web console's sign-in screen (`http://localhost:3002`) takes either token: - Paste a **team token** to use the console as an investigator for that team. - Paste the **admin token** to unlock **Admin** — org tree (add orgs/teams, issue or revoke tokens per node) and token management — so you can manage everything from the UI instead of re-running `make e2e-token` each time. For a fresh org/team beyond the local default (e.g. a real deployment), use the same admin API `make e2e-token` calls under the hood — `POST /api/v1/admin/orgs/{org_id}/teams/{team_id}/tokens` with the admin token — or do it from **Admin → org tree** once you're signed in with the admin token. ## Web console SSO Microsoft Entra ID login uses **Admin → SSO**, not Helm `services.webUi.oidc.enabled`. Create a confidential **Web** app in Entra, paste tenant / client id into the admin form, set `SSO_CLIENT_SECRET` on config-service, and keep token login as break-glass. Full steps: [Entra SSO](/docs/sso). ## Integration Configuration Integrations are configured under the `integrations` key in your team config (`config_service/config/local.yaml` in `CONFIG_MODE=local`, or via the admin API/UI otherwise). Only uncomment or add the sections you need — credentials are pulled from environment variables via `${VAR}` substitution, not hardcoded. ### Prometheus ```yaml integrations: prometheus: url: ${PROMETHEUS_URL} # Optional basic auth # username: ${PROMETHEUS_USERNAME} # password: ${PROMETHEUS_PASSWORD} ``` ### Grafana ```yaml integrations: grafana: url: ${GRAFANA_URL} api_key: ${GRAFANA_API_KEY} ``` ### Datadog ```yaml integrations: datadog: api_key: ${DATADOG_API_KEY} app_key: ${DATADOG_APP_KEY} site: datadoghq.com # or datadoghq.eu, us3.datadoghq.com, etc. ``` ### Elasticsearch ```yaml integrations: elasticsearch: domain: ${ELASTICSEARCH_DOMAIN} username: ${ELASTICSEARCH_USERNAME} api_key: ${ELASTICSEARCH_API_KEY} ``` ### PagerDuty ```yaml integrations: pagerduty: api_key: ${PAGERDUTY_API_KEY} # Optional: restrict to specific service IDs # service_ids: # - PXXXXXX ``` There's no `enabled: true` flag — an integration is active once it's present under `integrations`. See [Integrations](/docs/integrations) for the full list and [Investigation Skills](/docs/skills) for which skill each one powers. ## LLM Configuration By default the agent calls Anthropic directly: ```yaml ai_model: provider: anthropic model_id: claude-sonnet-4-6 ``` ```yaml integrations: anthropic: api_key: ${ANTHROPIC_API_KEY} ``` To route through OpenRouter or another provider instead, either point `ai_model.provider` at `openrouter` with the matching `integrations.openrouter.api_key`, or start the optional LiteLLM proxy and set `ANTHROPIC_BASE_URL=http://litellm:4000` — see [Quick Start](/docs/quick-start#use-a-different-llm-provider-optional) and `litellm_config.yaml`. ## Configuration Hierarchy Configuration is stored in config-service and organized hierarchically: ``` org (base defaults) └── team (team-specific overrides) └── agent (per-agent overrides, e.g. model/skills for one agent) ``` Dict values are **deep merged** at each level. List values are **replaced** — if a team specifies a list, it replaces the org-level list entirely. ## Skills Configuration Enable or disable skills for the whole team with a wildcard plus a disable-list: ```yaml skills: enabled: - '*' disabled: - observability-datadog - database-mysql ``` Or restrict to an explicit allow-list instead of `'*'`. For finer control, override skills on a single agent: ```json { "agents": { "my-agent-id": { "skills": { "infrastructure-kubernetes": true, "observability-datadog": false } } } } ``` Disabled skill directories are removed from that thread's skill workspace at session start — see [Investigation Skills](/docs/skills) for the full catalog. --- ### episodic-memory # Memory System OpenSRE.in remembers past investigations and lets the agent recall them when they're relevant. After every conversation, it extracts structured metadata from the outcome and stores it as an episode in Neo4j. When a similar incident comes up later, the agent — not a fixed pipeline stage — decides to search that memory and pull in what worked before, the way an experienced SRE reaches for a pattern they've seen. ## Why Memory Matters Without it, every investigation starts from zero: no knowledge of past outages, no patterns to recognize, no proven approach to try first. With it, OpenSRE.in builds up: - **Recognized patterns** — similar issue types and affected components surfaced from past episodes - **Recalled root causes** — what was actually wrong last time, with the evidence that supported it - **Synthesized strategies** — a reusable playbook once enough similar episodes exist, not written by hand ## Two Stores, Two Jobs | Record | Contents | Store | |--------|----------|-------| | **Agent run trace** | Every tool call and streamed output for one turn — the forensic record, shown in the web UI's Investigations view | PostgreSQL (config-service) | | **Investigation episode** | Condensed, LLM-extracted summary: issue type, components, root cause, skills used, resolution | Neo4j `:Episode` | An episode is a **derived summary**, never a raw tool dump. It links back to the full trace by `correlation_id` (the conversation/thread) and to the latest turn's `agent_run_id` for deep-linking into the trace viewer. ## Recall Is Agent-Driven, Not Automatic This is the part most people get wrong about how OpenSRE.in's memory works: **nothing is pre-loaded into the first prompt.** At session start, the root agent's system prompt gets a short guidance block instructing it to search memory — but only after it has concrete evidence (an error, a failing service, a stack trace), not on a vague initial alert alone. ``` Session init └─ system prompt += memory guidance "After concrete evidence, search memory for similar past investigations via the memory-search skill." Agent turn ├─ gathers evidence (logs, metrics, deploy history, …) via other skills ├─ decides it has enough to search └─ invokes memory-search with symptom + component + system e.g. "Maven OOM surveys-module test failure Jenkins" ``` A lightweight topology hint (see [Knowledge Graph](/docs/knowledge-graph)) can still be attached to the user prompt when a service name is detected — that's separate from memory recall and carries no past-investigation content. There's also a legacy pre-injection path, off by default, that would prepend similar episodes and a strategy block directly into the first user prompt before the agent does anything. It exists for rollback/comparison purposes; agent-driven recall via `memory-search` is the supported model. ## What `memory-search` Returns ```json { "success": true, "result": { "episodes": [ { "issue_type": "connection-pool-exhaustion", "root_cause": "...", "resolved": true, "summary": "...", "skills_used": ["infrastructure-kubernetes", "observability-datadog"], "score": 0.87 } ], "strategy": "## Common Root Causes\n..." } } ``` - `episodes` are ranked by semantic similarity; the agent is guided to prefer **resolved** episodes with a matching root cause and useful `skills_used`. - `strategy` is a synthesized markdown playbook — present only when enough similar episodes exist (see below). - A failed or empty search returns `{"success": false}` and is **non-blocking** — the investigation just continues without it. ## How an Episode Is Written One `:Episode` node per conversation (`correlation_id`), upserted at the end of **every** turn — the latest turn's conclusion wins. | Field | Role | |-------|------| | `issue_type`, `issue_description` | Classification, in your terms — not tied to a fixed alert taxonomy | | `components` | Typed affected subjects, e.g. `{type: "service", name: "payments-api"}` | | `skills_used` | Accumulated across every turn in the conversation | | `key_findings` | Compact tool-derived findings, replaced each turn | | `root_cause`, `summary`, `resolved` | The narrative outcome — `resolved` means a root cause was identified with evidence, **not** that the environment was fixed | | `effectiveness_score` | Heuristic: ~0.8 when resolved with a root cause, ~0.4 when resolved only, ~0.1 otherwise — a ranking tie-break, not a validated quality metric | | `embedding` | 384-dimensional vector for semantic search | **Example:** turn 1 stores `root_cause: "Redis cache"`; turn 2 corrects it to `"missing DB index"`; turn 3 sets `resolved: true`. The episode reflects the latest conclusion — wrong intermediate guesses don't stick around. If extraction fails to produce a usable summary, the episode is still listed (with a "couldn't summarize" indicator and a retry action in the web UI) but excluded from semantic search until it's retried successfully. ### Embeddings Embeddings are computed with `fastembed` (ONNX, self-hosted — no external embedding API), by default `BAAI/bge-small-en-v1.5` at 384 dimensions, over the combined `issue_type + issue_description + summary + root_cause` text. Retrieval uses the same vector space via `neo4j-graphrag`'s semantic search, scoped to your org and team. ## Retrieval Strategies This is the layer most memory systems skip: OpenSRE.in doesn't just recall individual episodes — it synthesizes them into a reusable **strategy** once there's enough evidence that a pattern is real. - **When it's generated** — lazily, inside a `memory-search` call, whenever that search returns **two or more** similar episodes for the same issue shape and component. There's no separate cron job or background synthesis step; a strategy is only ever built in response to an actual search that qualifies. - **What it is** — a cached, LLM-written markdown playbook keyed by `(org, team, issue_type, component)`, roughly structured as: common root causes, recommended investigation steps, key skills/commands that worked, and anti-patterns to avoid. - **Provenance** — every strategy links back to the episodes it was derived from, so you can always see which past incidents shaped a given playbook. - **Staying current** — a qualifying search always re-synthesizes rather than serving a stale cached copy, so a strategy reflects the latest set of similar episodes, not just whichever were around when it was first written. A strategy manually edited in the web UI can be overwritten the next time a qualifying search re-generates it — treat manual edits as provisional unless you also intend to stop new episodes from qualifying. - **How the agent uses it** — a strategy only ever reaches the agent through the `memory-search` skill's JSON response (the `strategy` field above), or through a person reading it in the Memory hub. It's never silently injected into a system prompt on its own. ## Viewing Memory The web console's **Memory** hub covers: - **Episodes** — browse past investigation summaries, with severity/resolution context and a link back to the full trace. - **Search** — run the same semantic search the agent uses, by hand. - **Strategies** — browse synthesized playbooks, see which episodes derived them, and edit or delete a playbook directly. --- ### integrations # Integrations OpenSRE.in integrates with your existing observability stack. You don't need to change how you monitor your systems — OpenSRE.in connects to the tools you already use and queries them during investigations. ## Integration Overview | Category | Supported Tools | |----------|----------------| | Container Orchestration & Cloud | Kubernetes, AWS, Azure, GCP, Docker | | Metrics & Monitoring | Prometheus, Grafana, Datadog, New Relic, Coralogix, Honeycomb, VictoriaMetrics | | Logging | Elasticsearch, Splunk, Loki, VictoriaLogs | | Distributed Tracing | Jaeger, Datadog APM | | Error Tracking | Sentry | | Alerting & Incidents | PagerDuty, Opsgenie, Incident.io, Blameless, FireHydrant | | Communication | Slack, Microsoft Teams | | Source Control | GitHub, GitLab, Bitbucket, Sourcegraph | | Docs & Knowledge | Notion, Google Docs | | Databases | PostgreSQL, MySQL, Snowflake, BigQuery | | Ticketing & Project | Jira, Linear, ClickUp | | LLM Providers | Anthropic (default), any provider via the optional LiteLLM proxy | ## Monitoring Integrations ### Prometheus OpenSRE.in can run PromQL queries against your Prometheus instance to check metric anomalies, query alert history, and correlate metrics with incident timelines. ```yaml integrations: prometheus: url: ${PROMETHEUS_URL} # Optional basic auth # username: ${PROMETHEUS_USERNAME} # password: ${PROMETHEUS_PASSWORD} ``` ### Grafana OpenSRE.in can read Grafana dashboard panels, check alert states, and pull annotations that mark deployments or other events. ```yaml integrations: grafana: url: ${GRAFANA_URL} api_key: ${GRAFANA_API_KEY} ``` ### Datadog Full Datadog integration covers metrics, APM traces, monitors, and service health. ```yaml integrations: datadog: api_key: ${DATADOG_API_KEY} app_key: ${DATADOG_APP_KEY} site: datadoghq.com # or datadoghq.eu, us3.datadoghq.com, etc. ``` ### New Relic, Coralogix, Honeycomb, and more OpenSRE.in ships skills for New Relic, Coralogix, Honeycomb, Jaeger, Loki, VictoriaLogs, and VictoriaMetrics too. Configuration follows the same `integrations.` pattern — see each skill's `SKILL.md` under `sre-agent/.claude/skills/` for its exact fields, or [Configuration](/docs/configuration) for the ones already documented there. ## Logging Integrations ### Elasticsearch OpenSRE.in queries Elasticsearch for log patterns, error spikes, and service-specific log analysis. ```yaml integrations: elasticsearch: domain: ${ELASTICSEARCH_DOMAIN} username: ${ELASTICSEARCH_USERNAME} api_key: ${ELASTICSEARCH_API_KEY} ``` ### Splunk Log investigation over Splunk, via the `observability-splunk` skill. See its `SKILL.md` for required credentials. ## Tracing Integrations ### Jaeger OpenSRE.in can look up distributed traces in Jaeger by service, operation, or trace ID, and analyze span timing and error propagation. ### Sentry OpenSRE.in queries Sentry for recent error events, stack traces, and release health metrics correlated with the incident timeline. ```yaml integrations: sentry: auth_token: ${SENTRY_AUTH_TOKEN} organization: your-org # Optional: restrict to specific projects # projects: # - your-project ``` ## Alerting Integrations ### PagerDuty OpenSRE.in can query PagerDuty for recent incident history, on-call schedules, and alert timelines — providing context about whether this is a recurring alert. ```yaml integrations: pagerduty: api_key: ${PAGERDUTY_API_KEY} # Optional: restrict to specific service IDs # service_ids: # - PXXXXXX ``` ### Opsgenie Alert timelines and escalation context via the `alerting-opsgenie` skill. ### Slack Slack integration serves two roles: 1. **Entry point** — start and continue investigations from Slack messages and threads (Socket Mode). 2. **Investigation context** — the agent can query recent messages in incident channels for context, where that skill is enabled. ## LLM Provider Integration By default, OpenSRE.in's agent calls **Anthropic directly** — no proxy required: ```yaml ai_model: provider: anthropic model_id: claude-sonnet-4-6 ``` If you want to route through another provider — OpenRouter, OpenAI, Ollama, or others — start the optional LiteLLM proxy and either point `ai_model.provider` at it or set `ANTHROPIC_BASE_URL` to the proxy address. See [Configuration](/docs/configuration#llm-configuration) and `litellm_config.yaml` for the full setup. This is an opt-in add-on, not the default request path. ## Adding Custom Integrations For tools not listed here, you can add custom integrations as investigation skills. See [Investigation Skills](/docs/skills) for how to create a custom skill that queries your specific tool. --- ### introduction # Introduction OpenSRE.in is an open-source AI SRE platform that investigates production incidents autonomously. When an alert fires, OpenSRE.in's AI agents gather context from your observability stack, reason about root causes, and produce a detailed incident report — the way an experienced SRE would, but faster and around the clock. ## Who is OpenSRE.in for? OpenSRE.in is built for teams that are tired of manual, repetitive incident investigation: - **Platform engineers and SREs** who spend too much time on routine investigations - **On-call engineers** who need help at 3 AM when cognitive load is highest - **Engineering managers** who want to reduce MTTR and reliance on tribal knowledge - **DevOps teams** building their observability practice ## Key Capabilities ### Autonomous Incident Investigation When you start an investigation — from Slack, Microsoft Teams, or the web console — a root investigator agent (built on the Claude Agent SDK) plans the work, loads integration skills on demand, and can dispatch specialist subagents in parallel for independent sub-questions (checking Kubernetes, querying metrics, reading logs and traces). Progress streams back to the client in real time as the agent thinks, calls tools, and produces its final report. ### Memory System OpenSRE.in remembers past investigations. After every conversation, it extracts structured metadata — issue type, affected components, root cause, resolution — and stores it as an episode in Neo4j. Recall is agent-driven: once the agent has concrete symptoms (an error, a failing service, a stack trace), it searches memory for similar past episodes and can pull in a synthesized strategy playbook when enough similar cases exist. Nothing is pre-loaded blindly on a vague alert — see [Memory](/docs/episodic-memory) for how this actually works end to end. ### Knowledge Graph OpenSRE.in keeps service topology — dependencies and blast radius — in the same Neo4j instance as memory. The agent queries it on demand once an affected service is known, to reason about what else might be impacted. Investigations continue normally if the graph is empty or unavailable; it's optional context, not a hard dependency. ### 51 Investigation Skills OpenSRE.in ships with 51 built-in investigation skills covering Kubernetes and cloud infrastructure, observability (Prometheus, Grafana, Datadog, Elastic, Splunk, and more), incident and alerting tools, databases, version control, and ticketing. Skills are loaded progressively — the agent sees lightweight metadata for all of them, then loads the full methodology for the ones it actually decides to use. ### Integrations Works with: Kubernetes, Prometheus, Grafana, Datadog, Elasticsearch, Splunk, New Relic, Coralogix, Jaeger, Honeycomb, Sentry, PagerDuty, Opsgenie, GitHub, GitLab, Bitbucket, Jira, Linear, Confluence, and more — see [Integrations](/docs/integrations) for the full list. ## Architecture at a Glance OpenSRE.in's agent runtime is built on the **Claude Agent SDK** — there's no separate graph-orchestration layer. Alerts and questions enter via Slack, Microsoft Teams, or the web console; sre-agent runs the investigation and streams results back over Server-Sent Events. ``` Slack / Teams → bot → sre-agent (Claude Agent SDK) Web UI ──────────────→ │ ┌────┴────┐ │ │ │ Memory Skills KG (Neo4j) (Neo4j) ``` For a deep dive into the architecture, see [Architecture](/docs/architecture). ## Open Source OpenSRE.in is released under the Apache 2.0 license. Self-host it in your own infrastructure. Your data, your control. [Get started →](/docs/quick-start) --- ### knowledge-graph # Knowledge Graph OpenSRE.in keeps a Neo4j-backed map of your service topology — dependencies, ownership, and the affected-service links back to past investigations. It lives in the same Neo4j instance as memory, as a separate domain within it. During an investigation, the agent can query this graph to understand blast radius and dependency chains for a service it has already identified as affected. ## What's In the Graph - **`:Service` nodes** — one per service you register, with dependency edges between them. - **`:Episode` → `:Service` links** — when an episode's affected components match a known service by name, it gets an `AFFECTED` edge, connecting past investigations to the topology they touched. This is deliberately a smaller, more honest model than a full CMDB. It's built to answer "what else might this affect?", not to be a general-purpose asset inventory. ## How Investigations Use It - **Blast radius / dependency traversal** — given a failing service, what depends on it (or what it depends on) that might explain or be affected by the incident. - **Cross-referencing memory** — because episodes link to services, a service's investigation history is reachable from the graph side too. The agent queries topology through a dedicated skill (`infrastructure-neo4j`), and only after it already knows which service is affected — topology isn't loaded speculatively on a vague alert, the same agent-driven principle as [memory](/docs/episodic-memory). If the graph is empty or Neo4j is unavailable, the investigation continues normally without it; topology is optional context, never a hard dependency. ## Building Your Service Topology Today, topology is **manually maintained** — you seed and update `:Service` nodes and their dependency edges yourself (via the config-service API, or directly in Neo4j), rather than OpenSRE.in discovering them automatically from your infrastructure. Automatic discovery and continuous topology updates are on the roadmap, not shipped yet — don't design a workflow around auto-discovery existing today. ## Where It Lives There's no dedicated topology-editor page in the web console yet. Query and maintain the graph directly (Neo4j Browser at the port from [Quick Start](/docs/quick-start), or the config-service API) until a UI lands. --- ### quick-start # Quick Start OpenSRE.in runs as a set of Docker Compose services. You can have a fully functional AI SRE platform running locally in under 5 minutes. ## Prerequisites - **Docker** and **Docker Compose** installed - **An Anthropic API key** — OpenSRE.in's agent runtime is built on the Claude Agent SDK and calls Anthropic directly by default. You only need `ANTHROPIC_API_KEY`. - **Git** to clone the repository ## Installation ### 1. Clone the repository ```bash git clone https://github.com/swapnildahiphale/OpenSRE.git cd OpenSRE ``` ### 2. Configure environment Copy the example env file and set your key: ```bash cp .env.example .env ``` ```bash # .env ANTHROPIC_API_KEY=sk-ant-your-api-key ``` That's the only required variable to get started. See [Configuration](/docs/configuration) for the full list of optional settings. > **Want to route through OpenRouter or another provider instead?** OpenSRE.in ships an optional LiteLLM proxy for that — see [Use a different LLM provider](#use-a-different-llm-provider-optional) below. It's off by default; direct Anthropic is the supported path for `make dev`. ### 3. Start all services ```bash make dev ``` This starts the core stack: | Service | Port | Description | |---------|------|-------------| | PostgreSQL | 5433 | Config data + investigation run traces | | config-service | 8081 | Configuration API | | Neo4j | 7475 (HTTP), 7688 (Bolt) | Memory + knowledge graph | | sre-agent | 8001 | Investigation agent (Claude Agent SDK) | | web-ui | 3002 | Admin console | ### 4. Generate a token and sign in `make dev` boots config-service in local mode, which auto-seeds one organization (`local`) and one team (`default`) from `config_service/config/local.yaml` — there's no separate "create an org" step for local development. Mint a team token for that org/team: ```bash make e2e-token ``` This calls config-service's admin API (using the default admin token, `local-admin-token`) and prints a team token. Now open `http://localhost:3002` — the console opens on a sign-in screen. Paste the team token there to log in. > **Want admin access instead?** Paste `local-admin-token` (the default `ADMIN_TOKEN`) at the same sign-in screen. That unlocks **Admin** — org tree, token management, and SSO config — where you can mint and revoke tokens visually instead of re-running `make e2e-token`. See [Configuration](/docs/configuration) for token scopes and the SSO setup. ## Trigger Your First Investigation In the web console, you can trigger a test investigation: 1. Click **New Investigation** in the top bar (or press `⌘I`) 2. Enter an alert description, for example: `High error rate on payments-service: 5xx errors spiked to 15% in the last 10 minutes` 3. Click **Investigate** 4. Watch as OpenSRE.in's agents gather context, investigate in parallel, and produce a report The first investigation may take a few minutes depending on which skills are invoked and how deep the agent decides to go. ## Add Slack Integration (Optional) To receive alerts and investigations via Slack: ```bash # Add to your .env SLACK_BOT_TOKEN=xoxb-your-bot-token SLACK_APP_TOKEN=xapp-your-app-token # Start with Slack bot make dev-slack ``` ## Use a Different LLM Provider (Optional) By default `make dev` calls Anthropic directly. If you'd rather route through [OpenRouter](https://openrouter.ai) or another provider, start the optional LiteLLM proxy alongside the core stack and point the agent at it: ```bash # Add to your .env OPENROUTER_API_KEY=your-openrouter-api-key-here ANTHROPIC_BASE_URL=http://litellm:4000 # Start the core stack plus the LiteLLM profile docker compose --profile litellm up ``` See [Configuration](/docs/configuration) for the full `litellm_config.yaml` setup. ## Next Steps - [Entra SSO](/docs/sso) — sign in with Microsoft Entra ID (token login remains) - [Configuration](/docs/configuration) — connect your monitoring stack - [Investigation Skills](/docs/skills) — what OpenSRE.in can investigate - [Architecture](/docs/architecture) — understand how it works - [Memory](/docs/episodic-memory) — how OpenSRE.in learns over time --- ### skills # Investigation Skills Skills are the primary integration surface for OpenSRE.in's agent: each one is a `SKILL.md` methodology doc plus optional Python scripts that let the agent query one part of your infrastructure — from checking Kubernetes pod health to reading Jira tickets to running a Cypher query against the topology graph. ## How Skills Work OpenSRE.in's agent uses the Claude Agent SDK's `Skill` tool. At session start, the agent sees lightweight metadata for every enabled skill (roughly 100 tokens each) — just enough to know what each one is for. When the agent decides a skill is relevant, the SDK loads that skill's full `SKILL.md` into context. Any scripts the skill defines then run via `Bash`, scoped to that skill's directory. This **progressive loading** is what keeps the agent's context window manageable with 51 skills available — it only pays the token cost for the ones it actually uses in a given investigation. ## Skill Categories | Category | Examples | |----------|----------| | **Core methodology** | `investigate`, `remediation`, `alerting-context` | | **Observability** | `observability-coralogix`, `observability-grafana`, `observability-elasticsearch`, `observability-datadog`, `observability-splunk`, `observability-newrelic`, `observability-honeycomb`, `observability-jaeger`, `observability-sentry`, `observability-loki`, `observability-victorialogs`, `metrics-analysis`, `metrics-victoriametrics` | | **Infrastructure & cloud** | `infrastructure-kubernetes`, `infrastructure-aws`, `infrastructure-azure`, `infrastructure-gcp`, `infrastructure-docker`, `infrastructure-neo4j` (topology) | | **Alerting & on-call** | `alerting-opsgenie` | | **Incident management** | `incident-incidentio`, `incident-blameless`, `incident-firehydrant`, `incident-comms` | | **Databases** | `database-postgresql`, `database-mysql`, `database-snowflake`, `database-bigquery` | | **Docs & knowledge** | `knowledge-base`, `knowledge-raptor`, `docs-notion`, `docs-google` | | **Memory** | `memory-search` | | **Code & version control** | `vcs-github`, `vcs-gitlab`, `vcs-bitbucket`, `vcs-sourcegraph` | | **Ticketing & project** | `project-jira`, `project-linear`, `project-clickup` | | **Other integrations** | `platform-jenkins`, `platform-argocd`, `platform-vercel`, `streaming-kafka`, `analytics-amplitude`, `runtime-config-flagd` | See the full, current list under `sre-agent/.claude/skills/` in the repo — this table covers every category, not necessarily every skill. ## Adding Custom Skills You can add investigation skills for your own stack. Skills are directories under `sre-agent/.claude/skills/`: ``` sre-agent/.claude/skills/ my-custom-skill/ SKILL.md # What the skill does, and how to use it scripts/ # Executable scripts the skill invokes via Bash ``` `SKILL.md` describes the skill's purpose and usage to the agent. After adding a skill, regenerate the config-service skills catalog so it shows up in team/agent skill toggles (`config_service/scripts/gen_skills_catalog.py`). ## Skills Configuration Enable or disable skills at the team level with a wildcard plus a disable-list, or restrict a single agent explicitly: ```yaml skills: enabled: - '*' disabled: - observability-datadog - database-mysql ``` ```json { "agents": { "my-agent-id": { "skills": { "infrastructure-kubernetes": true, "observability-datadog": false } } } } ``` Disabled skills are removed from that thread's skill workspace before the agent's session starts — the agent never even sees their metadata. See [Configuration](/docs/configuration) for the full config reference. --- ### sso # Entra SSO Sign into the OpenSRE.in web console with Microsoft Entra ID (Azure AD). Pasting a team or admin token still works as break-glass. This is **not** the Microsoft Teams bot. Teams needs its own Entra app and `TEAMS_*` variables. See [Integrations](/docs/integrations). ## Which login path to use OpenSRE.in has two OIDC-related paths. Use **one**. | Path | When | What to set | |------|------|-------------| | **Admin → SSO** (this guide) | Entra **Web** (confidential) app; Authorization Code without PKCE | Keep Helm `services.webUi.oidc.enabled` **false**. Do not set `WEB_UI_OIDC_*`. | | Helm / `WEB_UI_OIDC_*` PKCE | SPA-style public client with PKCE | A separate product path. Leave it off for Entra Web apps. | Tenant ID and client ID live in **Admin → SSO** (`sso_configs`). The client secret is env-only: set `SSO_CLIENT_SECRET` on config-service. Do not put them in git, Helm overlays, or committed docs. ## 1. Create the Entra app Azure Portal → **Microsoft Entra ID** → **App registrations** → **New registration**. 1. **Name** — for example `OpenSRE Web Console` 2. **Supported account types** — *Accounts in this organizational directory only* (single tenant) 3. **Redirect URI** — platform **Web** (not SPA): - Production: `https:///api/auth/callback` - Local Compose: `http://localhost:3002/api/auth/callback` 4. Register, then copy: - **Application (client) ID** - **Directory (tenant) ID** ### Authentication App → **Authentication**: - Platform is **Web** only (no SPA, public client flows **disabled**) - Implicit grant / hybrid: leave **ID tokens** and **Access tokens** unchecked - Register every origin you will actually use. A mismatch returns `AADSTS500112`. ### Client secret App → **Certificates & secrets** → **New client secret**. Copy the **Value** once. ### API permissions App → **API permissions** → Microsoft Graph **delegated**: - `openid` - `email` - `profile` - `User.Read` Grant admin consent for the tenant. ### Email claim Entra often omits `email` from Graph `/oidc/userinfo`. OpenSRE.in also accepts `preferred_username` or `upn` when they look like emails. Optional: **Token configuration** → add optional claim `email` on ID and access tokens. ## 2. OpenSRE.in environment | Variable | Service | Purpose | |----------|---------|---------| | `WEB_UI_SSO_ORG_ID` | web-ui | Org whose SSO config drives the login button. Helm sets this from `global.configService.orgId`. Compose default: `local`. If unset, the Microsoft button stays hidden. | | `WEB_UI_PUBLIC_BASE_URL` | web-ui | Browser origin used as Entra `redirect_uri`. Required when the process binds `0.0.0.0` (Docker/Kubernetes). | | `WEB_UI_COOKIE_SECURE` | web-ui | `1` on HTTPS. Keep `0` for `http://localhost`. | | `SSO_DEFAULT_TEAM_NODE_ID` | config-service | Team node SSO sessions attach to (default `default`). | | `SSO_CLIENT_SECRET` | config-service | Entra/OIDC client secret (env only — not in DB or Admin form). | | `TOKEN_PEPPER` | config-service | Same pepper used to hash team tokens. SSO cookies are ordinary team tokens. | Local seed (optional): if `SSO_AZURE_TENANT_ID` and `SSO_AZURE_CLIENT_ID` are set in `.env`, demo seed writes SSO config for the local org. Set `SSO_CLIENT_SECRET` on config-service separately. Do not reuse Azure Monitor or Teams variables (`AZURE_CLIENT_SECRET`, `TEAMS_APP_PASSWORD`). ## 3. Enable in Admin → SSO 1. Sign in with the **admin token**. 2. Open **Admin → SSO**. 3. Provider: **Microsoft Entra ID**. 4. Paste tenant ID and client ID. 5. Confirm **Client secret** shows `SSO_CLIENT_SECRET detected` on config-service. 6. Scopes: `openid email profile` 7. Allowed domains: every email domain Entra may return (UPN and mail nickname can differ). 8. Enable and save. ## 4. Local Docker Compose ```bash # .env — placeholders only WEB_UI_SSO_ORG_ID=local WEB_UI_PUBLIC_BASE_URL=http://localhost:3002 SSO_DEFAULT_TEAM_NODE_ID=default SSO_CLIENT_SECRET= SSO_AZURE_TENANT_ID= SSO_AZURE_CLIENT_ID= SSO_ALLOWED_DOMAINS=example.com SSO_SCOPES=openid email profile ``` Add `http://localhost:3002/api/auth/callback` on the Entra app. Run `make dev` and open `http://localhost:3002`. If you skip the Azure seed variables, fill **Admin → SSO** after logging in with the admin token. ## 5. Kubernetes Keep `services.webUi.oidc.enabled: false`. The Helm chart sets: - `WEB_UI_SSO_ORG_ID` from `global.configService.orgId` - `WEB_UI_PUBLIC_BASE_URL` from `services.webUi.oidc.publicBaseUrl`, or `https://` Put `SSO_CLIENT_SECRET` and `TOKEN_PEPPER` in the config-service secret. After deploy, paste Entra tenant/client id in **Admin → SSO** — not in `values.yaml`. See [self-hosted install](https://github.com/swapnildahiphale/OpenSRE/blob/main/docs/SELF_HOSTED_SIMPLE_INSTALL.md) for the chart profile. ## Smoke test - Incognito → **Continue with Microsoft Entra ID** → land on `/team` - Token login still works ## Troubleshooting | Symptom | Likely cause | |---------|----------------| | No Microsoft button | `WEB_UI_SSO_ORG_ID` unset, or SSO not enabled for that org | | `AADSTS500112` | Redirect URI mismatch. Set `WEB_UI_PUBLIC_BASE_URL` so Docker/Kubernetes does not send `http://0.0.0.0:...` | | `Email domain '…' not allowed` | Add that domain under **Allowed domains** | | Lands on home with no session | Rebuild `web-ui`. The callback sets the cookie on a 200 HTML page, then navigates in-browser (Chrome can drop `Set-Cookie` on a cross-site 302). | | `Invalid token` right after SSO | `TOKEN_PEPPER` on config-service does not match the pepper used to hash the session token | | Token exchange 500 / secret not configured | `SSO_CLIENT_SECRET` missing on config-service | --- ## Blog ### ai-powered-incident-investigation # AI-Powered Incident Investigation: How It Works Traditional incident response is reactive. An alert fires, a human gets paged, and the investigation begins from scratch. OpenSRE.in changes this by deploying AI agents that investigate incidents the moment they're detected. ## The Investigation Pipeline When an alert reaches OpenSRE.in, here's what happens: ### 1. Context Gathering The system pulls in all available context: the alert payload, recent deployments, service health metrics, and any related incidents from its memory. It already knows the topology of your system through its knowledge graph. ### 2. Planning A planner agent analyzes the context and decides which investigation paths to pursue. It selects from 50+ available investigation skills based on the alert type, affected services, and what's worked in similar situations before. ### 3. Parallel Investigation Multiple investigation subagents fan out to gather evidence simultaneously. One might check Kubernetes pod status while another queries Prometheus metrics and a third reads application logs. This parallel approach dramatically reduces investigation time. ### 4. Synthesis A synthesizer agent collects all findings, correlates the evidence, and identifies the most likely root cause. It considers multiple hypotheses and weighs the evidence for each. ### 5. Report Generation The final output is a structured incident report: a timeline of events, root cause analysis, blast radius assessment, and recommended remediation steps. ## Why Memory Matters The key differentiator is memory. After each investigation, OpenSRE.in stores the full episode — what was investigated, what was found, and what the resolution was. When a similar incident occurs, the system retrieves relevant episodes and applies those learnings. This is how experienced SREs operate. They don't start from zero each time. They recognize patterns, remember past incidents, and know which diagnostic steps are most likely to be productive. OpenSRE.in codifies this process. ## Built for Your Stack OpenSRE.in integrates with the tools you already use: Prometheus, Grafana, Datadog, Elastic, Splunk, PagerDuty, Slack, Kubernetes, and more. It meets your infrastructure where it is. [Learn more about OpenSRE.in →](/blog/what-is-opensre) --- ### ai-sre-agent-explained # What is an AI SRE Agent? An AI SRE agent is an autonomous software system that investigates production incidents. It receives an alert, decides what to investigate, queries your monitoring tools, reasons about the evidence, and produces a structured incident report — the way an experienced site reliability engineer would, but without the 3 AM wake-up call. ## What Makes It an "Agent"? Not all AI tools are agents. A chatbot answers questions. An AI SRE agent acts autonomously toward a goal. The key properties of an AI SRE agent: **Goal-directed**: Given an alert, the agent pursues a goal — understand what's happening and why. It doesn't just answer one question and stop. **Tool use**: The agent has access to tools: run a Prometheus query, check Kubernetes pod status, read application logs. It decides which tools to use based on what it's learned so far. **Multi-step reasoning**: Incident investigation requires multiple steps — gather initial context, form hypotheses, gather more targeted evidence, revise hypotheses, reach conclusions. An agent executes this loop autonomously. **Adaptive**: If the first hypothesis doesn't pan out, the agent pivots. If a Kubernetes check returns nothing interesting, it moves to application metrics. Human-like reasoning, not brittle scripts. ## How AI SRE Agents Differ from Runbook Automation Runbook automation (like PagerDuty Automation) executes predefined scripts in response to specific alerts. It works well for known, well-defined incidents with known remediation steps. AI SRE agents handle the unknown: - New types of incidents you haven't seen before - Multi-service failures with complex blast radius - Incidents that don't match any existing runbook - Root causes that require reasoning across multiple data sources The tradeoff: runbook automation is predictable and fast for known incidents. AI agents are more flexible but less deterministic. ## The Investigation Workflow A typical AI SRE investigation in OpenSRE.in: ### 1. Alert received An alert arrives via Slack, Teams, or the web console: "High error rate on payments-service: 5xx errors at 12%, up from baseline 0.2%." ### 2. Session start sre-agent creates or resumes a thread and opens an `InteractiveAgentSession` (Claude Agent SDK). The root investigator agent plans the work and loads investigation skills on demand. ### 3. Parallel evidence gathering The root agent delegates specialist subtasks via the SDK `Task` tool — for example checking Kubernetes pod health, querying Prometheus, reading traces, and reviewing recent deployments — often in parallel. ### 4. Memory and topology on demand After concrete symptoms are known, the agent may call `memory-search` for similar past investigations and `infrastructure-neo4j` for dependencies and blast radius. Nothing is pre-loaded into the first prompt; recall is agent-driven. ### 5. Streaming progress and answer Tool calls, thoughts, subagent progress, and the final answer stream to the client as Server-Sent Events. ### 6. Turn completion When the turn finishes, a lifecycle hook upserts a Neo4j `:Episode` (one per conversation) with a condensed summary, and the full tool trace is persisted to PostgreSQL for replay in the web UI. ## The Role of LLMs LLMs are the reasoning engine inside an AI SRE agent. They handle: - **Planning**: deciding which tools to use and in what order - **Interpretation**: understanding what metrics and logs mean in context - **Synthesis**: combining evidence from multiple sources into a coherent conclusion - **Communication**: writing clear, actionable incident reports LLMs alone aren't enough — without the tool ecosystem, memory, and knowledge graph, an LLM can only reason about what you tell it directly. OpenSRE.in combines all these components. ## OpenSRE.in's Implementation OpenSRE.in implements AI SRE agents using: - **The Claude Agent SDK** as the runtime: one session, skills loaded on demand, subagents for parallel work - **50+ investigation skills** for querying your specific tools - **Memory** for learning from past investigations - **Neo4j knowledge graph** for service topology context - **LiteLLM** for routing to any LLM provider [Try OpenSRE.in →](/docs/quick-start) | [Architecture deep-dive →](/docs/architecture) --- ### getting-started-with-opensre # Getting Started with OpenSRE.in OpenSRE.in is designed to be straightforward to set up. This guide walks you through the basics of getting it running in your environment. ## Prerequisites - Docker and Docker Compose - An API key for an LLM provider (OpenRouter, Anthropic, or OpenAI) - Your monitoring stack credentials (Prometheus, Grafana, etc.) ## Quick Setup 1. **Clone the repository** ```bash git clone https://github.com/swapnildahiphale/OpenSRE.git cd OpenSRE ``` 2. **Configure environment** Copy the example environment file and add your API key: ```bash cp .env.example .env # Edit .env and set OPENROUTER_API_KEY ``` 3. **Start the platform** ```bash make dev ``` This starts all services: the SRE agent, web console, Neo4j knowledge graph, PostgreSQL, and LiteLLM proxy. 4. **Open the console** Visit `http://localhost:3000` to access the web console. From here you can trigger investigations, view reports, and configure integrations. ## Connecting Your Tools OpenSRE.in integrates with your existing monitoring stack. Configure connections to: - **Prometheus** — metrics queries - **Grafana** — dashboard context - **Kubernetes** — cluster state and pod health - **Slack** — receive alerts and investigation reports Configuration is done through the web console or by editing the team configuration file. ## What's Next Once OpenSRE.in is running, try triggering a test investigation. The platform will walk through its investigation pipeline and produce a report. Each investigation teaches the memory system, making future investigations faster and more accurate. Check out the [documentation](/docs) for detailed configuration options and advanced features. --- ### knowledge-graphs-for-incident-response # Knowledge Graphs for Incident Response A knowledge graph gives AI SRE agents a map of your entire system during incident investigation. Instead of an AI agent that knows Kubernetes commands but doesn't know your specific services, you have an agent that knows: "orders-service depends on payments-service which depends on the payments database, and orders-service is owned by the Commerce team." This context transforms generic investigation into targeted, system-aware diagnosis. ## What is a Service Knowledge Graph? A service knowledge graph is a graph database (OpenSRE.in uses Neo4j) that stores your services as nodes and their relationships as edges: - **Services** → what you run - **DEPENDS_ON** → which services call which - **OWNS** → which team owns which service - **DEPLOYED_ON** → where services run (clusters, nodes) - **USES** → which databases, queues, or external APIs a service depends on Unlike a static architecture diagram that goes stale, a knowledge graph is updated continuously — new deployments, new services, new dependencies are reflected in near-real-time. ## How It Changes Incident Investigation ### Without a Knowledge Graph When `payments-service` has errors, an AI agent without service topology knowledge checks: "Is payments-service healthy? Yes/no." It has no way to know that three other services are currently failing because they all depend on payments-service. ### With a Knowledge Graph The AI agent queries: "What services depend on payments-service, directly or transitively?" The graph returns: `orders-service`, `checkout-service`, `subscription-service`. The agent checks all four simultaneously. The blast radius is understood within seconds of investigation start. ## Blast Radius Analysis Blast radius analysis answers: "If this service fails, what else breaks?" OpenSRE.in performs blast radius analysis by traversing the dependency graph from the failing node: ```cypher MATCH (s:Service)-[:DEPENDS_ON*1..3]->(failing:Service {name: "payments-service"}) RETURN s.name, s.team, length(path) as hops ORDER BY hops ``` This returns every service that depends on payments-service, up to 3 hops away. Investigation subagents check each of these services proactively, rather than waiting for more alerts to fire. ## Dependency Traversal for Root Cause When investigating a latency spike in `checkout-service`, the graph answers: "What does checkout-service depend on?" — `payments-service`, `inventory-service`, `shipping-service`, and `user-service`. Each of these is a candidate root cause. The knowledge graph focuses the investigation. ## Recent Change Detection One of the most valuable uses of the knowledge graph is change detection. The graph stores deployment events, configuration changes, and infrastructure modifications with timestamps. During investigation: > "What changed near checkout-service in the last 2 hours?" The graph returns: "payments-service was deployed at 14:32 (32 minutes before the incident)." This is often the fastest path to root cause. ## Building Your Knowledge Graph ### Automatic Discovery OpenSRE.in can populate the knowledge graph automatically from: - **Kubernetes service mesh data** (Istio, Linkerd): actual traffic flows become dependency edges - **Distributed tracing** (Jaeger, Datadog APM): trace data reveals service call patterns - **API gateway logs**: request routing reveals dependencies ### Manual Registration For services that aren't auto-discoverable, use OpenSRE.in's web console to register services and their dependencies manually. ## Neo4j as the Foundation OpenSRE.in uses Neo4j for the knowledge graph because: - **Graph queries are natural**: Cypher makes it easy to ask graph questions (blast radius, shortest path, connected components) - **Performance**: Graph traversal in Neo4j is O(depth) not O(nodes) — fast even at thousands of services - **Flexibility**: Schema-free means you can add new node types and relationships as your needs evolve [Knowledge Graph docs →](/docs/knowledge-graph) | [Try OpenSRE.in →](/docs/quick-start) --- ### opensre-vs-commercial-incident-tools # OpenSRE.in vs Commercial SRE Tools: An Honest Comparison OpenSRE.in is an open-source AI SRE platform that investigates production incidents autonomously using memory and a knowledge graph. If you're evaluating AI-powered incident response tools, here's how it compares to PagerDuty AI and Rootly AI — honestly, including where the commercial tools have advantages. ## Feature Comparison | Capability | OpenSRE.in | PagerDuty AI | Rootly AI | |-----------|---------|-------------|----------| | Open Source | Apache 2.0 | See vendor docs | See vendor docs | | Self-Hosted | Yes | See vendor docs | See vendor docs | | Memory | Yes | See vendor docs | See vendor docs | | Knowledge Graph | Yes | See vendor docs | See vendor docs | | Investigation Skills | 50+ | See vendor docs | See vendor docs | | LLM Provider Choice | Any (via LiteLLM) | See vendor docs | See vendor docs | | Slack Integration | Yes | See vendor docs | See vendor docs | | Web Console | Yes | See vendor docs | See vendor docs | | API Access | Yes | See vendor docs | See vendor docs | | Price | Free (Apache 2.0) | Commercial | Commercial | ## The Open Source Advantage ### No Vendor Lock-in With PagerDuty AI or Rootly AI, your incident history, runbooks, and automation are locked into their platform. If you switch tools, you start over. With OpenSRE.in, everything lives in your infrastructure — your database, your Neo4j instance, your Git repository. You own your data. ### Self-Hosted Data Sovereignty Enterprise teams with compliance requirements (SOC 2, HIPAA, FedRAMP) often can't send incident data to third-party SaaS platforms. OpenSRE.in runs entirely in your infrastructure. Your incident data, your memory, and your knowledge graph never leave your environment. ### Any LLM Provider Commercial tools typically lock you into a specific AI provider. OpenSRE.in routes through LiteLLM, giving you full control: use Anthropic's Claude for quality, switch to open-source models for cost, run a local model for air-gapped environments. ### Customizable Investigation Skills OpenSRE.in's 50+ investigation skills are extensible. Add a custom skill for your internal monitoring tool, your proprietary deployment system, or your custom alerting pipeline. Commercial tools don't let you extend their investigation logic. ## Where Commercial Tools Have Advantages ### Running it yourself vs. a commercial SaaS OpenSRE.in is fully open source and self-hosted. If you want a vendor to run incident tooling for you, a commercial SaaS is simpler. OpenSRE.in requires infrastructure to run, which means maintenance overhead on your side. ### Enterprise Support and SLAs PagerDuty and Rootly offer 24/7 enterprise support with SLAs. OpenSRE.in relies on community support and your own team's expertise. For teams without DevOps capacity, this matters. ### Compliance Certifications SOC 2 Type II, ISO 27001, and similar certifications take years to obtain. Commercial tools have them. OpenSRE.in doesn't — you're responsible for your own compliance posture. ## When to Choose OpenSRE.in Choose OpenSRE.in if: - You have infrastructure capacity to self-host - You need data sovereignty or air-gapped operation - You want to extend investigation logic with custom skills - You are cost-conscious (commercial tools are priced per seat or per usage; check vendor pricing) - You want to contribute to and influence the roadmap Choose commercial tools if: - You need a vendor-operated SaaS with zero ops overhead on your side - You require enterprise SLAs and certified support - Your team lacks infrastructure experience - You need specific compliance certifications out of the box ## Getting Started OpenSRE.in runs with a single command: ```bash git clone https://github.com/swapnildahiphale/OpenSRE.git cd OpenSRE make dev ``` [Full setup guide →](/docs/quick-start) --- ### reducing-mttr-with-ai-sre # Reducing MTTR with AI-Powered SRE Mean Time to Resolution (MTTR) is the critical metric for incident response teams. OpenSRE.in automates the investigation phase — gathering context, forming hypotheses, and identifying root causes without waiting for a human engineer to start. It is already in use at organizations, and early users report faster resolution; we are still validating those results. ## The MTTR Problem ### Manual Investigation Takes Too Long A typical production incident follows this timeline: 1. Alert fires → pager wakes someone up (1-5 minutes) 2. Engineer opens dashboards, starts investigating (5-15 minutes) 3. Gathers context from Kubernetes, metrics, logs (15-45 minutes) 4. Forms hypotheses, tests them (15-60 minutes) 5. Identifies root cause, implements fix (variable) Steps 2-4 — context gathering and hypothesis formation — account for much of MTTR. This is where AI agents make the biggest impact. ### Context Switching Kills Velocity During a P1 incident, engineers jump between 5-10 tools: Grafana dashboards, kubectl logs, Datadog traces, Sentry errors, PagerDuty history, Slack threads. Each context switch loses time. An AI agent can query all of these in parallel. ### Tribal Knowledge Doesn't Scale Senior engineers resolve incidents faster because they've seen similar issues before. They remember: "Last time payments-service had high error rates, it was the connection pool." New engineers don't have this knowledge. AI agents with memory do. ## How AI Reduces Each Phase of MTTR ### Detection to Triage (0-5 minutes) AI agents start investigating the moment an alert fires — no waiting for an engineer to wake up, log in, and orient. By the time the on-call engineer sees the alert, OpenSRE.in has already: - Queried Kubernetes for pod health and recent events - Checked Prometheus for anomalous metrics - Looked up the service in the knowledge graph for dependencies - Retrieved similar past incidents from memory ### Triage to Root Cause Instead of a single engineer checking tools one by one, OpenSRE.in dispatches multiple investigation subagents in parallel. One agent checks Kubernetes, another checks metrics, another checks logs, another checks distributed traces — simultaneously. The planner combines these findings into a coherent hypothesis. ### Root Cause to Resolution OpenSRE.in doesn't resolve incidents automatically (that would be dangerous without human oversight), but it gives the on-call engineer a structured report with: - Probable root cause with evidence - Timeline of events leading to the incident - Affected services and blast radius - Suggested remediation steps based on past incidents - Links to relevant dashboards and log queries The engineer validates the root cause and implements the fix, starting from a fully investigated state rather than a blank slate. ## The Learning Loop OpenSRE.in's memory creates a compound effect on MTTR: | Investigation # | What happens | |-----------------|-------------| | First | Full investigation from scratch | | 2nd-5th | Memory provides context from past episodes | | 6th-10th | Strategies auto-generate from patterns | | 10th+ | High-confidence pattern recognition, faster resolution paths | Each investigation makes the next one faster. After 10 investigations of similar incidents, OpenSRE.in has learned the common root causes, which skills to prioritize, and what remediation steps work. ## Measuring the Impact Track these metrics before and after deploying OpenSRE.in: - **MTTR per alert type**: Breakdown shows which incident categories benefit most - **Time to first context**: How long until the on-call engineer has a full picture - **Investigation depth**: Number of data sources queried per incident - **Repeat incident rate**: Memory should reduce recurring incidents over time ## Getting Started ```bash git clone https://github.com/swapnildahiphale/OpenSRE.git cd OpenSRE && make dev ``` [Setup guide →](/docs/quick-start) | [How OpenSRE.in works →](/docs/architecture) --- ### self-hosted-team-ai-sre-with-memory # Self-Hosted Team AI SRE with Memory OpenSRE.in — the memory-first AI SRE — is a self-hosted platform that investigates production incidents, remembers what it learns, and maps service topology. This post is for teams who want that capability inside their own network, with a real console and chat entry points — not only a laptop CLI. ## What “memory-first” means Memory stores structured outcomes from past investigations. When a similar alert fires, OpenSRE.in can recall prior root causes and approaches instead of starting from zero. That is the difference between a one-shot agent and an SRE teammate that accumulates institutional knowledge. ## Knowledge graph for blast radius A Neo4j knowledge graph gives investigations service dependencies and blast radius context. Symptom chasing without topology is how on-call burns hours. Topology-aware investigation is how you stop guessing. ## Team surfaces, not only a single developer shell Teams need a web console for Investigations, hierarchical org→team configuration, and chat in Slack and Microsoft Teams. OpenSRE.in ships those as first-class surfaces on a stack you run with Docker Compose or Kubernetes. ## Same name, different product If you searched for “OpenSRE” and found more than one project: this one lives at [opensre.in](https://opensre.in). It is not affiliated with Tracer / opensre.com. Feature-by-feature: [OpenSRE vs Tracer OpenSRE](/compare/opensre-vs-tracer). ## Get started See the [quick start](/docs/quick-start) or the [GitHub repository](https://github.com/swapnildahiphale/OpenSRE). --- ### what-is-episodic-memory-in-sre # What is Memory in SRE? Memory allows AI SRE agents to learn from past investigations. Instead of starting from scratch, an agent can recall a prior investigation with similar symptoms, the evidence it gathered, and the root cause it identified. This accumulated operational history helps the agent investigate recurring problems. ## The Problem: Stateless AI Isn't Enough Most AI tools are stateless. They have knowledge from their training data, but they don't remember your specific systems, your specific incidents, or what's worked for you in the past. Imagine a senior SRE on their first day at a new company. They know SRE practices well, but they don't know your systems. Now imagine that same SRE after 2 years on-call. They've seen hundreds of incidents, they recognize patterns, they know the quirks of each service. Memory is how we give that accumulated expertise to an AI agent. ## How Memory Works in OpenSRE.in ### Step 1: Investigation Completes After every investigation, OpenSRE.in produces a structured record of the reported problem, evidence gathered, affected components, and the best-supported root cause when one was identified. ### Step 2: Metadata Extraction An LLM extracts structured metadata from the investigation outcome: - **Summary**: A concise description of the investigation - **Issue type**: A short classification of the problem shape, not only an alert type - **Issue description**: What was reported or asked - **Affected components**: Services, deployments, jobs, databases, hosts, or other involved subjects - **Severity**: `critical`, `warning`, `info`, or not applicable - **Root cause**: The current best-supported root cause, when identified - **Diagnostic status**: Whether a root cause was identified with enough supporting evidence Diagnostic status does not mean the production issue was fixed or remediated. ### Step 3: Episode Storage OpenSRE.in stores one investigation episode per conversation in Neo4j. Each episode captures the investigation summary, evidence-backed root cause when one was identified, affected services, and outcome. Unresolved investigations remain useful because they preserve approaches and evidence that did not produce a confirmed answer. ### Step 4: Semantic Retrieval When an investigation encounters concrete symptoms, the agent can search past episodes for semantically related incidents. OpenSRE.in uses vector retrieval over the stored episodes, then returns the most relevant investigation history as evidence for the current investigation. ### Step 5: Agent-Guided Recall Memory is not injected blindly into every prompt. The investigator uses the memory-search capability after it has enough concrete symptoms to form a useful query. This reduces irrelevant recall and keeps the current evidence primary. ### Step 6: Strategy Synthesis When a memory search returns at least two relevant episodes, OpenSRE.in can synthesize a concise investigation strategy from their root causes, successful skills, and ineffective approaches. The generated strategy is cached in Neo4j and remains traceable to its source episodes. ## Memory vs Generic RAG Generic retrieval-augmented generation usually searches documentation: runbooks, service docs, tickets, or knowledge-base pages. Memory searches what actually happened during prior investigations. The distinction matters during incidents: - **Documentation says what should happen.** Episodes preserve what did happen. - **Runbooks describe intended steps.** Episodes retain the evidence, failed hypotheses, and confirmed root cause from a real investigation. - **A knowledge base is curated.** Memory grows from operational work. The two approaches complement each other. OpenSRE.in can use documentation for procedural knowledge while memory supplies environment-specific history. ## The Difference From Fine-Tuning Memory is not fine-tuning. Fine-tuning bakes knowledge into the model weights — it's expensive, requires ML expertise, and goes stale as your systems evolve. Memory is a retrieval system. Episodes are stored in Neo4j and retrieved by the agent when concrete symptoms warrant a memory search. New investigations extend that operational history without retraining the model. ## What Gets Better Over Time The compound effect of memory: | Memory state | What changes | |--------------|-------------| | First episodes | OpenSRE.in begins building environment-specific investigation history | | Similar episodes | Relevant past evidence can surface for recurring symptoms | | Two or more relevant search results | OpenSRE.in can synthesize a reusable investigation strategy | | Repeated patterns | Investigators gain richer evidence about effective and ineffective approaches | ## Viewing Memory in OpenSRE.in The OpenSRE.in web console includes Memory. View stored episodes, filter by service or severity, see which strategies have been generated, and review the context provided to investigations. [Explore OpenSRE.in on GitHub →](https://github.com/swapnildahiphale/OpenSRE) | [Read the Memory docs →](/docs/episodic-memory) | [Run OpenSRE.in →](/docs/quick-start) --- ### what-is-opensre # What is OpenSRE.in? OpenSRE.in is an open-source AI platform that investigates production incidents the way an experienced SRE would — but faster and around the clock. ## The Problem When a production incident hits, engineers scramble to figure out what went wrong. They check dashboards, grep through logs, trace requests, and piece together a timeline. This process is slow, stressful, and depends heavily on tribal knowledge. ## How OpenSRE.in Helps OpenSRE.in automates this investigation process. When an alert fires, OpenSRE.in's AI agents: - **Gather context** from your monitoring tools — Prometheus, Grafana, Datadog, Elastic, and more - **Investigate systematically** using 50+ built-in investigation skills - **Learn from past incidents** through memory, getting better over time - **Map service dependencies** via a knowledge graph powered by Neo4j - **Produce a detailed report** with root cause analysis, timeline, and remediation steps ## Key Features ### Memory Unlike stateless AI tools, OpenSRE.in remembers past investigations. When a similar incident occurs, it recalls what worked before — the same way a senior engineer builds intuition over years of on-call experience. ### Knowledge Graph OpenSRE.in maintains a live graph of your service topology. It knows which services depend on which, what changed recently, and how failures propagate through your system. ### 50+ Investigation Skills From checking Kubernetes pod status to analyzing Prometheus metrics to reading Sentry error traces — OpenSRE.in has a growing library of investigation skills that it selects based on the incident context. ## Open Source OpenSRE.in is fully open-source under the Apache 2.0 license. Self-host it in your own infrastructure. Your data stays with you. [Get started with OpenSRE.in →](/blog/getting-started-with-opensre) --- ## FAQ ### For SREs & Platform Engineers Q: There are two projects named OpenSRE — which one is this? A: This site is OpenSRE.in — built for production incident investigation with shared team memory, a hand-maintained service graph, Slack and Microsoft Teams, and Entra SSO, fully self-hosted with no paid plan. It is not affiliated with Tracer’s OpenSRE at opensre.com, a Public Alpha project focused on CI/CD reliability and incident investigation. Footnoted comparison: https://opensre.in/compare/opensre-vs-tracer#sources Q: What is OpenSRE.in? A: OpenSRE.in is an open-source AI SRE platform that investigates production incidents autonomously. A root investigator agent built on the Claude Agent SDK loads investigation skills on demand and can delegate to specialist subagents that gather context from your observability stack, reason about root causes, and produce structured incident reports. Unlike stateless AI tools, OpenSRE.in has memory that learns from every past investigation, and a Neo4j knowledge graph that maps your service topology. Q: How does OpenSRE.in investigate incidents? A: When an alert fires, the OpenSRE.in planner agent breaks the investigation into parallel subtasks — checking Kubernetes health, querying Prometheus metrics, reading application logs, analyzing distributed traces. Multiple subagent executors run these subtasks simultaneously. A synthesizer combines the findings and produces a structured report with root cause, evidence, and remediation suggestions. Q: What investigation skills does OpenSRE.in have? A: OpenSRE.in has 50+ built-in investigation skills covering Kubernetes, Prometheus, Grafana, Datadog, Elastic/ELK, Splunk, Jaeger, Sentry, PagerDuty, Slack, GitHub, and more. Skills are loaded on-demand — agents request the skill they need, preventing context window bloat. You can also add custom skills for tools specific to your stack. Q: How does memory work in OpenSRE.in? A: After every investigation, OpenSRE.in extracts metadata — root cause, alert type, affected services, severity, resolution status — and stores it as an episode. Before each new investigation, it retrieves similar past episodes using weighted similarity scoring (alert type, service overlap, resolution status). This context is injected into the investigation planner, so OpenSRE.in learns from every incident. Q: What integrations are supported? A: OpenSRE.in integrates with Kubernetes, Prometheus, Grafana, Datadog, New Relic, Elastic/ELK, Splunk, Jaeger, Sentry, PagerDuty, OpsGenie, Slack, GitHub, and Confluence. For LLM providers, it uses LiteLLM as a proxy, supporting Anthropic, OpenAI, OpenRouter, and any compatible provider including self-hosted models. Q: Can I add custom investigation skills? A: Yes. Skills are defined as directories in `.claude/skills/` with a `SKILL.md` describing the skill's tools and context, plus executable scripts. Any tool your engineers use can become an investigation skill — internal monitoring tools, proprietary deployment systems, custom alerting pipelines. Q: How does OpenSRE.in connect to my observability stack? A: OpenSRE.in connects to your stack via integration configuration in `litellm_config.yaml` and the config-service. Each integration has a URL and credentials. During investigations, agents query these integrations directly — Prometheus for metrics, Elasticsearch for logs, Jaeger for traces, Kubernetes API for pod health. ### For Engineering Managers Q: How does OpenSRE.in reduce MTTR? A: OpenSRE.in reduces MTTR by automating the investigation phase — the part of incident resolution spent gathering context, forming hypotheses, and querying tools. It is already in use at organizations, and early users report faster resolution; we are still validating those results. It starts investigating the moment an alert fires, runs multiple investigation threads in parallel, and presents the on-call engineer with a fully investigated situation rather than a blank dashboard. Q: How is OpenSRE.in different from PagerDuty AI or Rootly AI? A: OpenSRE.in is open-source (Apache 2.0) and self-hosted, while PagerDuty and Rootly are commercial SaaS. Key differentiators are memory (it learns from every incident) and a Neo4j knowledge graph (it maps your service topology for blast radius analysis) — neither commercial tool has these. OpenSRE.in also supports any LLM provider via LiteLLM, not just one fixed model. Q: Is OpenSRE.in production-ready? A: OpenSRE.in is actively used in production environments. It runs as a set of Docker Compose services (or Kubernetes via Helm chart) and has been tested with real production incident investigation scenarios. The core agent pipeline, memory, and knowledge graph components are stable. As with any open-source platform, you're responsible for your own deployment and operations. Q: What's the cost of running OpenSRE.in? A: OpenSRE.in itself is free and open-source. The main cost is infrastructure (running PostgreSQL, Neo4j, and the agent services) and LLM API usage. Costs depend on your infrastructure and LLM usage. Q: Can OpenSRE.in replace our on-call rotation? A: OpenSRE.in augments on-call engineers, not replaces them. It handles the investigation phase autonomously — gathering context, forming hypotheses, identifying probable root causes. The on-call engineer validates findings and implements fixes. For low-severity, well-understood incidents with clear runbooks, you can configure automated remediation, but human oversight remains for production changes. ### For DevOps Generalists Q: How do I set up OpenSRE.in? A: Clone the repository, create a `.env` file with your `OPENROUTER_API_KEY`, and run `make dev`. This starts all services including PostgreSQL, Neo4j, the sre-agent, and the web console. The web console is available at http://localhost:3002. Full setup guide at /docs/quick-start. Q: What infrastructure does OpenSRE.in need? A: OpenSRE.in requires Docker and Docker Compose for local development. In production, it runs on Kubernetes via a Helm chart. Core dependencies are PostgreSQL (for config and investigation traces), Neo4j (for memory and the knowledge graph), and a LiteLLM instance (for LLM routing). A small setup runs comfortably on 4 vCPUs and 8GB RAM. Q: Does OpenSRE.in work with Kubernetes? A: Yes — Kubernetes investigation is a primary use case for OpenSRE.in. The k8s-debug skill checks pod health, restart counts, and OOMKilled events. The k8s-deployments skill monitors rollout status and replica counts. OpenSRE.in also maps your Kubernetes services in the knowledge graph for dependency tracking and blast radius analysis. Q: What LLM providers does OpenSRE.in support? A: OpenSRE.in supports any LLM provider via LiteLLM. Out of the box, it's configured for OpenRouter, which gives access to Claude (Anthropic), GPT-4 (OpenAI), Llama 3 (Meta), and hundreds of other models. You can switch to direct Anthropic or OpenAI APIs, or run a local model via Ollama — just update `litellm_config.yaml`. Q: Can I run OpenSRE.in without cloud dependencies? A: Yes. OpenSRE.in can run fully air-gapped with local LLMs (via Ollama + LiteLLM), local PostgreSQL, and local Neo4j. All services are containerized. The only external dependencies are your existing monitoring tools (Prometheus, Grafana, etc.) — which you're already running. ### General Q: Is OpenSRE.in truly open source? A: Yes. OpenSRE.in is released under the Apache 2.0 license, one of the most permissive open-source licenses. You can use it for commercial purposes, modify it, and distribute it. The full source code is on GitHub at https://github.com/swapnildahiphale/OpenSRE. Q: What license does OpenSRE.in use? A: OpenSRE.in uses the Apache License 2.0. This is a permissive open-source license that allows you to use, modify, and distribute the software for any purpose, including commercial use, without restriction. You can self-host it in your production environment with no licensing fees. Q: How can I contribute to OpenSRE.in? A: Contributions are welcome on GitHub at https://github.com/swapnildahiphale/OpenSRE. You can contribute new investigation skills, improve existing integrations, fix bugs, improve documentation, or share feedback via GitHub Issues. The project welcomes skill contributions especially — if you've integrated OpenSRE.in with a tool we don't support yet, a pull request is the best way to contribute. --- ## Glossary **AI SRE**: An AI SRE (AI Site Reliability Engineer) is an autonomous software agent that performs incident investigation and response tasks that would otherwise require a human SRE. It gathers context from monitoring tools, reasons about root causes, and produces structured incident reports. In OpenSRE: OpenSRE.in is an open-source AI SRE platform. Its agents investigate production incidents using 50+ investigation skills across Kubernetes, Prometheus, Grafana, Datadog, and other tools. **Alert Fatigue**: Alert fatigue is the desensitization of on-call engineers to alerts due to high volume, frequent false positives, or low-signal notifications. It leads to missed critical alerts, slow response times, and burnout. In OpenSRE: OpenSRE.in addresses alert fatigue by automatically triaging and investigating alerts, reducing the cognitive load on on-call engineers and ensuring every alert gets proper investigation. **Blast Radius Analysis**: Blast radius analysis is the process of determining which services, systems, or users are affected by a failure or change. In microservices architectures, a single service failure can cascade to many dependent services. In OpenSRE: OpenSRE.in performs blast radius analysis using its Neo4j knowledge graph. When a service fails, it traverses the dependency graph to identify all affected downstream services, proactively checking their health during investigation. **Memory**: OpenSRE.in's memory stores specific past investigations — what happened, when, and in what context — so the agent can learn from real incidents instead of starting from scratch. In OpenSRE: Each conversation can be summarized as a Neo4j :Episode node and recalled on demand via the memory-search skill once the agent has concrete symptoms — not pre-loaded on every alert. **Incident Investigation**: Incident investigation is the process of determining the root cause, scope, and timeline of a production incident. It involves gathering evidence from monitoring tools, forming hypotheses, testing them, and documenting findings. In OpenSRE: In OpenSRE.in, incident investigation is the primary function. AI agents conduct the full investigation cycle autonomously — from initial context gathering through root cause identification to report generation. **Investigation Skills**: In the context of AI SRE agents, investigation skills are modular capabilities that allow an agent to query specific tools or data sources. Each skill encapsulates the tools and context needed to investigate one domain. In OpenSRE: OpenSRE.in has 50+ built-in investigation skills covering Kubernetes, Prometheus, Grafana, Datadog, Elastic, Splunk, Jaeger, Sentry, and more. Skills are loaded on-demand during investigations. **Knowledge Graph**: A knowledge graph is a database that stores entities (nodes) and their relationships (edges) in graph form. In infrastructure contexts, it typically represents services, their dependencies, ownership, and infrastructure components. In OpenSRE: OpenSRE.in maintains a Neo4j-powered knowledge graph of your service topology. It enables blast radius analysis, dependency traversal, and ownership lookup during incident investigation. **Claude Agent SDK**: The Claude Agent SDK is Anthropic's toolkit for building agentic applications: a single session runtime where tools and skills are loaded on demand, with optional subagents for parallel specialist work. In OpenSRE: The OpenSRE.in sre-agent runs on the Claude Agent SDK. There is no fixed pipeline of nodes — the SDK session is the runtime, with investigation skills and subagents invoked as the root investigator decides. **MTTR (Mean Time to Resolution)**: Mean Time to Resolution (MTTR) is the average time from when an incident is detected to when it is fully resolved. It is a key metric for measuring incident response effectiveness and SRE team performance. In OpenSRE: By automating the investigation phase, OpenSRE.in aims to cut time to root cause. It is already in use at organizations, and early users report faster resolution; those results are still being validated. **Observability**: Observability is the ability to understand the internal state of a system from its external outputs. In software engineering, observability is typically achieved through three pillars: logs, metrics, and traces. In OpenSRE: OpenSRE.in integrates with your entire observability stack — Prometheus for metrics, Elastic/Splunk for logs, Jaeger/Datadog for traces — querying all three pillars during incident investigation. **On-Call Automation**: On-call automation refers to software systems that automatically handle incident response tasks that would otherwise require a human engineer to be paged and manually intervene. It ranges from simple runbook execution to full AI-powered investigation. In OpenSRE: OpenSRE.in automates the investigation phase of on-call response. When an alert fires, OpenSRE.in investigates immediately without requiring an engineer to start the process, reducing time-to-investigation from minutes to seconds. **Root Cause Analysis**: Root cause analysis (RCA) is the process of identifying the fundamental reason a problem occurred, rather than just treating its symptoms. In incident management, RCA aims to understand why an incident happened to prevent recurrence. In OpenSRE: OpenSRE.in performs automated root cause analysis as part of every investigation, synthesizing evidence from multiple data sources to identify the most probable root cause and supporting evidence. **Runbook Automation**: Runbook automation is the process of codifying and automatically executing operational procedures (runbooks) in response to specific events or conditions. It transforms manual, step-by-step procedures into automated workflows. In OpenSRE: OpenSRE.in complements runbook automation. While runbook automation handles known, well-defined scenarios, AI agents in OpenSRE.in handle novel incidents that don't match existing runbooks. **Service Topology**: Service topology describes the structure and relationships of services in a distributed system — which services communicate with which, what dependencies exist, and how they're organized. Understanding topology is critical for blast radius analysis and root cause investigation. In OpenSRE: OpenSRE.in maps your service topology in a Neo4j knowledge graph, updated continuously with new deployments and dependency changes. This topology context is automatically provided to investigation agents. **SRE Agent**: An SRE agent is an autonomous AI system that performs site reliability engineering tasks — monitoring infrastructure health, investigating incidents, executing operational procedures, and maintaining system reliability — with minimal human intervention. In OpenSRE: In OpenSRE.in, the sre-agent is the core component: an AI agent built on the Claude Agent SDK that receives alerts, coordinates investigation subagents, and produces incident reports. It is the brain of the platform. --- ## OpenSRE.in vs Tracer OpenSRE (opensre.com) Footnoted page: https://opensre.in/compare/opensre-vs-tracer (sources: https://opensre.in/compare/opensre-vs-tracer#sources). Facts accessed 21 Oct 2026. OpenSRE.in: built for production incident investigation by on-call teams; shared team-scoped memory; built-in service graph for blast radius (maintained by hand); Slack and Microsoft Teams; Microsoft Entra SSO; fully self-hosted Apache-2.0; free, no paid plan; 51 skills across observability, cloud, CI/CD and incident tools. Tracer's OpenSRE (Public Alpha): CI/CD reliability and incident investigation; per-user local memory files plus org knowledge from integrations; no dedicated topology model documented; Slack and other chat apps (Microsoft Teams not in docs); SSO not documented publicly; Apache-2.0; prices not public; 60+ integrations. Who fits: OpenSRE.in — teams investigating production incidents who want shared memory and a service graph, fully self-hosted with no paid plan. Tracer's OpenSRE — teams focused on CI/CD reliability, with incident investigation in Public Alpha. Sources (accessed 21 Oct 2026): https://opensre.com , https://github.com/Tracer-Cloud/opensre , https://opensre.com/docs/platform/memory.md , https://opensre.com/docs/install/install-enterprise.md , https://opensre.com/docs/integrations/index.md , https://opensre.com/docs/integrations/messaging/index.md , https://opensre.com/docs/llms.txt , https://github.com/swapnildahiphale/OpenSRE , https://opensre.in/docs/sso , https://opensre.in/docs/integrations , https://opensre.com/docs/install/index.md , https://opensre.com/docs/guides/deployment.md , https://opensre.com/pricing , https://opensre.in/docs/introduction , https://opensre.in/docs/knowledge-graph , https://opensre.in/docs/episodic-memory --- ## Comparison: OpenSRE vs Commercial Tools How OpenSRE compares to PagerDuty AI and Rootly AI. | Capability | OpenSRE | PagerDuty AI | Rootly AI | |-----------|---------|-------------|----------| | Open Source | Apache 2.0 | See vendor docs | See vendor docs | | Self-Hosted | Yes | See vendor docs | See vendor docs | | Memory | Yes | See vendor docs | See vendor docs | | Knowledge Graph | Yes | See vendor docs | See vendor docs | | Investigation Skills | 50+ built-in + custom | See vendor docs | See vendor docs | | LLM Provider Choice | Anthropic by default; others via optional LiteLLM proxy | See vendor docs | See vendor docs | | Slack Integration | Yes | See vendor docs | See vendor docs | | Web Console | Yes | See vendor docs | See vendor docs | | Custom Skills | Yes | See vendor docs | See vendor docs | | Price | Free (Apache 2.0) | Commercial | Commercial |