# Wraith — integration quickstart

## 1. Embed the tracker
<script src="https://wraith-daemon-production.up.railway.app/wraith.js"
        data-wraith-site="yoursite"></script>

The tracker streams 200 ms kinematic buckets (pointer velocity,
acceleration, curvature, click dwell, key timing intervals — no PII,
no key values) every 3 s.

## 2. Read the verdict
window.Wraith.onClassified(c => {
  // c.archetype: human | synthetic_browser | declared_api | uncertain
  // c.confidence, c.evidence, c.isAgent
})

## 3. Route agents (server side)
POST /api/v1/route  {site, path, user_agent, headers}
→ {classification, session_id, rule, action}
action.type: serve | redirect | webhook | none

## 4. Configure intent rules
Ordered rules per site, first match wins:
  {path_glob: "/docs*", applies_to: "agents", action: "aeo",
   source: {type: "url"|"inline"|"redirect", url, body, ttl_s}}
Dashboard: https://wraith-daemon.vercel.app
