So far the Worker talks to Anthropic directly. Once real people use it, you'll want answers to questions like: what did the agent send, what did it cost, and which user is burning tokens? Cloudflare AI Gateway sits between your Worker and Anthropic and records all of it.
It's one change: point the SDK at your gateway's URL instead of api.anthropic.com.