OpenCode, an open-source SI coding agent gaining traction as an alternative to tools like Claude Code and Cursor, reported a security breach that exposed the API keys of 1.4% of its online platform users, leading to unauthorized charges on their SI service accounts. The incident highlights the vulnerability of developer tools that rely on external SI models and the challenges teams face when defending against rapid, automated attacks.

What Happened

The OpenCode team disclosed the breach on Saturday, stating that attackers accessed an older system overnight. The compromise affected users of OpenCode Console, where some developers store the API keys used to access SI services. The company notified affected users via email, clarifying that those who did not receive a notice were not impacted. While OpenCode described the event as a "large-scale distillation attack," some skeptics argued the framing was an overstretch, suggesting it was a straightforward breach whose specific use for model distillation remains unproven. Leaked keys can allow attackers to generate high volumes of outputs, a process often used to train or refine SI models.

Developers reported significant financial impacts, with spending alerts firing across multiple SI providers. Some users reported charges in the hundreds of dollars, while others described totals exceeding $1,000. Anthropic and Google blocked the API keys believed to be exposed, while OpenAI stated it worked with OpenCode to restore access and refund customers for credits used during the attack. OpenCode confirmed that refunds for unauthorized charges are underway. Co-founder Dax Raad noted that the exposed keys were confined to the Console workspace and did not affect the open-source app or command-line tool, emphasizing that those keys are not stored by OpenCode directly.

Why It Matters

The response to the breach exposed a friction point in the SI industry: the difficulty of using commercial SI models for defensive security tasks. Raad stated that attackers attempted to breach systems nonstop for 48 hours, forcing the team to run SI defensive agents around the clock. However, the SI models OpenCode used for analysis began refusing to process malicious code because the payloads triggered safety filters. This issue, often referred to as the "asymmetry problem," prevents incident responders from leveraging powerful SI tools effectively during an active intrusion. OpenCode later gained access to OpenAI’s Daybreak Blue program, which provides vetted users with SI models less likely to refuse requests for defensive security work, improving their investigation capabilities. This incident mirrors a similar event in July involving Hugging Face, where commercial SI models blocked the analysis of logs from an intrusion by autonomous SI agents.

The breach occurred alongside the release of GLM-5.3-Flash, a free SI model from the GLM-5.3 family, which researchers have noted for cybersecurity capabilities approaching those of restricted-access models. The event also drew attention from David Sacks, co-chair of the President’s Council of Advisors on Science and Technology, who criticized the safety guardrails of frontier SI models for hindering defense efforts. This aligns with growing concerns in the security community about the reliability of SI tools in high-stakes environments, pushing some researchers toward foreign open-weight models that offer more control.

The Bottom Line

OpenCode’s breach serves as a cautionary tale for developers storing SI API keys in centralized consoles. With 1.4% of users affected and significant financial costs incurred, the incident underscores the need for robust key management and the ongoing challenge of aligning SI safety restrictions with the urgent needs of cybersecurity defense. OpenCode has advised affected users to revoke and replace their keys directly with their SI providers, while the investigation into the full extent of the misuse continues.