Getting StartedQuick Start (5 min)

Quick Start

Get your first agent monitored in under 5 minutes.

1

Get your API key

Go to Dashboard → API Keys, click "Generate New Key", and copy it.

Use different keys for development and production.
2

Install the SDK

Choose your language and install the package. See the code panel →

3

Initialize the client

Create an instance with your API key. Enable debug in development.

4

Send your first event

Your event appears in Dashboard → Events instantly. Rules evaluate automatically on every event received.

5

Create your first rule

Go to Dashboard → Rules, click "New Rule", choose a template or build from scratch:

IF ai_risk_score > 80 THEN create_incident(high) + notify

Done. Your agent is now governed. ✅

class=class="tk-str">"tk-cmt">// ⚡ The npm package (aigodfather) is coming soon.
class=class="tk-str">"tk-cmt">// For now, use the cURL / REST API below — or scroll down for full REST examples.

npm install aigodfather

import { AIGodfather } from class="tk-str">'aigodfather'

const ai = new AIGodfather({
  apiKey: process.env.AIGODFATHER_API_KEY,
  debug: process.env.NODE_ENV !== class="tk-str">'production'
})

class=class="tk-str">"tk-cmt">// Info — agent lifecycle
await ai.info(class="tk-str">'Agent started', { version: class="tk-str">'1.0.0' })

class=class="tk-str">"tk-cmt">// Warning — high resource usage
await ai.warning(class="tk-str">'High memory usage', { percent: 87 })

class=class="tk-str">"tk-cmt">// Error — failed action
await ai.error(class="tk-str">'Payment failed', {
  orderId: class="tk-str">'ord_123',
  amount: 4200,
  currency: class="tk-str">'EUR'
})

class=class="tk-str">"tk-cmt">// Action — rule engine evaluates
const result = await ai.action(class="tk-str">'payment', {
  resource: class="tk-str">'stripe',
  amount: 500,
  severity: class="tk-str">'high',
})

if (result.status === class="tk-str">'pending_approval') {
  const decision = await ai.waitForApproval(result.approvalId)
  console.log(decision.status)
}