Azure OpenAI + Govyn — Govern Your Azure AI Agents
Azure OpenAI gives you enterprise-grade infrastructure, but it doesn't provide per-agent budget controls or policy enforcement. When multiple teams deploy agents against shared Azure endpoints, you need a governance layer to prevent cost overruns and ensure compliance.
How it works
Step-by-step setup
Start the Govyn proxy with Azure routing
npx govyn start --config govyn.yaml Configure Govyn for Azure OpenAI
# govyn.yaml
routing:
azure:
upstream: https://your-resource.openai.azure.com
headers:
api-key: ${AZURE_OPENAI_KEY}
format: azure-openai Point your agent at Govyn
from openai import AzureOpenAI
client = AzureOpenAI(
azure_endpoint="http://localhost:4111",
api_key="gvn_agent_azure_01",
api_version="2024-06-01"
)
response = client.chat.completions.create(
model="gpt-4o",
messages=[{"role": "user", "content": "Analyze this report"}]
) Example policy
Define governance rules for your Azure OpenAI agents in a simple YAML file.
routing:
azure:
upstream: https://your-resource.openai.azure.com
headers:
api-key: ${AZURE_OPENAI_KEY}
format: azure-openai
agents:
azure_01:
budget:
daily: $20.00
monthly: $500.00
models:
allow: [gpt-4o, gpt-4o-mini]
rate_limit:
requests_per_minute: 50
logging:
replay: true
redact_pii: true
retention_days: 90 Why use Govyn with Azure OpenAI?
Get started in 5 minutes
Add governance to your Azure OpenAI agents with a single config change. No code rewrites.
Read the docsFrequently asked questions
Does Govyn work with Azure OpenAI's API format?
Can I use Govyn alongside Azure's built-in content filtering?
How does Govyn help with enterprise compliance on Azure?
Related integrations
Add budget limits, policy enforcement, and full replay to LangChain agents using OpenAI. Five-minute setup, zero code changes.
Govern local LLM agents running on Ollama. Enforce model policies, rate limits, and full audit trails for self-hosted models.
Add governance to OpenAI Agents SDK. Enforce budgets, model policies, and audit trails for every agent run. Five-minute setup.
Explore more
How smart model routing through a proxy cut our OpenAI and Anthropic bill from $2,140/mo to $578/mo. Zero code changes. Just YAML.
POLICY TEMPLATESet daily and monthly spending limits for AI agents. Prevent runaway costs with hard budget caps enforced at the proxy level.
POLICY TEMPLATEMaintain complete audit trails for AI agent operations. Log every request, response, and policy decision for regulatory compliance.
COMPARISONCompare Govyn and Coralogix for AI agent governance. Proxy-level enforcement vs enterprise observability with AI monitoring.