OpenCode, an open source AI coding agent that has been gaining ground as an alternative to Claude Code and Cursor, says attackers broke into an older system overnight and hit 1.4% of users of its online platform, OpenCode Console. Some users store the API keys they use to access AI services on that platform.
"We had a security breach last night related to a large-scale distillation attack that impacted 1.4% of OpenCode Console users," the company wrote on X. It said it emailed every affected user, and that users who did not get an email were not affected. OpenCode did not explain how the attack worked. Leaked API keys can help people in countries with restricted access to American models generate the large volume of outputs needed to distill a model. Some skeptics argued the incident was a straightforward breach and that the distillation link is unproven.
The cost landed on users. Charges ran to hundreds of dollars, and some topped $1,000. TechCrunch reported that as the team scrambled, the AI tools it asked for help kept refusing to read the malicious code, which highlighted how hard it is for small teams without special access to less restricted models to defend against large, AI driven attacks. Anthropic and Google blocked the exposed keys, and refunds are underway.
Why it matters for developers: any tool that stores your model API keys becomes a target, because those keys convert directly into money and model outputs. It also shows a new kind of incident, where the goal is not data theft but running up usage on someone else's account.
What to do: keep API keys in a secrets manager rather than third party dashboards where possible, use separate keys per tool, and set hard spending limits and usage alerts with every model provider. If you use OpenCode Console, check your email and rotate your keys.
Sources
- TechCrunchHackers hit AI coding tool OpenCode, running up charges on users’ AI accounts
- DevOps.comOpenCode Breach Puts Spotlight on AI Distillation Threats
- 디지털투데이Hackers attack OpenCode AI coding tool open source, charge users' AI accounts without permission
- BleepingComputerOpenCode hack exposes API keys amid AI distillation attacks
- Views BangladeshHackers hit AI coding tool OpenCode, running up charges on users’ AI accounts
- The CodeOpenCode attack exposes user API keys: The open-source coding agent says hackers have hit it nonstop for 48 hours
- Generative AIOpenCode got hacked, and the AI helping it fight back started refusing
Building with AI? See this week's hot AI repos and how to use each one.
From the issue
OpenAI is racing to raise $30B before Anthropic's IPO Tuesday, October 20, 2026