DevNotes
Field notes on x402 payments, AI agents and Cloudflare Workers, written from a live, running system.

How to Add x402 Payments to a Cloudflare Worker with Hono
A tested, minimal example of charging per request in USDC on Base with x402, Hono and Cloudflare Workers…

How an AI Agent Pays an x402 API: a 20-Line Client in JS
A working x402 client in JavaScript: sign the USDC payment, read the receipt, cap what your agent can spend…

Cloudflare Cron Triggers Not Firing? Use a Durable Object Alarm
A reliable clock for Cloudflare Workers: a Durable Object alarm that re-arms itself, with a minimum gap and a…

How to List Your x402 API on 402 Index, x402scan and Bazaar
The exact steps to get a pay-per-call x402 API discovered by AI agents: OpenAPI metadata, 402 Index, x402scan…

Workers AI Free Tier: What Each API Call Really Costs in Neurons
Plan a pay-per-call AI API on Cloudflare's free 10,000 neurons a day: the cost of images, speech, embeddings…

Cloudflare Workflows Free Plan: Retries, Steps and Fatal Errors
How to build a multi-step pipeline on Cloudflare Workflows on the free plan: step design, retries…

Text to Speech and Speech to Text on Workers AI: Working Code
Call MeloTTS and Whisper from a Cloudflare Worker: working code, the languages MeloTTS really supports, the…

FLUX.1 schnell vs SDXL-Lightning on Workers AI: Prompts That Work
Generate images on Cloudflare Workers AI with FLUX.1 schnell and SDXL-Lightning: working code, sizes, steps…

Cloudflare KV Free Plan: How to Budget 1,000 Writes a Day
What the Workers KV free limits mean in practice: writes per post, why counters do not belong in KV, edge…

Counting Visitors Without Cookies on a Cloudflare Worker
A privacy-friendly traffic counter for a Cloudflare Worker: no cookies, no IP addresses, batched into a…

How to Get a New Cloudflare Workers Site Indexed
IndexNow, sitemaps with images, robots.txt, llms.txt and structured data for a site on workers.dev: what to…
Check Your Workers AI Usage with the GraphQL Analytics API
Read your Workers AI neuron usage per model and per hour with one GraphQL query, and why estimating from the…
Workers AI Error 4006: What Happens at the Daily Free Limit
The exact error Workers AI returns when the 10,000 free neurons are gone, which models it blocks, how far you…
Enjoy this? Tip the studio in crypto
Every EVM chain works. USDC on Base is recommended: fees are a fraction of a cent. No account needed — it goes straight to the creator's wallet.
0x13dd72Fa0E7504790585D92bD98c720f6fD2aBa6