Update, October 19: Added a post from Tibo Sottiaux of OpenAI saying OpenAI worked with OpenCode to get OpenCode users who are also OpenAI API customers back in business and to refund credits drawn in the attack.
OpenCode says a security incident has affected about 1.4% of OpenCode Console users. In a post on X at 02:08 Beijing time on October 18, the company said it had "a security breach last night related to a large scale distillation attack." Both "breach" and "large scale distillation attack" are OpenCode's own words, and the company hasn't explained what the attack involved.
Who is affected
According to OpenCode, the affected users were a subset of Console users who had external providers linked to their accounts. The company says it has already notified all of them by email, and that anyone who didn't get an email was not impacted. OpenCode added that sentence when it edited the post 12 minutes after first publishing it at 01:56 Beijing time. The company gave a percentage but not the number of users behind it.
The incident is still ongoing, and OpenCode says it can't share more details at this point. It adds that it is "working with Anthropic, OpenAI, and Google to remediate." OpenCode's public post on X doesn't say whether any keys were exposed. But according to Notebookcheck, OpenCode's email to affected users said someone had gained unauthorized access to a legacy system it was decommissioning, and that third-party provider keys stored in users' workspaces, including OpenAI and Anthropic keys, may have been exposed. It also reports that some Reddit users described unexplained charges on their provider accounts.
According to Notebookcheck, OpenCode's email also asks affected users to revoke and replace their provider keys, update any applications that use them, and review recent usage for unexpected activity.
What Anthropic, Google and OpenCode staff have said
Staff at these companies have also posted on their personal accounts; these are not official company statements. At 05:04 Beijing time, Lydia Hallie, a member of Anthropic's Claude Code team according to Hallie's X bio, quoted OpenCode's post: "We've been working with OpenCode on yesterday's breach and have revoked Claude API keys we believe were affected." Hallie added that anyone who saved a key in OpenCode and wants to be extra careful should create a new one.
At 05:38, Dax (@thdxr), whose bio says they build OpenCode at Anomaly, replied to Hallie: "note this is the OpenCode Console, not OpenCode itself, those keys never come to us." Dax didn't elaborate, but our reading is that the reply was separating the two products: keys typed into the local OpenCode tool don't pass through OpenCode's servers, unlike keys stored in OpenCode Console. In a later reply, Dax said OpenCode had already contacted everyone affected and refunds were already underway, and that the request to email was only in case someone had missed OpenCode's email.
At 06:53 Beijing time on October 18, Evan Otero, who works on Google AI Studio and the Gemini API, quoted OpenCode's post on X: "We are aware of the OpenCode security incident involving Gemini API keys stored in OpenCode. We've blocked exposed API keys." Otero advised anyone who used an API key with OpenCode to create a new key in AI Studio, delete the old one and review their usage, and to contact Google Cloud Billing support about any charges they didn't make. This is also a personal account, not an official Google statement.
Someone at OpenAI has now commented as well. At 12:12 Beijing time on October 19, Tibo Sottiaux (@thsottiaux), whose X bio reads "Codex & ChatGPT @OpenAI," posted: "Our team worked with OpenCode to have their users who are also OpenAI API customers back in business and any credits refunded which would have been drawn in the attack." Sottiaux didn't say how many users this covers or how the refunds are being issued. This is also a personal account, not an official OpenAI statement.
At 01:31 Beijing time on October 21, OpenCode co-founder Dax (@thdxr) replied to a user still waiting on Anthropic credits stolen in the breach. Dax wrote that Anthropic is working through it this week, and that if Anthropic cannot get it done by then, OpenCode will send credits from OpenCode's side. That reply is from Dax's personal account, not an official Anthropic statement.
At 20:04 Beijing time on October 18, OpenCode's Dax (@thdxr) wrote on a personal X account that someone had been "non stop trying to attack our systems for the past 48 hours" and that, as a side effect, "everything is getting hardened." The post didn't say who was behind it or whether it's connected to the Console breach, and it didn't report any new exposure.
OpenCode co-founder Dax Raad said on Oct 21 that the team sees hundreds of distinct attack attempts a day, including a link posing as a PlanetScale OAuth prompt and exploits sent through the enterprise contact form aimed at users' local OpenCode servers. He did not say these were linked to the Console breach.
We'll update this article when OpenCode shares more details.
