Dev.to
7/18/2026

The original title is: "Build a KYB agent in 20 lines no API key, the agent pays per call"
Original: Build a KYB agent in 20 lines no API key, the agent pays per call
Short summary
A working KYB agent in ~20 lines of TypeScript uses the x402 payment protocol to let AI agents pay per API call via stablecoin authorizations, eliminating the need for API keys. The Sirenic API consolidates six French company-register sources and exposes both REST and MCP endpoints so Claude and Cursor can query business data directly. The author discloses they built Sirenic, and the post includes runnable code, pricing details, and practical design principles for paid agent-facing APIs.
- •x402 protocol revives HTTP 402 for machine-to-machine stablecoin payments with no gas for the client
- •Sirenic API consolidates French company registers (INSEE/INPI) into a pay-per-call KYB endpoint from $0.001
- •MCP server integration lets Claude and Cursor use the KYB tools directly with built-in payment handling
Generated with AI, which can make mistakes.
Is this a good recommendation for you?



