Skip to content

Guide · Agent skill

How to use the Olakai Monitoring Integration agent skill

Updated · written with AI from the project's own documentation and checked against our catalogue data

The Olakai Monitoring Integration skill (skill name: integrate) is a step-by-step guide that an AI coding agent follows to add Olakai monitoring to code that already calls an LLM such as OpenAI or Anthropic. It wraps or follows each model call with a tracking event, sets up configuration and API keys, and helps you define custom KPIs. This guide shows you how to install the skill, ask for the integration in plain language, and check what the agent changes before you rely on it.

Olakai Monitoring Integrationandrewyng/context-hub · MIT

Quick start

  1. 1Check prerequisites. Confirm you have a working LLM app, Node.js or Python at the minimum version listed, and an Olakai account.
  2. 2Install the Olakai CLI and log in. Run the install command for the CLI, then authenticate with olakai login.
  3. 3Install the skill. Unzip the skill into ~/.claude/skills/ or a project's .claude/skills/ folder, or upload it under Settings, Capabilities, Skills in the Claude apps.
  4. 4Ask for the integration. Describe the LLM call you want tracked and which provider it uses, then let the agent follow the skill in your codebase.
  5. 5Review the tracking calls. Check which prompts, responses, user emails and customData fields are sent to Olakai and remove anything you should not share.
  6. 6Define KPIs and validate. Register the customData fields, configure at least two to four KPIs for the agent, and confirm a test event appears in Olakai.

What the skill makes the agent do

An agent skill is a folder of instructions that your AI agent reads when a task matches it. This one is written as an integration checklist. The agent works through it inside your codebase, so it edits your existing code rather than running as a separate tool.

The skill covers three jobs: adding a tracking event after each model call, configuring the SDK with your Olakai API key, and defining custom KPIs (business metrics such as items processed or success rates) so you can see how the AI performs over time.

What you need before installing

The skill only makes sense if you already have a working LLM application and an Olakai account. Check these requirements first.

The skill's SKILL.md lists the following requirements. Node.js and Python have minimum versions, which are listed in the source requirements.

  • An existing, working AI agent or application that uses OpenAI, Anthropic or another LLM
  • Node.js (for TypeScript) or Python (for Python), at the minimum versions listed in the requirements
  • The Olakai CLI, installed and authenticated
  • An Olakai API key for each agent
  • The @olakai/sdk package (npm) or olakai-sdk package (pip)
  • An existing LLM provider SDK and API key, such as OpenAI
npm install -g olakai-cli && olakai login

How to install the skill

Option 1: download the skill ZIP from the skill's page in this directory and unzip it into your user skills folder, ~/.claude/skills/, so it is available across projects.

Option 2: unzip it into a single project's .claude/skills/ folder so it is available only in that project.

Option 3: in the Claude apps, open Settings, go to Capabilities, and upload the skill under Skills.

How to trigger the skill with a natural request

Once installed, describe the task in plain language. Name the thing you want, for example adding Olakai monitoring to an existing OpenAI call, and point the agent at the code that makes the LLM call. The agent should then follow the skill's steps in your project.

Be specific about your situation. Say which LLM provider you use, whether the code is a single call or a multi-step agent, and which business outcomes you care about. That information shapes the tracking events and KPIs the agent proposes.

  • Add Olakai monitoring to the OpenAI call in src/support/reply.ts
  • Wrap our Anthropic client with Olakai tracking and define KPIs for ticket resolution
  • Help me validate the Olakai integration end-to-end for this agent

What the integration looks like in code

The core change is small. You initialise the Olakai config once at startup, keep your existing LLM call, and add a tracking call after it. The source's TypeScript example adds the SDK, reads the Olakai key from an environment variable, and sends the prompt, response, token count, user email and a task label.

The skill notes that tracking is fire-and-forget for the basic pattern. For multi-call tasks it recommends aggregating calls into a single event, and for streamed responses it recommends tracking after the stream completes.

  • Pattern A: one LLM client used throughout the app, one tracking call after each completion
  • Pattern B: several LLM calls per request, aggregated into one event
  • Pattern C: streaming responses, tracked after the full response is assembled
  • Pattern D: a third-party or local model, tracked with manual event calls
olakai("event", "ai_activity", { prompt: userMessage, response: aiResponse, userEmail: user.email, task: "Customer Experience" });

How custom KPIs and customData work

Custom KPIs are where most of the value is, according to the skill. Plan to configure at least two to four KPIs that answer the question of how you know the agent is performing well. KPIs are unique per agent, so a new agent needs its own KPI definitions even if another agent already has similar ones.

Only fields registered as CustomDataConfigs are processed. Unregistered customData fields are stored but cannot be used in KPIs. Numeric configs need numbers, not strings. Formula names are case-insensitive. Do not send fields Olakai already tracks automatically, such as timestamps, token counts, model and provider.

  • Register each customData field as a CustomDataConfig before using it in a KPI
  • Send numbers as numbers for NUMBER configs
  • Send data you will use for KPIs or filtering only

Safety notes before you accept changes

The skill runs scripts and uses the network. The example tracking calls send prompts, responses and user emails to a third-party service, Olakai. Review every tracking call before accepting it, and make sure the data you send is allowed under your privacy and data policies.

Do not let the agent paste real API keys into code. Read keys from environment variables, as the examples do, and keep them out of version control. Remove any customData fields that contain personal data you do not need.

  • Review each tracking call and the fields it sends
  • Use environment variables for OLAKAI_API_KEY and provider keys
  • Create a separate API key per agent with olakai agents create
olakai agents create --name "Name" --with-api-key

Validate the integration and tips

The skill includes validation as part of the work, so ask the agent to confirm the integration end-to-end. Run your app with a test request and check that the event appears in Olakai before you rely on any KPI.

Keep a short list of the KPIs you planned and confirm each one has a registered field behind it. For a team, agree on the chatId and taskExecutionId conventions early so events from related calls group correctly.

  • Start with a non-production agent and a test API key
  • Use debug mode in development to see what the SDK is doing
  • Pass a consistent chatId for multi-turn chat so conversation-level KPIs work

What people use it for

  • Adding usage and performance tracking to an existing customer support chatbot built on OpenAI
  • Tracking items processed and success rates for a multi-step agent that makes several LLM calls per task
  • Grouping multi-turn conversations with a chatId so conversation-level KPIs such as satisfaction can be evaluated
  • Connecting an existing agent to Olakai and creating a separate API key for it

Frequently asked questions

Is the Olakai Monitoring Integration skill free?

The source material for this skill does not state pricing or licence terms beyond the MIT licence shown for the repository. Olakai itself requires an account and an API key, so check Olakai's own terms for any costs.

What do I need before installing this agent skill?

You need an existing working LLM application, Olakai CLI installed and authenticated, an Olakai API key for each agent, Node.js or Python at the minimum versions listed, and the matching Olakai SDK. The skill is not useful without an Olakai account.

Where do I put the skill so my agent can use it?

Unzip it into ~/.claude/skills/ to make it available across projects, or into a project's .claude/skills/ folder to limit it to that project. In the Claude apps you can instead upload it under Settings, Capabilities, Skills.

Does this skill work with OpenAI and Anthropic?

Yes, the skill is written for code that calls OpenAI, Anthropic or other LLMs. The examples use OpenAI, and the skill's patterns cover single clients, multi-call agents, streaming, and third-party models that you track with manual event calls.

Will the skill send my users' data to a third party?

Yes, the example tracking calls send prompts, responses and user emails to Olakai, which is a third-party service. Review each tracking call and remove any fields you should not send before you run the code.

Can I use the same KPIs for several agents?

No. The skill states that KPIs are unique per agent and cannot be shared or reused across agents, so each agent needs its own KPI definitions even if they look similar.

New agent skills, repos and AI tools — every week

The best new skills and open-source projects, the fastest-growing repos, and one free prompt. Five minutes to read. Unsubscribe anytime.

Our verdict

This skill suits developers and teams who already run an OpenAI, Anthropic or other LLM application and use Olakai for monitoring and KPIs. It is not useful if you do not have an Olakai account, and you should not use it to send sensitive customer data without reviewing each tracking call. If you want a general monitoring tool unrelated to Olakai, choose something else.

Download the skill