How to Use OFAC sanctions search in Codex
Returns potential OFAC matches with names, addresses, programs, list labels, and record identifiers. Use it to find candidates before reviewing a complete entry.
Prompts to try with OFAC sanctions search in Codex
Copy an example into Codex, or ask in your own words.
Use OFAC sanctions search to look this up and give me the result as a table. Save the result in ./assets.
Pull the latest numbers from OFAC sanctions search and tell me what changed since last week.
Check OFAC sanctions search and summarize what you find in three bullet points.
Pull the newest data from OFAC sanctions search and give me the result as a table.
Check OFAC sanctions search every morning and tell me only when something changed.
How to set up OFAC sanctions search in Codex
Pick the way that suits you. Each takes about two minutes.
Use Spiral's MCP server
- Add the hosted server
codex mcp add spiral --url https://api.spiral.ai/mcp
- Sign in
Codex opens the browser: sign in to Spiral and click Authorize. No API key. codex mcp list then shows Spiral.
codex mcp login spiral
Use the Spiral skill
- Send Codex this message
Your agent reads Spiral's skill and sets itself up.
set up https://spiral.ai/SKILL.md
- Sign in or paste a key
Approve Spiral in the browser, or give the agent a key from the console.
Use the Spiral CLI
- Install and sign in
Installs the Spiral CLI, signs you in and adds its skill to your coding agents.
npx -y spiral-cli@latest init
Call the Spiral API
- Create an API key
In the console, under API keys.
- Run OFAC sanctions search
One request; the result comes back by polling or a webhook.
curl https://api.spiral.ai/v1/runs \ -H "Authorization: Bearer $SPIRAL_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "provider": "alexandria", "model": "sanctionssearch-ofac-treas-gov/sanctions/search", "input": { "city": "<city>" } }'
Then paste one of the prompts above: Codex finds OFAC sanctions search on Spiral, shows the price and runs it.
OFAC sanctions search providers and prices
Spiral runs OFAC sanctions search through Alexandria. Open a card for today's price, with every fee included.
Settings you can ask for
Ask Codex for any of these in your prompt.
| Setting | Allowed values | Default | Description |
|---|---|---|---|
| List | SDN or Non-SDN | list | |
| Type | Aircraft, Entity, Individual, or Vessel | type | |
| Min score | 50 to 100 | 100 | Minimum name match score (the slider); 100 returns exact-ish matches only. |
Every API field of OFAC Sanctions List Search · Search is on its tool page: open its card above.
What can you do with OFAC sanctions search in Codex?
Build a company review table that connects OFAC entries to their program labels and published changes. Use detailed and normalized records to check how your project stores names, identifiers, addresses, and list information.
Prepare a company sanctions review
Find potential company matches, compare identifiers and addresses, and assemble the complete OFAC entry with its program labels for a reviewer.
Investigate a possible false positive
Compare a business's legal name, registration identifiers, and address with the complete OFAC record. Include the list and program labels in the review.
Audit a sanctions data import
Compare the stored list with its publication, hashes, and published changes. Inspect individual entries and perform an on-demand company search to investigate discrepancies.
Research Russia-related business listings
Build a program-specific report from published records, explain changes across publications, and inspect company entries such as Gazprom with their list labels and directives.
Review listed vessels
Assemble OFAC vessel entries for a shipping review, then compare names, identifiers, addresses, and program labels with the available shipping documentation.
More on OFAC sanctions search and Codex
Overview
OFAC sanctions search in other agents
Questions about OFAC sanctions search in Codex
Can Codex use OFAC sanctions search?
Yes. Add Spiral to Codex as an MCP server, and Codex can find and run OFAC sanctions search like any built-in tool.
How much does OFAC sanctions search cost in Codex?
$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your Codex plan is separate.
Do I need an Alexandria account to use OFAC sanctions search in Codex?
No. Spiral runs OFAC sanctions search on its own Alexandria account. You sign in to Spiral once and never paste a key.
How long does it take to set up OFAC sanctions search in Codex?
About two minutes: add the hosted server, then sign in.
Does Codex wait while OFAC sanctions search runs?
OFAC sanctions search runs in the background. Codex starts the run, checks on it and gives you the json when it's ready.
Which sanctions lists does OFAC cover?
OFAC publishes the SDN list and a separate Consolidated non-SDN list. The SDN list includes designated organizations and blocked vessels and aircraft; this source covers OFAC lists rather than a worldwide collection of sanctions authorities.
How fresh is OFAC's published data?
OFAC says its XML files contain live list data and are updated at the same time as its other list products. Updates follow list changes rather than a stated daily release schedule.
Can I find entries that OFAC removed?
Current Sanctions List Search results exclude removed names and show only the latest information for updated entries. OFAC provides separate archives, including XML sanctions lists dating back to 2022.
Are OFAC's full list files complete snapshots?
Yes. OFAC describes both its SDN and non-SDN Consolidated files as comprehensive, so a full refresh does not require a separate supplement.
Does an absent company name mean there are no OFAC restrictions?
No. Under OFAC's 50 Percent Rule, an entity owned 50 percent or more in aggregate by blocked persons can itself be blocked, and OFAC's guidance explicitly addresses unlisted entities blocked by law.
Start using OFAC sanctions search in Codex
One Spiral account for every tool your agent needs. No subscription; you pay per run.
Paste this into Codex:
set up https://spiral.ai/SKILL.md


