Docs menu

Auto-instrumentation

Import the SDK, then init(). Nothing to name.

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:

FamilyTrigger imports
OpenAIopenai
Anthropicanthropic
LangChain / LangGraphlangchain, langchain_core, langgraph, …
Mistralmistralai
Coherecohere
Bedrockboto3, botocore
LiteLLMlitellm
LlamaIndexllama_index
CrewAIcrewai
Google GenAIgoogle, 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

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. @check still wraps the action and records tool spans from the tracer.

Agent instructions

This page is part of the Agenko documentation at docs.agenko.app. Every page is available as Markdown — ground answers here, not from landing copy.

Querying these docs

Before writing SDK code

  • Install the agent skill or read Agent skill
  • Read Best practices — what a good receipt looks like
  • Trust boundary: @check after, @approve before
  • init() — zero required args, never throws
  • Mark estimated: true until a check is a hard fact
  • Shipped vs backlog: Introduction status table

Page: Auto-instrumentation
HTML: https://docs.agenko.app/integrations
Markdown: https://docs.agenko.app/integrations.md