---
title: Auto-instrumentation
description: Import the SDK, then init(). Nothing to name.
---

# Auto-instrumentation

You do not register instrumentors. Import the AI SDK, then `init()`. Agenko patches what is already loaded and hooks later imports.

## Python families

Detected from `sys.modules` aliases:

| Family | Trigger imports |
|---|---|
| OpenAI | `openai` |
| Anthropic | `anthropic` |
| LangChain / LangGraph | `langchain`, `langchain_core`, `langgraph`, … |
| Mistral | `mistralai` |
| Cohere | `cohere` |
| Bedrock | `boto3`, `botocore` |
| LiteLLM | `litellm` |
| LlamaIndex | `llama_index` |
| CrewAI | `crewai` |
| Google GenAI | `google`, `google_genai` |

With `AGENKO_DEBUG=1`, init prints `auto-instrumented: openai, langchain`.

## TypeScript families

`openai`, `@anthropic-ai/sdk`, LangChain — via Arize OpenInference instrumentors. Same OTEL spans, same receipt ingestion.

## Order

```python
import openai
import agenko

agenko.init()  # sees openai in sys.modules
```

```typescript
import OpenAI from "openai";
import agenko from "@agenko/sdk";

agenko.init();
```

Importing `agenko` first still works: the Python import hook patches frameworks loaded later (OpenAI is deferred on the hook on CPython 3.14).

## Manual spans

If your loop is custom, see [custom loops](/custom-loops). `@check` still wraps the action and records tool spans from the tracer.

## Agent instructions

This page: https://docs.agenko.app/integrations.md

Fetch `/llms.txt` for the full index. Search: `GET /api/search-docs?query=...`
