An intruder reached a legacy system at OpenCode on the night of October 16 and may have exposed the third-party AI provider keys that users had saved in OpenCode Console, the company said.
Console is OpenCode’s optional hosted service: a workspace saves its own OpenAI, Anthropic, or Google key there, and Console uses that key to call the provider so team members can use the models without ever seeing the key.
The affected group is 1.4% of Console users, all of whom have an outside provider linked, and OpenCode has told them via email to revoke those keys with each provider and replace them.
The email went out on the morning of October 17 under the subject line “Action Required: Potential provider key breach.” Anyone who did not get one was not affected, OpenCode said in a post on X later that day.
The keys at risk are the ones pasted into Console. The OpenCode command-line and desktop apps keep provider keys added on the machine in a SQLite database there. The breach involves “the OpenCode Console, not OpenCode itself,” co-founder Dax Raad wrote in a reply on X, and those keys “never come to us.”
A provider key is a bearer credential: whoever holds a copy can run billable requests against the owner’s account until the provider revokes it. Deleting the key from Console does not revoke it, and a Console budget cannot cap that use either, because Console only sees requests that pass through its own gateway.
For a key that was saved in a Console workspace, OpenCode’s email and the providers’ own guidance give these steps:
- Revoke the key in the provider’s own dashboard and create a new one, following the instructions from OpenAI, Anthropic, or Google.
- Update every application and script that used the old key.
- Review usage and billing at the provider for requests you did not make, going back at least to October 16. OpenCode has not said when the unauthorized access began.
- Set a spend limit or alert at the provider and give each tool its own key, so a copied key does less damage and its use is easier to trace.
Some users say they have already paid for usage they did not run. Dealroom reported that Colin Parsons wrote on X that his OpenAI key had been used for $281 and his Anthropic key for $168, and that Preston Zeller put his losses at $1,700.
Notebookcheck reported a Reddit user’s claim of $400 of unauthorized usage on an Anthropic account, and another’s of about €200 of Google usage, with the project then suspended.
Those are the users’ own accounts. OpenCode’s own wording is that the keys “may have been exposed,” and it has not said that any key was copied or used.
OpenCode’s October 17 post also called the incident ongoing, said the company was working with Anthropic, OpenAI and Google to fix it, and described the breach as “related to a large-scale distillation attack.” The company has not named anyone or said how the two connect, what the legacy system was, how it was reached, how many keys it held, or how many users 1.4% represents.
Distillation is the term AI model providers use for campaigns that pull a model’s answers in huge numbers to train a rival model. Anthropic said in September that the labs behind such campaigns reach its models through networks of fake accounts created with stolen credit cards, login credentials and harvested API keys. A stolen key has other uses too: criminal markets resell AI tokens and keys and use them to run up bills.
Attackers were still trying to get into OpenCode’s systems on October 18, Raad wrote on X: they had been “non stop trying to attack our systems for the past 48 hours,” and “a side effect is everything is getting hardened.”

