Image: OpenCode
Update, 18 October: OpenCode has confirmed the breach. In a post on X at 11:38 PM IST on 17 October, the company said a breach "related to a large scale distillation attack" hit 1.4% of OpenCode Console users, all of whom it emailed that morning. Only users who had linked outside AI providers were affected, and anyone who didn't get an email wasn't. Distillation means sending huge numbers of prompts to a strong AI model and using its answers to train a copy or rival model. OpenCode didn't explain the link, but exposed keys would let someone do that on other people's accounts. The company says the incident is ongoing and it is working with Anthropic, OpenAI and Google. Anthropic's Lydia Hallie said Anthropic has revoked Claude API keys it believes were affected. OpenCode co-founder Dax Raad added that keys used in the regular OpenCode app never reach the company, only those saved in Console. Who carried out the attack, how the keys were taken and how many people 1.4% represents are still unknown.
We had a security breach last night related to a large scale distillation attack that impacted 1.4% of OpenCode Console users
— OpenCode (@opencode) October 17, 2026
We have notified them all this morning via email. If you did not get an email you were not impacted, it was a subset of users who had external providers linked
The incident is ongoing so we cannot share more details at this point but we are working with Anthropic, OpenAI, and Google to remediate
Users of OpenCode, the popular open-source AI coding agent, are sharing an email the company has since confirmed sending. It says someone got into one of its systems and that the OpenAI, Anthropic and other AI provider keys they stored with it may have been exposed, and it asks them to revoke those keys right away.
🚨 Confirmed. OpenCode hacked. Keys stolen.
— Matt Johansen (@mattjay) October 17, 2026
Telling customers to revoke. pic.twitter.com/rQz6G9reGG
The news broke on X through cybersecurity commentator Matt Johansen. He first posted that OpenCode customers seemed to be getting breach notices, and that people had messaged him saying their API keys were running up charges. Shortly after, he shared a screenshot of the email, which was originally posted on the r/opencode subreddit.
The email OpenCode users say they received. Image: r/opencode via @mattjay
The email is titled "Action Required: Potential provider key breach." The screenshot doesn't show the sender's address, but OpenCode has since confirmed it emailed affected users, and it matches what several users report receiving. It says the company "identified unauthorized access to a legacy system that we were in the process of decommissioning," and that "third party provider keys (eg OpenAI, Anthropic) saved in your workspace may have been exposed." Users are asked to revoke and replace those keys, update any apps that use them, and check recent usage for anything unexpected. It ends with an apology and a promise of updates.
Several users on X say they received the same message. One user replying to the OpenCode team said their keys were exposed but that spending limits kept the damage down. We couldn't verify those individual reports.
Beyond its X post, OpenCode and its parent company, Anomaly, haven't published a fuller statement. The company's status page shows no incident, and there's no new security advisory on its GitHub. It's still unknown how long the intruder had access and what the "legacy system" was. Johansen's "keys stolen" also goes a step further than the email, which only says keys "may have been exposed."
The wording about which keys are at risk matters. "Saved in your workspace" points to OpenCode Console, the company's web service where teams can connect their own provider accounts by storing a key that Console uses to forward requests. OpenCode's docs say the provider bills you directly for those tokens, while Console tracks each request so usage reports and budgets stay accurate.
That's the catch. Console only sees requests that go through Console. Anyone using a stolen key directly with OpenAI or Anthropic would never show up in your OpenCode usage reports or hit your workspace budget. The bill would land with the provider, so that's where you need to look.
OpenCode has fixed key-handling bugs before, including one where its web interface sent raw API keys to the browser. There's no sign that's connected to this incident, which the email describes as unauthorized access to a company system.
What OpenCode users should do
If you saved provider keys in an OpenCode Console workspace, revoke them in each provider's own dashboard, such as OpenAI or Anthropic, and create new ones. Just deleting a key from OpenCode won't stop someone who already has a copy.
Then check each provider's usage and billing pages for activity you don't recognize, set a spending limit if you haven't, and add the new key to OpenCode and any other apps that need it.
We'll update this story if OpenCode shares more details.


Comments