clapointe-carbonleo plugs an API key leak in Mike's frontend
A two-line fix stops Anthropic and Gemini keys from being shipped to every user's browser.
Upstream Mike had a quiet but serious bug: the frontend was reading API keys for Anthropic (Claude's maker) and Google's Gemini from environment variables prefixed in a way that Next.js - the web framework Mike is built on - bakes directly into the JavaScript sent to every visitor. Anyone loading the app could have pulled the keys out of the page source and run up bills on someone else's account.
clapointe-carbonleo's fix swaps the key reads for a harmless placeholder used only to decide whether the model picker shows Claude and Gemini as options. The actual AI calls already ran server-side with properly held keys, so nothing functional changes - the leak just stops. It's the kind of mistake that's easy to repeat across a codebase, and worth a sweep of any Mike fork to make sure no other credentials slipped through the same crack.
Spotted something wrong? Or know the PR text has fresher detail than the writeup above?