Agents built with the OpenAI Agents SDK run tools, hand off between agents and call models in a loop. Agent Ping captures one record per run so you can see what each cost, whether it ran, and whether the output held up.
An OpenAI Agents SDK agent can hand off, retry and call a model several times in a single run. The provider console shows tokens by API key, not which agent or run spent them, and nothing tells you when a scheduled agent simply stopped firing.
Start a run, attach the Agent Ping hooks to your Runner, and hand the Agents SDK an instrumented OpenAI client. Model calls, tool calls and handoffs land on one run with cost, status and latency. In Python, agentping.instrument_openai_agents() does all of this in one line.
npm install @agentping/sdk @openai/agents openai
import { Agent, Runner, setDefaultOpenAIClient } from "@openai/agents";
import OpenAI from "openai";
import * as agentping from "@agentping/sdk";
agentping.init({ apiKey: process.env.AGENTPING_API_KEY });
const run = agentping.run("support-triage", { customerId: "acme-corp" });
// Model calls: give the Agents SDK an instrumented OpenAI client.
setDefaultOpenAIClient(agentping.instrumentOpenAI(new OpenAI(), { run }));
// Tool calls, handoffs and agent turns: attach the hooks to the runner.
const runner = new Runner();
new agentping.AgentPingHooks(run).attach(runner);
const result = await runner.run(triage, "My invoice is wrong");
await run.finish({ status: "success" });
Full setup, environment variables and options are in the OpenAI Agents SDK docs.
Send one run from OpenAI Agents SDK and see cost, status and latency. Then add an alert for cost spikes or missed runs.
Step-by-step guide: monitor OpenAI Agents SDK agents → Spend, cost attribution → Pulse, live monitoring → Verify, quality scoring →