OpenAI's official agent SDK. Tight model integration; thin on enterprise governance. Prefactor wraps OpenAI Agents SDK agents to add the production controls they don't ship with.
*Source: OpenAI Agents SDK docs · GitHub*
What you get
- End-to-end tracing of every Agent, tool call, and LLM invocation
- Per-OpenAI Agents SDK-agent, per-user, per-tenant cost attribution
- Runtime policy enforcement — block, route, or approve tool calls
- Tamper-evident audit logs aligned to SOC 2, ISO 42001, and EU AI Act expectations
- Outcome evaluation with regression detection on every change
- Works with OpenAI Agents SDK in production today
Install and integrate
pip install prefactor-openai-agents
from openai_agents import Agent, run
from prefactor import Prefactor
pf = Prefactor(api_key="pf_live_...")
agent = pf.wrap(Agent(...), agent_id="customer-support-v1")
result = await run(agent, input="...")
Common problems Prefactor solves for OpenAI Agents SDK teams
1. Built-in tracing is OpenAI-platform-bound and developer-focused
2. No native cross-vendor model support in traces
3. Policy enforcement (approval flows, spend caps) is bring-your-own
4. Audit logging requires custom export
5. Evals run separately from production telemetry
Supported capabilities
| Capability | Status |
|---|---|
| [Observability](/integrations/openai-agents-sdk/observability) | Supported |
| [Monitoring](/integrations/openai-agents-sdk/monitoring) | Supported |
| [Cost Tracking](/integrations/openai-agents-sdk/cost-tracking) | Supported |
| [Policy Enforcement](/integrations/openai-agents-sdk/policy-enforcement) | Supported |
| [Audit Logging](/integrations/openai-agents-sdk/audit-logging) | Supported |
| [Evaluation](/integrations/openai-agents-sdk/evaluation) | Supported |
| [Guardrails](/integrations/openai-agents-sdk/guardrails) | Supported |
| [Security](/integrations/openai-agents-sdk/security) | Supported |
| [Governance](/integrations/openai-agents-sdk/governance) | Supported |
| [Compliance](/integrations/openai-agents-sdk/compliance) | Supported |
FAQ
Does Prefactor route my OpenAI Agents SDK traffic through a proxy? No. Prefactor instruments via SDK. Your LLM calls go directly to your model provider. We never sit in the request path.
Will Prefactor add latency to my OpenAI Agents SDK agent? The SDK adds ~2-5ms per traced span. Telemetry ships asynchronously in batches. No synchronous network call to Prefactor in your hot path unless you opt into blocking policy enforcement.
Can I use Prefactor alongside other tools (Langfuse, LangSmith, etc.)? Yes. They solve different problems and don't conflict. Many teams use Prefactor as the governance layer and keep dev-time tracing tools for prompt iteration.
Is Prefactor self-hostable? Yes, on Business and Enterprise plans. Data plane and control plane can both run in your VPC.
How do I add Prefactor to an existing production OpenAI Agents SDK app? The wrap pattern is non-invasive. One line changed. Existing tests, chains, and tools work unchanged.
Related
Start free
[Get started free →] [Book a demo →]