The most telling detail in the OpenCode breach isn’t the stolen keys. It’s that the team’s AI assistants stopped working mid-incident because the malicious code looked too dangerous to analyze.
OpenCode, an open source coding agent that developers use as an alternative to Claude Code and Cursor, said on Saturday that attackers got into an older system overnight. The hit affected 1.4% of users of OpenCode Console, the online platform where some people store the API keys they use to reach AI services. The open source app and command-line tool were not touched, co-founder Dax Raad said, because those keys never reach OpenCode’s servers.
Users noticed fast. Developers posted spend alerts from OpenAI, Anthropic and Google on Reddit and X. Some reported charges in the hundreds of dollars, and a few passed $1,000. Anthropic and Google blocked the keys they thought were exposed. OpenAI worked with OpenCode to restore access and refund affected customers, and OpenCode says its own refunds are underway.
The company called it a large-scale distillation attack, where outputs from a model are harvested to train another. Leaked keys could plausibly feed that, especially for people in countries with restricted access to American models. But skeptics say it looks like a plain breach, and the distillation claim is unproven. OpenCode hasn’t explained how attackers got in, how keys were stored, or how much was misused. The incident is still ongoing.
The bigger story is the defender’s problem. Raad said attackers had been probing for 48 hours, so the team ran AI defensive agents around the clock. Those models helped until the malicious code tripped their safety filters and they refused to continue. OpenCode later got into OpenAI’s Daybreak Blue program, which gives vetted users models that are less likely to refuse defensive security work. Raad said it helped.
That’s the catch. Access to the permissive models depends on being vetted, and a small open source team may not be. Hugging Face hit the same wall in July, and wrote that guardrails “cannot distinguish an incident responder from an attacker.” Security researchers say the restrictions are inconsistent and have nudged some toward foreign open-weight models anyone can download. David Sacks, co-chair of the President’s Council of Advisors on Science and Technology, argued the guardrails backfired.
Timing adds a wrinkle. The breach came the same night OpenCode made GLM-5.3-Flash free. Researchers who study open-weight models say the GLM-5.3 family approaches the cybersecurity capability of restricted models like Anthropic’s Claude Mythos Preview. No link to the attack has been shown.
Does this matter? Yes, mostly for the pattern. CrowdStrike recently tied a China-based hacker to an AI pen-testing agent and Claude in attacks on South Korean banks, and India’s cybersecurity agency warned of unauthorized AI agents reaching Indian systems. Attackers face no vetting. Defenders do. If you use any tool that holds provider keys, revoke and rotate them, and set spend caps. And expect the access-tier fight among OpenAI, Anthropic and Google to get louder.



