Claude Code and Cloudflare guide publishing AI-made games for free to friends only
The article provides a step-by-step guide for publishing AI-made games to friends only using Claude Code and Cloudflare Workers, emphasizing free hosting and security.
What you can do with it
AI at Work →Share a game with friends securely with Cloudflare Workers
What you get You can avoid exposing secrets in code.
Hosts your game.
- Who for
- marketers, founders and operations
- Cost
- free tier
- Effort
- an afternoon
- Already included in
- Cloudflare Workers free plan
Use it for
- Share a game with friends securely
- Avoid exposing secrets in code
How to set it up · From the article
- Run 'npx wrangler login' to grant Claude Code access to your Cloudflare account
- Use wrangler secret put to store BASICPASS and BASICUSER as secrets in Cloudflare
- Set runworkerfirst = true in wrangler.toml to enforce password check on every request
Watch out Free tier limited to 100,000 requests per day
Key points from the news
- Cloudflare Workers free plan allows up to 100,000 requests per day per account, resetting at 9:00 AM Japan Standard Time.
- Basic Authentication via wrangler secret and .dev.vars prevents exposing passwords in code or chat.
- Security review by a second AI or person is required before sharing to catch vulnerabilities like data exposure or seat stealing.
It details how to set up Basic Authentication, avoid exposing secrets, stay within Cloudflare's free tier of 100,000 requests per day, and have others review security before sharing. The author, a systems engineer, shares personal experience deploying card games, mahjong, and photo posting sites on Cloudflare, noting that the free tier resets at 9:00 AM Japan Standard Time and that a paid plan for 100-person testing once cost $5.17. The guide warns against using this method for apps handling personal data or money and includes prompts, commands, and checks for safe deployment.
The story so far
2 episodes →- Claude Code and Cloudflare guide publishing AI-made games for free to friends onlythis story

The headline, key points and digest above were generated by Digest AI's editorial model from the linked sources. Automated summaries can contain errors: the sources are the record. Spotted a mistake? Tell us. Published by Martin K., who runs Digest AI and handles corrections.
Comments
via GitHub Discussions