Drop-in bonded counterparty clearance (OFAC + on-chain) for AI-agent frameworks — CrewAI, Agno, and any Python agent. Routes A2A-payment preflight through the StillOS notary.
Project description
stillos-clearance
Drop-in counterparty clearance for AI-agent frameworks. Before your agent pays or
transacts with a counterparty, clear it in one line — OFAC SDN screen + live Base
on-chain wallet signals fused into a CLEAR / REVIEW / BLOCK verdict, Ed25519-signed
and backed by a real on-chain correctness bond with /dispute recourse.
x402 and A2A payments settle naked — no KYC, no chargeback. This is the preflight.
Install
pip install stillos-clearance
Use
from stillos_clearance import guard, require_clearance, crewai_guard, agno_pre_hook
# 1. Inline — raises ClearanceBlocked on BLOCK
guard(counterparty_name="Acme LLC", counterparty_wallet="0xabc…")
# 2. Decorator — gate any payment/transfer function by default
@require_clearance()
def pay(amount, counterparty_name=None, counterparty_wallet=None):
...
# 3. CrewAI — gate a BaseTool so it refuses sanctioned/risky counterparties
crewai_guard(my_payment_tool)
# 4. Agno — pre_hook that clears the counterparty in run metadata before the agent runs
agent = Agent(..., pre_hooks=[agno_pre_hook()])
block_on_review=True treats REVIEW as a hard stop (default: REVIEW is allowed).
Config
STILLOS_CLEARANCE_URL— override the endpoint (default: the live notary).- Free tier applies per agent/day; past it the endpoint returns HTTP 402/429 with x402
payment terms, and
is_allowed()treats a paywalled response as not cleared.
Why bonded
Every verdict is backed by real USDC staked on-chain (/notary/bond). A verdict proven wrong via independent re-run pays the disputant from the bond. Self-reported agent reputation has no money behind it; these verdicts do.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file stillos_clearance-0.1.0.tar.gz.
File metadata
- Download URL: stillos_clearance-0.1.0.tar.gz
- Upload date:
- Size: 4.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
60e815e56e8c14955d8c712d0f439be8b55959244e829ad2b5b8ce4711368906
|
|
| MD5 |
f57ea3ca2cfe2aee68c741f4e7f72363
|
|
| BLAKE2b-256 |
d43cb8343f1b3f0d118de3c6cafa150c0488ca3bf0e675a6fda4edb05aaaade7
|
File details
Details for the file stillos_clearance-0.1.0-py3-none-any.whl.
File metadata
- Download URL: stillos_clearance-0.1.0-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.2.0 CPython/3.14.4
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ec75f78c0623e78d26d4f241243ac1e3d3692dd6d82fd81244335be9b6ef5354
|
|
| MD5 |
9bf80ef3bba68bdb117b8405d2c8b614
|
|
| BLAKE2b-256 |
5ec961e171978e89df187b9a69ca7a3367344e81077ec2024e6e5c1b7f758808
|