Integration · OpenAI Agents SDK

OFAC Screens Before OpenAI Agents SDK Agents Pay

Integrate OFAC sanctions screening into OpenAI Agents SDK. Wallet screening before every payment in your agent loop.

The problem

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.

Code example

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],
)

Setup steps

Installpip install sanctions-mcp openai-agents
Register toolImport and register sanctions_check as an agent function
Wire into payment flowScreen wallet before your agents transferMoney function executes
Log for auditEvery screen is timestamped and logged to the agentmail dashboard

Pricing

From $19/mo (600 checks) · Free tier: 5 checks/day, no API key

Add OFAC screening to OpenAI Agents SDK

Free tier: 5 checks/day, no API key. Scale from $19/mo.

See pricing