Integration · OpenAI Agents SDK
Integrate OFAC sanctions screening into OpenAI Agents SDK. Wallet screening before every payment in your agent loop.
The OpenAI Agents SDK gives agents the ability to call functions and make decisions based on results. When an agent can initiate payments, it needs a sanctions check tool in its function registry.
from agents import Agent, Runner, function_tool
from sanctions_mcp import sanctions_check
@function_tool
async def screen_before_pay(wallet: str) -> str:
result = sanctions_check(wallet=wallet)
if result.flagged:
return f"BLOCKED: {wallet} is OFAC-sanctioned"
return f"CLEAN: {wallet} passed sanctions check"
agent = Agent(
name="CompliantPaymentAgent",
instructions="Before any payment, call screen_before_pay first.",
tools=[screen_before_pay],
)Installpip install sanctions-mcp openai-agentsRegister toolImport and register sanctions_check as an agent functionWire into payment flowScreen wallet before your agents transferMoney function executesLog for auditEvery screen is timestamped and logged to the agentmail dashboardFrom $19/mo (600 checks) · Free tier: 5 checks/day, no API key
Free tier: 5 checks/day, no API key. Scale from $19/mo.
See pricing