payperscreen-agentkit
v0.2.2
Published
Coinbase AgentKit action provider for PayPerScreen: sanctions, PEP, crypto wallet, email, IP and link screening, paid per check in USDC over x402 from the agent's own wallet, or from a PayPerScreen plan.
Maintainers
Readme
payperscreen-agentkit
Coinbase AgentKit action provider for PayPerScreen: sanctions, crypto wallet, email, IP and link screening for AI agents.
Your agent screens a person, company, wallet, email or IP address before it pays, onboards or trades, and pays for each check itself: $0.02 in USDC over x402, from the agent's own wallet. No account, no API key.
Install
npm install payperscreen-agentkit @coinbase/agentkitUse
import { AgentKit } from "@coinbase/agentkit";
import { payperscreenActionProvider } from "payperscreen-agentkit";
const agentkit = await AgentKit.from({
walletProvider, // any EVM wallet provider (CDP, Viem, Privy...)
actionProviders: [
payperscreenActionProvider({
maxPriceUsd: 0.05, // refuse any single check priced above this
maxSpendUsd: 1, // stop after spending this much in total
}),
// ...your other action providers
],
});Then use AgentKit as usual with your framework (LangChain, Vercel AI SDK, OpenAI Agents, MCP). Ask the agent things like "Screen Jane Doe, born 1990-04-12, Brazil, before we pay her invoice" or "Is this wallet safe to send USDC to?".
Actions
| Action | What it does | Price |
|---|---|---|
| screen_name | Person or company against official sanctions and export-control lists (US, UN, EU, UK and more, refreshed daily). Fuzzy matching; each possible match compares date of birth, nationality and type. | $0.02 |
| screen_pep | Politically exposed persons: current and recent heads of state and government, ministers, members of parliament, senior judges, ambassadors, central bank heads and senior military officers in every country. Offices with dates and status, a date of birth / country comparison, and the sources that confirm each match. | $0.02 |
| screen_wallet | Wallet address against OFAC-sanctioned addresses, stablecoin-issuer freezes and wallets tied to major hacks. | $0.02 |
| check_email | Email fraud signals: disposable or brand-new domain, look-alikes, privacy providers, forwarding aliases, random-looking addresses. | $0.02 |
| check_ip | Sanctioned country, VPN, proxy, Tor, botnet and hosting signals; country and network owner. | $0.02 |
| check_url | Link or domain before opening or paying it: Google Web Risk, reported phishing, brand look-alikes, brand-new domain and more. Never visits the page. | $0.02 |
| screening_lists_coverage | Which lists are checked, record counts and last refresh. | Free |
Results are possible matches and signals for a person to review, not a legal determination.
Wallet and payment
- The agent's wallet needs USDC on Base (or Polygon or Arbitrum). No ETH needed: the payment is a signed USDC authorisation and the facilitator pays the gas.
- Only USDC payment options are ever signed. The agent pays on its own network when the API offers it, otherwise on Base.
- Caps (also settable with environment variables):
maxPriceUsd/PAYPERSCREEN_MAX_PRICE_USD: most for one check (default 0.05). A higher price is refused before anything is signed.maxSpendUsd/PAYPERSCREEN_MAX_SPEND_USD: most in total for the process (default 1.00).
- Payment settles only when a result comes back: bad input or errors cost nothing.
- Every paid result includes the payment receipt (amount, network, transaction hash).
Using a PayPerScreen plan instead
If you have a PayPerScreen plan, pass its key and checks come from the plan's bundle instead of the wallet:
payperscreenActionProvider({ apiKey: process.env.PAYPERSCREEN_API_KEY })Nothing is paid from the wallet then, and the spending caps don't apply. Each result says how many checks the plan has left; a failed check isn't counted.
Configuration
| Option | Env var | Default |
|---|---|---|
| apiUrl | PAYPERSCREEN_API_URL | https://api.payperscreen.com |
| maxPriceUsd | PAYPERSCREEN_MAX_PRICE_USD | 0.05 |
| maxSpendUsd | PAYPERSCREEN_MAX_SPEND_USD | 1 |
| apiKey | PAYPERSCREEN_API_KEY | none (pay from the wallet) |
Links
- Docs: https://payperscreen.com/docs
- Lists we check: https://payperscreen.com/lists
- Also available as an MCP server:
payperscreen-mcp
MIT licence.
