Skip to main content
You use a specific framework — LangChain, OpenAI Agents, CrewAI — or connect to platforms like GitHub and PagerDuty. Apie provides thin wrappers that map framework events to Apie telemetry and guardrails. Pick your framework below. Every integration page shows TypeScript and Python examples with minimal and production metadata variants.

Decision matrix

Your runtimeIntegrationEffort
MCP host (Cursor, Claude Desktop)MCP proxyConfig only
LangChain / LangGraphLangChain~5 lines
OpenAI Agents SDKOpenAI Agents~5 lines
OpenAI / Anthropic tool callsLLM tool callsPer tool call
CrewAI / AutoGen / LlamaIndexCrewAI, AutoGen, LlamaIndexPer step
Vercel AI SDKVercel AIPer generation
GitHub, PagerDuty, Linear, etc.Platform connectorsPer action
Custom agentChoose how to instrumentVaries

Common pattern

All framework integrations follow the same pattern:
  1. Create an Apie client and call ready()
  2. Open a run with withRun / with_run
  3. Pass the Apie handler or hooks to your framework inside the run
  4. Framework events are tracked automatically
import apie from "./apie.config";
import { ApieCallbackHandler } from "@apie-sh/sdk/integrations";

await apie.ready();

const handler = new ApieCallbackHandler(apie, {
  defaultEnvironment: "production",
});

await apie.withRun({ inputSummary: "Process request" }, async () => {
  // Pass handler to your framework
  await agent.invoke(input, { callbacks: [handler] });
});

Import paths

import { ApieCallbackHandler, createApieRunHooks } from "@apie-sh/sdk/integrations";
// or from main package:
import { withOpenAIToolCall } from "@apie-sh/sdk";

Framework guides

LangChain / LangGraph

Callback handler and graph node wrappers.

OpenAI Agents

Run hooks for agent lifecycle.

LLM tool calls

OpenAI and Anthropic native tools.

CrewAI, AutoGen, LlamaIndex

Task and step wrappers.

Platform connectors

GitHub, PagerDuty, Linear, observability.

Vercel AI

Generation tracking.