Skip to content

Quick Start

Install and run Ketos Agent in 3 minutes to generate your first AI-native full-context incident pack and test lossless configuration hot reload.


Ketos Agent ships as a single static binary with zero runtime dependencies for Linux (amd64/arm64), macOS, and Windows.

Terminal window
# Download the static binary for your platform from GitHub Releases:
# https://github.com/ketoslab/ketos/releases
chmod +x ketos-agent
./ketos-agent --version

[!TIP] For production daemon deployment (systemd, Docker, or Kubernetes host monitoring), see Production Deployment.


Create config.yml. The example below enables host metrics and an HTTP probe, plus a demo rule (mem.usage_pct > 1) so you can observe a capture within seconds:

global:
interval: 2s
eval_interval: 1s
before: 10s
after: 3s
inputs:
host:
- id: default
http_probe:
- id: api_health
url: https://api.example.com/health
interval: 5s
alerts:
# Demo rule: fires within seconds to verify full-context capture
- id: demo_mem_active
severity: info
for: 2s
expr: 'last("mem.usage_pct") > 1'
# Endpoint availability alert with host forensics attached
- id: api_health_failed
severity: critical
for: 10s
expr: 'last("http_probe.api_health.up") == 0'
attach: ["host/default"]

By default, Ketos Agent starts in standalone local mode (--local-only) and transmits nothing externally:

Terminal window
./bin/ketos-agent --config config.yml

Within a few seconds, you will see logs like:

level=INFO msg="ketos-agent started" local_only=true collectors="[host http_probe:api_health]" rules=2
level=WARN msg="alert transition" incident_id=inc-demo_mem_active-... rule=demo_mem_active state=firing
level=INFO msg="blackbox snapshot captured" snap_id=snap-... status=complete source=alert:demo_mem_active

4. Inspect Your Full-Context Incident Pack

Section titled “4. Inspect Your Full-Context Incident Pack”

Snapshots are organized by rule under data/snapshots/<alert_id>/:

Terminal window
ls -la data/snapshots/demo_mem_active/
cat data/snapshots/demo_mem_active/host_default_*_firing.md

Inside, you will find a compact, self-contained Markdown file:

  • YAML Frontmatter: Incident ID, completion status (partial / complete), trigger rule, and section index.
  • ## Metrics: host/default: Full-precision pre/post CSV metrics scoped strictly to the relevant instance.
  • ## Forensic: host/top_processes: Live T0 Top processes ranked by the triggering resource dimension.

[!TIP] Try AI triage right away: Drop this .md file into Claude Code, Cursor, or any LLM and ask for root-cause analysis—no stitching together screenshots or terminal dumps.


While the collector is running, edit config.yml to change mem.usage_pct > 1 to mem.usage_pct > 100 and save:

  1. The collector detects the change and logs msg="config hot-reloaded" without restarting or clearing memory buffers.
  2. After resolve_for (default 15s), it transitions to state=resolved and writes a closing ..._resolved.md snapshot.