Use Obiguard with OpenAI Agents SDK to take your AI Agents to production
Install the required packages
Generate API Key
Connect to OpenAI Agents
Configure Obiguard Client
Strategy | Code Touchpoints | Best For |
---|---|---|
Global Client via set_default_openai_client | One-time setup; agents need only model names | Whole app uses Obiguard; simplest migration |
ModelProvider in RunConfig | Add a provider + pass run_config | Toggle Obiguard per run; A/B tests, staged rollouts |
Explicit Model per Agent | Specify OpenAIChatCompletionsModel in agent | Mixed fleet: each agent can talk to a different provider |
Create guardrail policy
Create Virtual Key
How does Obiguard enhance OpenAI Agents?
Can I use Obiguard with existing OpenAI Agents?
Does Obiguard work with all OpenAI Agents features?
How does Obiguard handle streaming in OpenAI Agents?
How do I filter logs and traces for specific agent runs?
agent_name
, agent_type
, or session_id
to easily find and analyze specific agent executions.Can I use my own API keys with Obiguard?