Connect Your AgentOpenClaw

Monitoring OpenClaw with AIGodfather

Connect OpenClaw agents to AIGodfather for real-time security monitoring, threat detection, and governance — using native OpenClaw hooks.

OpenClaw is one of the most widely deployed AI agent frameworks, with 300,000+ installations. AIGodfather connects natively via OpenClaw's built-in hooks system — no code changes to your agents required.

Every message received, action executed, and error encountered by your OpenClaw agents flows into AIGodfather for real-time threat detection, risk scoring, and governance enforcement.

Why monitor OpenClaw agents?

OpenClaw agents operate autonomously — they send messages, call external APIs, access files, and execute code. Without monitoring:

  • You have no visibility into what actions your agents take
  • Prompt injection attacks go undetected
  • Runaway loops consume resources unchecked
  • You cannot prove compliance (EU AI Act, GDPR)

AIGodfather gives you a complete audit trail of every OpenClaw agent action, with automatic threat detection against the OWASP LLM Top 10.

Setup — 3 steps

1

Create an agent in AIGodfather

  1. Go to Dashboard → Agents
  2. Click New Agent
  3. Name it (e.g. "OpenClaw — My Bot")
  4. Copy the generated API key
2

Configure OpenClaw hooks

Create or edit ~/.openclaw/config/hooks.yml. See the code panel → for the full configuration.

3

Restart OpenClaw

Run openclaw restart or systemctl restart openclaw. Your agents are now monitored — go to Dashboard → Events to see live activity.

Recommended Rules

Create these rules in Dashboard → Rules to protect your OpenClaw agents:

Runaway loop detection

IF action = "llm.request" AND event_count_last_5min > 30 THEN pause_agent(60) + create_incident(critical) + notify

Failed action spike

IF action = "action.failed" AND event_count_last_5min > 10 THEN create_incident(high) + notify

High AI risk score

IF ai_risk_score > 80 AND action = "message.received" THEN block + create_incident(critical)

What gets monitored

OpenClaw EventAIGodfather Detection
message.receivedPrompt injection, jailbreak attempts
action.completedUnauthorized tool calls, data exfiltration
action.failedAnomaly detection, failure spikes
llm.requestToken usage, cost tracking, runaway loops
session.newBehavioral baseline per session

Troubleshooting

Events not appearing in dashboard?

  • Verify your API key is correct
  • Check that the agent is not paused in the dashboard
  • Confirm OpenClaw can reach www.aigodfather.ai from your network

Getting 401 errors?

The Authorization: Bearer header must match the key shown in Dashboard → Agents → [agent] → API Keys.

Getting 403 errors?

A rule is blocking the event. Check Dashboard → Rules.

Need help? Email hello@aigodfather.ai or open a support chat from the dashboard.

hooks:
  "tk-cmt"># Log every incoming message
  - event: "message.received"
    action: "http"
    url: "https:">//www.aigodfather.ai/api/v1/events"
    method: "POST"
    headers:
      Authorization: "Bearer YOUR_AIGODFATHER_API_KEY"
      Content-Type: "application/json"
    body:
      action: "message.received"
      actor: "openclaw-agent"
      severity: "low"
      resource: "{{message.from}}"
      message: "Incoming message"
      metadata:
        message_id: "{{message.id}}"
        channel: "{{message.channel}}"

  "tk-cmt"># Log every completed action
  - event: "action.completed"
    action: "http"
    url: "https:">//www.aigodfather.ai/api/v1/events"
    method: "POST"
    headers:
      Authorization: "Bearer YOUR_AIGODFATHER_API_KEY"
      Content-Type: "application/json"
    body:
      action: "{{action.type}}"
      actor: "openclaw-agent"
      severity: "medium"
      resource: "{{action.name}}"
      message: "Action completed"
      metadata:
        action_id: "{{action.id}}"
        duration_ms: "{{action.duration}}"

  "tk-cmt"># Log every failed action (high severity)
  - event: "action.failed"
    action: "http"
    url: "https:">//www.aigodfather.ai/api/v1/events"
    method: "POST"
    headers:
      Authorization: "Bearer YOUR_AIGODFATHER_API_KEY"
      Content-Type: "application/json"
    body:
      action: "action.failed"
      actor: "openclaw-agent"
      severity: "high"
      resource: "{{action.name}}"
      message: "Action failed"
      metadata:
        error: "{{error.message}}"
        action_id: "{{action.id}}"

  "tk-cmt"># Log LLM calls for AI risk scoring
  - event: "llm.request"
    action: "http"
    url: "https:">//www.aigodfather.ai/api/v1/events"
    method: "POST"
    headers:
      Authorization: "Bearer YOUR_AIGODFATHER_API_KEY"
      Content-Type: "application/json"
    body:
      action: "llm.request"
      actor: "openclaw-agent"
      severity: "low"
      message: "LLM call"
      metadata:
        model: "{{llm.model}}"
        tokens: "{{llm.tokens}}"
        cost_usd: "{{llm.cost}}"