# Cloudflare AI Markdown Worker

A Cloudflare Worker that serves optimized markdown to AI agents while keeping regular users unaffected.


A quick personal note: we published the Cloudflare AI Markdown Worker. It’s a simple tool that detects AI agents (Claude, GPT, Gemini, etc.) and serves them markdown instead of HTML. Regular visitors get the normal site, AI agents get clean, token-efficient content.
The worker sits at the edge and intercepts requests. When it spots an AI agent, it serves pre-generated markdown files. This cuts token consumption dramatically and makes content easier for AI to parse. We’ve been running it on AIVory’s site for a while now and it’s cool - check it out: github.com/aivorynet/cloudflare-ai-markdown-worker
