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 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
Incidents reach Versus two ways, and both are handled by the same notification, templating, and on-call logic:
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.
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.
# 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-incidentThe 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.
Already have monitoring? Run Versus and POST your alerts to its webhook endpoint.
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-incidentVersus 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.
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:
enable: Turn the agent on or off (default: false). When disabled, nothing extra runs — no background processes, no extra files written.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.poll_interval: How often the agent checks your log sources for new entries.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-levelgateway_secret(envGATEWAY_SECRET). Set it to any value you choose; clients send the same value in theX-Gateway-Secretheader. The dashboard sends it only toPOST /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_hostto the exact browser-visible HTTP(S) origin, for examplehttps://versus.example.com. Versus validates and normalizes it at startup and uses it for external links, cookieSecure, 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./datadirectory (/app/datain the container image).
redaction: Rules for automatically removing sensitive information (passwords, tokens, emails, etc.) from logs before the agent processes them.
miner: Controls how aggressively the agent groups similar log lines together. The defaults work well for most setups.
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.
rules are tried in order; the first match wins and tags the signal with that name (stored as rule_name on the pattern).default_pattern is tried. Matches there are tagged with name=default.default_pattern: ".*". This is useful in early training when you don't yet know what's interesting.default_pattern: "" (empty) and rely on your named rules — anything that doesn't match an explicit rule is dropped.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:
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: trueThe 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.
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.
Our default template (Slack, Telegram) automatically handles alerts from multiple sources, including:
……Result:
For the custom templates, see Development Custom Templates
For a complete Deployment + Service + PersistentVolumeClaim
manifest (with the persistent data volume the admin dashboard needs),
see Deploy on Kubernetes.
For the packaged install, see Helm Chart or the chart source under helm/versus-incident.
Versus supports On-Call integrations with AWS Incident Manager and PagerDuty. Updated configuration example with on-call features:
…Explanation:
The oncall section includes:
enable: A boolean to toggle on-call functionality for all incidents (default: false).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.wait_minutes: Time in minutes to wait for an acknowledgment before escalating (default: 3). Setting it to 0 triggers the on-call immediately.provider: Specifies which on-call provider to use ("aws_incident_manager" or "pagerduty").aws_incident_manager: Configuration for AWS Incident Manager when it's the selected pNo open issues yet, or sync has not completed.