OpenCode Discloses Security Breach Exposing Developer API Tokens
OpenCode says an intruder reached a legacy Console system on October 16, possibly exposing saved OpenAI, Anthropic and Google keys for 1.4% of Console users.
By Dillip Chowdary • Oct 18, 2026 • Source: The Hacker News
At a glance
- Service
- OpenCode Console (hosted), not the OpenCode CLI
- Intrusion
- Legacy system, night of October 16, 2026
- Affected
- 1.4% of Console users with an outside provider linked
- Keys at risk
- Saved OpenAI, Anthropic and Google keys
- Notice
- Email on October 17: "Action Required: Potential provider key breach"
In this post
OpenCode says an intruder reached a legacy system behind its hosted OpenCode Console on the night of October 16, 2026, and that provider API keys saved there may have been exposed. According to The Hacker News' October 19 report, the incident affected 1.4% of Console users, all of whom had linked an outside AI provider such as OpenAI, Anthropic or Google.
OpenCode emailed affected users on the morning of October 17 under the subject line "Action Required: Potential provider key breach." In a post on X the same day, the company said the incident was ongoing and that it was working with Anthropic, OpenAI and Google. It said anyone who did not receive the notification email was not affected.
01OpenCode Console breach: what the company disclosed
OpenCode described the event as a breach "related to a large-scale distillation attack," and said keys "may have been exposed." It has not said that any specific key was copied or used. The company has not named the legacy system, explained how the intruder reached it, said how many keys it held, or said when unauthorized access began.
The 1.4% figure is OpenCode's own. The company has not said how many users that percentage represents. As of October 19, the Cloud Security Alliance noted, OpenCode had not published a post-mortem.
02Saved provider keys at risk, local CLI keys not
Co-founder Dax Raad said in a reply on X that the breach involves "the OpenCode Console, not OpenCode itself," and that keys used with the local tool "never come to us." Per The Hacker News, Raad said keys stored locally by the OpenCode CLI and desktop apps, which keep them in SQLite, were not affected.
That draws a clear line. The exposure concerns third-party keys that users chose to save in Console workspaces on OpenCode's hosted service. Developers who only ran the open-source CLI with keys on their own machines are outside the scope OpenCode described.
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
03Distillation attack claim and open questions
OpenCode has not explained how the "distillation attack" relates to the intrusion, who was responsible, or whether the phrase describes the intruder's goal. On October 18, Raad wrote that attackers had been "non stop trying to attack our systems for the past 48 hours," adding that "a side effect is everything is getting hardened."
The Cloud Security Alliance research note flags the same gaps: it is not known whether the saved keys were encrypted, and the full list of affected providers is uncertain, since some summaries also mention OpenRouter.
04Reported unauthorized API charges
Several users said their keys were used after the breach. These are self-reported and unverified. Colin Parsons reported $281 in charges on OpenAI and $168 on Anthropic, and Preston Zeller reported about $1,700 in losses, both via Dealroom. A Reddit user reported $400 on Anthropic, and another about €200 on Google with the project suspended, via Notebookcheck.
OpenCode has not confirmed any of these charges or said whether it will reimburse users.
05Key rotation steps for OpenCode Console users
The Hacker News and the Cloud Security Alliance give the same core advice. Deleting a key from Console does not revoke it, so revoke each saved key in the provider's own dashboard and create a new one. Then update every application and script that used the old key.
Review provider usage and billing back to at least October 16 for activity you do not recognize. Set spend limits or alerts, and use a separate key for each tool and project so one leak cannot drain a shared budget. The CSA note also recommends resetting OpenCode account passwords and keeping an inventory of third-party services that hold provider keys.
Frequently asked questions
What happened in the OpenCode Console breach?
OpenCode says an intruder reached a legacy system on the night of October 16, 2026. Provider API keys that 1.4% of Console users had saved, from providers such as OpenAI, Anthropic and Google, may have been exposed.
Are API keys used with the OpenCode CLI affected?
No, according to co-founder Dax Raad. The breach involves the hosted OpenCode Console, not OpenCode itself, and keys stored locally by the CLI and desktop apps were not affected.
How do I know if my keys were exposed?
OpenCode emailed affected users on October 17 with the subject line "Action Required: Potential provider key breach" and said users who did not get that email were not affected.
What should affected users do?
Revoke each saved key in the provider's own dashboard and issue a new one, since deleting it from Console does not revoke it. Update apps that used it, review billing back to October 16, and set spend limits.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Advertisement