Skip to main content

agentkit-tollwarden

TollWarden payment security for Coinbase AgentKit — a scan-before-you-pay action provider for x402 payments.

pip install agentkit-tollwarden

Add the action provider

from coinbase_agentkit import AgentKit, AgentKitConfig
from agentkit_tollwarden import tollwarden_action_provider

agent_kit = AgentKit(AgentKitConfig(
    wallet_provider=wallet_provider,
    action_providers=[
        tollwarden_action_provider(agent_id="my-agent"),   # free key auto-minted
        # ... your other providers
    ],
))

The agent gets three actions — tollwarden_scan_payment, tollwarden_check_reputation, tollwarden_report_counterparty — each described so the model calls them at the right moment. Verdicts come back allow / flag / block with machine-readable reasons: prompt-injection-triggered payments, replayed nonces, overpayment vs the quote, secrets/PII leaking in payment metadata, lookalike-token contracts, address poisoning, counterparty reputation.

Two AgentKit-native touches

Wallet payer auto-fill. tollwarden_scan_payment receives AgentKit's wallet_provider, so when you don't supply a payer it fills in the agent's own wallet address — scoping TollWarden's velocity and first-contact limits to this agent automatically. Supply payer explicitly to override.

Provenance for injection detection. TollWarden's strongest check catches payments whose decision came from content the agent just read. Pass that text as the scan action's optional content argument; if the pay_to address appears in it, the payment is blocked.

Non-custodial by design

TollWarden only reads payment metadata to produce a verdict — it never signs, holds, or routes funds, and the action provider never touches the AgentKit wallet's keys. The settle/refuse decision stays with your agent. Verdicts are Ed25519-signed and payment-bound; for wallet-level enforcement (the signer itself refuses unscanned payments), see TollWardenEnforcer in the tollwarden SDK.

MIT.

Release files for agentkit-tollwarden 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agentkit-tollwarden 0.1.0
File Size Uploaded
agentkit_tollwarden-0.1.0.tar.gz 7.5 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for agentkit-tollwarden 0.1.0
File Interpreter ABI Platform
agentkit_tollwarden-0.1.0-py3-none-any.whl Python 3 none any Details

Total release size: 12.9 kB

Release files / agentkit_tollwarden-0.1.0.tar.gz

Download URL agentkit_tollwarden-0.1.0.tar.gz
Size 7.5 kB
Tags Source
SHA-256 checksum
How to use checksums
2338846c47004910d31c054a836b0a98f3c2110436a9f9a716f5ab26a92cd8ab
BLAKE2b-256 checksum
How to use checksums
11fbeb526b60f0a143a902ba52479d29cd99c718cd71c1177ad7b1293d37588d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release files / agentkit_tollwarden-0.1.0-py3-none-any.whl

Download URL agentkit_tollwarden-0.1.0-py3-none-any.whl
Size 5.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a7753f7010a5a080a32f598ad46770b019ac7c785badb7f1527ef03206c5f9ee
BLAKE2b-256 checksum
How to use checksums
1c08a6dc75ddf26eb6607a9b0e21054222477c687e733c55600304bb0a5c2fb3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via uv/0.11.28 {"installer":{"name":"uv","version":"0.11.28","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":null,"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page