Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
V

versus-incident

> DevOps
Open source

Versus Incident is the self-hosted AI SRE agent. It learns what your system normally look like and escalates only what is new or unexpected issues — routing to

707 stars0 likes2 views
WebsiteGitHub

About

Versus Incident is the self-hosted AI SRE agent. It learns what your system normally look like and escalates only what is new or unexpected issues — routing to

Versus Incident is the self-hosted AI SRE agent. It learns what your systems normally look like and escalates only what is new or unexpected issues — routing to your chat channels and on-call platform.

Free with MIT license · Enterprise Pricing

How Versus Creates Incidents

Incidents reach Versus two ways, and both are handled by the same notification, templating, and on-call logic:

  • AI SRE Agent (auto-detect) — point the agent at your logs and it learns your normal patterns, then automatically raises an incident when a brand-new error or anomaly appears. No alert rules to maintain.
  • Webhook alerts (you define) — any tool that can POST a webhook (Alertmanager, Grafana, Sentry, CloudWatch SNS, FluentBit, or your own scripts) sends incidents straight to Versus, formatted with your own templates.

Whichever source raises it, an incident is templated, fanned out to every channel you enable, and escalated to on-call if it isn't acknowledged in time.

Features

  • AI SRE Agent: An AI agent that reads your logs, learns what normal looks like, and automatically opens an incident only when something new and unexpected appears.
  • Webhook Alerts: Receive incidents from any tool that can POST a webhook — Alertmanager, Grafana, Sentry, CloudWatch SNS, FluentBit, and more.
  • Multi-channel Notifications: Fan out every incident to Slack, Microsoft Teams, Telegram, Viber, Email, and Lark (more channels coming!)
  • Custom Templates: Define your own alert messages using Go templates
  • Easy Configuration: YAML-based configuration with environment variables support
  • REST API: Simple HTTP interface to receive alerts
  • On-Call: On-Call integrations (PagerDuty, Opsgenie, incident.io, ServiceNow)

Table of Contents

  • Getting Started
  • AI Agent
  • Webhook Alerts
  • Admin Dashboard
  • Development Custom Templates
  • On-Call
  • Configuration
  • Roadmap
  • Contributing
  • License

Get Started

Auto-detect incidents with the AI SRE Agent

Let the agent learn your logs and surface what's new. The AI SRE Agent has three modes:

  • training — just watch and learn. No alerts.
  • shadow — watch and learn, plus write a "would have alerted" log entry every time a line would have triggered an alert. Still no real alerts. Good for checking the agent's judgement before going live.
  • detect — actually create incidents for lines the agent has never seen before. An AI SRE triages each one and writes the summary, severity, and suggested next steps before the incident is sent through every configured channel.

Start it in training mode — it only watches and learns, and never sends an alert until you're ready.

bash
# Redis is used to remember where the agent left off in each log source.
docker run -d --name versus-redis -p 6379:6379 redis:7

docker run -p 3000:3000 \
  -e GATEWAY_SECRET=change-me \
  -e AGENT_ENABLE=true \
  -e AGENT_MODE=training \
  -e REDIS_HOST=host.docker.internal \
  -e REDIS_PORT=6379 \
  -v $(pwd)/config:/app/config \
  -v $(pwd)/data:/app/data \
  ghcr.io/versuscontrol/versus-incident

The agent needs a config.yaml and an agent_sources.yaml that point it at your logs. Once it's running, review the patterns it learns on the admin dashboard at , then switch AGENT_MODE from training → shadow → detect when you trust it.

Full walkthrough (with ready-to-copy config and a sample log generator): AI Agent — Getting Started.

Forward alerts from your existing tools

Already have monitoring? Run Versus and POST your alerts to its webhook endpoint.

bash
docker run -p 3000:3000 \
  -e GATEWAY_SECRET=change-me \
  -e SLACK_ENABLE=true \
  -e SLACK_TOKEN=your_token \
  -e SLACK_CHANNEL_ID=your_channel \
  ghcr.io/versuscontrol/versus-incident

Versus listens on port 3000 by default and exposes:

  • POST /api/incidents — webhook endpoint for monitoring tools.
  • GET / — the embedded admin dashboard, open in your browser. For the full UI walkthrough and the build/watch scripts, see Admin Dashboard.

You can use both. The AI agent and webhook alerts are not mutually exclusive — run them together and every incident, whether auto-detected or forwarded from your tools, flows through the same channels, templates, and on-call logic.

AI Agent

The AI SRE agent is what makes Versus different: point it at your logs and it learns what normal looks like, then automatically opens an incident the moment a brand-new error or anomaly appears — no alert rules to maintain.

Configuration example with agent features:

…

Explanation:

The agent section includes:

  1. enable: Turn the agent on or off (default: false). When disabled, nothing extra runs — no background processes, no extra files written.
  2. mode: How the agent behaves after it has learned your log patterns:
    • training: observation only — the agent learns patterns and saves them, but sends no alerts.
    • shadow: same as training, but also logs a note every time it would have sent an alert. Good for reviewing before going live.
    • detect: the agent actively sends alerts for any pattern it has never seen before.
  3. poll_interval: How often the agent checks your log sources for new entries.
  4. catalog: Where the agent stores the list of known patterns and how often to write updates. mode selects the storage backend — only file is supported today, which writes to data/patterns.json (the filename and directory are fixed).

Admin secret. All admin endpoints (/api/admin/* and /api/agent/*) are protected by the root-level gateway_secret (env GATEWAY_SECRET). Set it to any value you choose; clients send the same value in the X-Gateway-Secret header. The dashboard sends it only to POST /api/auth/gateway-session, then uses an HttpOnly, SameSite=Strict cookie with an eight-hour absolute lifetime. Reloads reuse the cookie; sign-out, expiry, cookie clearing, or secret rotation requires signing in again. When no secret is configured the admin endpoints are not registered and the agent refuses to start.

Set the root-level public_host to the exact browser-visible HTTP(S) origin, for example https://versus.example.com. Versus validates and normalizes it at startup and uses it for external links, cookie Secure, and exact-origin checks behind TLS-terminating or Host-rewriting proxies. Forwarded protocol/host headers are not trusted implicitly. Leave it empty for a direct deployment, where the request's actual protocol and Host are used for browser security checks.

Storage. The agent's catalog and the incident history shown in the UI are persisted via the root-level storage: block (default: type: file). The file backend writes to the fixed ./data directory (/app/data in the container image).

  1. redaction: Rules for automatically removing sensitive information (passwords, tokens, emails, etc.) from logs before the agent processes them.

  2. miner: Controls how aggressively the agent groups similar log lines together. The defaults work well for most setups.

  3. regex: Acts as a pre-filter for the agent. Only signals whose message matches at least one rule (a named entry under rules or default_pattern) are forwarded to the pattern miner and stored in the catalog. Anything that doesn't match is dropped before clustering, so boring noise (200-OK requests, debug lines, etc.) never bloats patterns.json.

    • Named rules are tried in order; the first match wins and tags the signal with that name (stored as rule_name on the pattern).
    • If no named rule hits, default_pattern is tried. Matches there are tagged with name=default.
    • To learn from every line, set default_pattern: ".*". This is useful in early training when you don't yet know what's interesting.
    • To filter aggressively, set default_pattern: "" (empty) and rely on your named rules — anything that doesn't match an explicit rule is dropped.
  4. sources_path: Path to a separate YAML file that lists the log sources the agent should read from. Keeping sources in their own file makes it easier to manage per-environment source lists or swap fixtures without touching the rest of the config. The path is resolved relative to the main config file. Override via the AGENT_SOURCES_PATH env var.

The sources file (default ./agent_sources.yaml) has a single top-level sources: list. Each entry needs name, type (file or elasticsearch), enable, plus a matching file: or elasticsearch: block. Example:

yaml
sources:
  - name: prod-app
    type: elasticsearch
    enable: true
    elasticsearch:
      addresses:
        - https://es.example.internal:9200
      username: ${ES_USERNAME}
      password: ${ES_PASSWORD}
      index: "logs-app-*"
      time_field: "@timestamp"
      query: 'log.level:(error OR warn)'
      message_field: message
      page_size: 500

  - name: sample-app
    type: file
    enable: true
    file:
      path: ./local/resource/sample-app.log
      format: text
      from_beginning: true

The redis section is required when agent.enable is true. Redis is used to remember where the agent left off in each log source, so it picks up from the right place after a restart.

For detailed information on integration, please refer to the document here: Enable AI Agent.

Webhook Alerts

Already using other monitoring tools? Versus also accepts incidents from anything that can POST JSON to /api/incidents, so you can route existing alerts through the same channels, templates, and on-call.

Universal Alert Template Support

Our default template (Slack, Telegram) automatically handles alerts from multiple sources, including:

  • Alertmanager (Prometheus)
  • Grafana Alerts
  • Sentry
  • CloudWatch SNS
  • FluentBit

Example JSON Payload Sent by Alertmanager

…

Example JSON Payload Sent by Sentry

…

Result:

Development Custom Templates

For the custom templates, see Development Custom Templates

Kubernetes

For a complete Deployment + Service + PersistentVolumeClaim manifest (with the persistent data volume the admin dashboard needs), see Deploy on Kubernetes.

Helm Chart

For the packaged install, see Helm Chart or the chart source under helm/versus-incident.

On-Call

Versus supports On-Call integrations with AWS Incident Manager and PagerDuty. Updated configuration example with on-call features:

…

Explanation:

The oncall section includes:

  1. enable: A boolean to toggle on-call functionality for all incidents (default: false).
  2. initialized_only: Initialize on-call feature but keep it disabled by default. When set to true, on-call is triggered only for requests that explicitly include ?oncall_enable=true in the URL. This is useful for having on-call ready but not enabled for all alerts.
  3. wait_minutes: Time in minutes to wait for an acknowledgment before escalating (default: 3). Setting it to 0 triggers the on-call immediately.
  4. provider: Specifies which on-call provider to use ("aws_incident_manager" or "pagerduty").
  5. aws_incident_manager: Configuration for AWS Incident Manager when it's the selected p

Issues· 0 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Goaiai-agentai-toolsalert

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
CategoryDevOps
PricingOpen source

> Related tools

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