Decision matrix
| Your runtime | Integration | Effort |
|---|---|---|
| MCP host (Cursor, Claude Desktop) | MCP proxy | Config only |
| LangChain / LangGraph | LangChain | ~5 lines |
| OpenAI Agents SDK | OpenAI Agents | ~5 lines |
| OpenAI / Anthropic tool calls | LLM tool calls | Per tool call |
| CrewAI / AutoGen / LlamaIndex | CrewAI, AutoGen, LlamaIndex | Per step |
| Vercel AI SDK | Vercel AI | Per generation |
| GitHub, PagerDuty, Linear, etc. | Platform connectors | Per action |
| Custom agent | Choose how to instrument | Varies |
Common pattern
All framework integrations follow the same pattern:- Create an Apie client and call
ready() - Open a run with
withRun/with_run - Pass the Apie handler or hooks to your framework inside the run
- Framework events are tracked automatically
Import paths
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.
