TokenPolice
Docs
Integrations

OpenAI Agents SDK

The OpenAI Agents SDK is metered automatically — a Python extra, or the base install in Node.

The OpenAI Agents SDK runs on the OpenAI Responses API, which TokenPolice taps directly. Agent runs — and their tool calls — are metered with no agent-specific code. Init as usual; see init parameters.

Python

pip install "token-police[openai-agents]"

Node

@openai/agents is metered on the base install — no extra, no wiring. Tool spans are captured automatically.

Next

On this page