Pre-transaction risk screening for autonomous AI agents.
Project description
Frisk
Pre-transaction risk screening for autonomous AI agents.
Before your agent pays an x402 seller or calls an unfamiliar tool, ask Frisk
whether the counterparty is trustworthy and whether the transaction fits your
policy. Frisk returns a verdict — allow, review, or block — with a
trust score and human-readable reasons. It is advisory: your agent stays in
control of the decision.
Install
pip install frisk-screen
Usage
from frisk import Client, Policy
client = Client() # lite mode, no key required
result = client.screen(
"0x9a3f1b2c3d4e5f60718293a4b5c6d7e8f9a0bc12",
endpoint="https://api.seller.x402/quote",
amount=2.50,
asset="USDC",
policy=Policy(max_per_call=5.00),
)
if not result.allowed:
print(result.verdict, result.trust_score, result.reasons)
# hold the payment for review
Lite mode vs. hosted
| Lite (default) | Hosted (API key) | |
|---|---|---|
| Runs | Locally, offline | Frisk API |
| Signals | Public, structural checks only | Reputation graph, trained models, live threat feed |
| Confidence | Always low |
Rises with coverage |
| Cost | Free | Usage-based |
Lite mode catches obvious problems — malformed counterparties, payTo swaps,
insecure endpoints, policy violations, and a small seed blocklist. For
reputation history and continuously updated threat intelligence, pass an API
key:
client = Client(api_key="...")
Design
- Zero runtime dependencies. The SDK uses only the standard library.
- Advisory, not in-path. Frisk never holds your funds or blocks a payment itself; it returns a verdict and your code decides.
- Typed. Ships with type hints (
py.typed).
Development
This project uses uv.
uv sync
uv run pytest
License
MIT — see LICENSE. Security disclosures: see SECURITY.md.
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 frisk_screen-0.0.1.tar.gz.
File metadata
- Download URL: frisk_screen-0.0.1.tar.gz
- Upload date:
- Size: 6.4 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b354bd14678fc6eb7ab03f390b2c9f51db53e492e8d8edf68fbc5b9c25858c9a
|
|
| MD5 |
7eb106ddcff2d0dfac0565919577381e
|
|
| BLAKE2b-256 |
ae32c29d5157ad36ccc34bb56d9bc88c55f3c83825cc935a4f183c77af265d2e
|
File details
Details for the file frisk_screen-0.0.1-py3-none-any.whl.
File metadata
- Download URL: frisk_screen-0.0.1-py3-none-any.whl
- Upload date:
- Size: 9.1 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: uv/0.11.8 {"installer":{"name":"uv","version":"0.11.8","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"macOS","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2a8a5efb83bdc8f0d4b3c3034b5de19b83d526d080c9e3014cfaa6b5d6063f48
|
|
| MD5 |
42015c08fec3a29fe06d2a4c6da0fc70
|
|
| BLAKE2b-256 |
0d22ff4b9a3251ba60530ead44e0153b5cbfd6921488e7b3690b43d5d85eeae8
|