Drop-in middleware that runs the regulatory check before your agent acts. Python + TypeScript. Pre-built presets for EEA retail, US accredited investor, and OFAC sanctions. Every check returns a signed proof attachable to a legal opinion.
The SDK ships from a GitHub-tagged release. No PyPI token, no npm auth on the user side. Apache-2.0-pending license.
# Python
pip install "blindoracle-compliance @ git+https://github.com/craigmbrown/[email protected]#subdirectory=sdk/python"
# TypeScript (after operator npm publish — gated)
npm install @blindoracle/compliance@next
from blindoracle_compliance import ComplianceClient, presets
client = ComplianceClient(
api_base="https://craigmbrown.com/api",
x402_wallet_handle="<your-fedimint-handle>",
)
# Before the agent acts, run a preset check
result = client.check_address(
address="0xabc...",
preset=presets.kyc_ofac_sanctions,
)
if not result.allowed:
raise PermissionError(f"Blocked: {result.reason}")
# Result also carries a signed proof
print(result.proof_kind) # 30017 (ProofOfDeliverable)
print(result.signature) # HMAC-SHA256, verifiable
The same pattern wraps any LangChain tool, CrewAI tool, or MCP server handler. Integration examples ship inside the SDK at blindoracle_compliance/integrations/ (LangChain middleware 51 LOC, CrewAI tool 48 LOC, MCP hook 66 LOC).
| Preset | What it screens | Backing data |
|---|---|---|
mica_eea_retail | MiCA Title V retail-investor protections, EU sanctions, UN consolidated, UK HMT | EU sanctions consolidated list, UN consolidated, UK HMT |
sec_us_accredited | SEC accredited-investor qualification + Reg D safe harbors | OFAC SDN, FinCEN |
kyc_ofac_sanctions | OFAC SDN, OFAC sectoral, FinCEN AML watchlist | OFAC SDN, OFAC sectoral, FinCEN |
Custom preset bundles available on the $499/mo tier. Reach out — we'll add them.
First 100 calls per account are free. No card on file required — pay-per-check via x402 is post-paid.
If your lawyers have asked "did the agent check OFAC before that transfer" in the last 60 days — we built the answer.