OpenCode confirms a breach and tells affected Console users that AI provider keys saved in their workspaces may have been exposed
Summary
OpenCode, the open-source AI coding agent made by Anomaly, said on X on Oct 17, 2026 that it "had a security breach last night related to a large scale distillation attack that impacted 1.4% of OpenCode Console users", and that it had notified all of them by email that morning. It added that users who did not get an email were not affected, and that those affected were a subset of users with external providers. The email, which recipients shared publicly under the subject "Action Required: Potential provider key breach", says OpenCode identified unauthorized access to a legacy system it was in the process of decommissioning, and that third-party provider keys saved in a user's workspace (it names OpenAI and Anthropic as examples) may have been exposed. It asks users to revoke and replace those keys at each provider, update any apps that use them and review recent usage. Some users reported unexpected spend on provider keys they say were stored only in their OpenCode account. Those reports are self-reported and we have not verified them. OpenCode said in its first post that the incident is ongoing. Later on Oct 17, OpenCode's Dax Raad said the breach involves the hosted OpenCode Console, not the OpenCode app itself, and Anthropic said it had revoked Claude API keys it believes were affected. That evening Raad said OpenCode had already contacted everyone affected and that refunds were underway. Early on Oct 19, a member of OpenAI's Codex team said OpenAI had worked with OpenCode to get affected users who are also OpenAI API customers working again and to refund any credits drawn in the attack. A follow-up email OpenCode sent affected users, shown in a screenshot published by BleepingComputer on Oct 19, lists which of their saved keys were in the affected legacy Console system and puts the earliest possible exposure at 00:30 UTC on Oct 17, 2026 (8:30 p.m. ET on Oct 16). It says no other data appears to have been exposed so far and that OpenCode cannot confirm whether the keys were used without authorization. OpenCode has not said how the attacker got in, how many keys were involved, or how the breach relates to what it calls a distillation attack.
Severity
Timeline
OpenCode says the breach happened "last night", per its Oct 17 post on X.
Earliest possible exposure of the affected keys, according to a follow-up email OpenCode sent affected users, as shown in a screenshot published by BleepingComputer on Oct 19. The email also says OpenCode is speaking with OpenAI, Anthropic and Google about whether fraudulent charges can be reimbursed.
Users on r/opencode and X begin reporting unexpected usage on AI provider keys. Some say the keys were saved only in their OpenCode account (self-reported). We have not independently confirmed when the first reports appeared.
OpenCode emails affected users under the subject "Action Required: Potential provider key breach" (per recipients' screenshots). A screenshot of the email is posted to r/opencode at 10:14 a.m. ET and reshared on X.
OpenCode posts on X that it had a security breach affecting 1.4% of OpenCode Console users, related to what it calls a large scale distillation attack, and that the incident is ongoing.
An edited version of the post adds that users who did not get an email were not affected.
OpenCode's status page lists no security incident, and Anomaly has not published a GitHub security advisory or blog post about the breach.
Lydia Hallie of Anthropic's Claude Code team says on X that Anthropic has been working with OpenCode on the breach and has revoked Claude API keys it believes were affected.
OpenCode's Dax Raad (@thdxr) replies that the breach involves "the OpenCode Console, not OpenCode itself", and that keys used in the OpenCode app "never come to us".
Asked on X whether other affected users would get refunds, Raad replies that OpenCode has "already contacted everyone" and that "refunds are already underway".
Raad posts that attackers have been "non stop trying to attack our systems for the past 48 hours" and that, as a side effect, "everything is getting hardened".
Tibo (@thsottiaux), whose X profile lists Codex and ChatGPT at OpenAI, posts that OpenAI "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."
How it happened
Most of what is known comes from OpenCode's email, as recipients shared it, and its post on X. The email says OpenCode identified unauthorized access to a legacy system that it was in the process of decommissioning, and that third-party provider keys saved in a user's workspace may have been exposed. OpenCode itself runs on your machine and keeps provider keys there. OpenCode's Dax Raad said on Oct 17 that the breach involves the OpenCode Console, its hosted service, "not OpenCode itself", and that keys used in the app "never come to us". The exposed keys are the ones users chose to save in their Console workspace. On X, OpenCode linked the breach to "a large scale distillation attack" but has not explained how that connects to the access to the legacy system. Its follow-up email to affected users, as shown in a screenshot published by BleepingComputer, gives the earliest possible exposure as 00:30 UTC on Oct 17, 2026, but OpenCode has not said how the access happened, when it was detected, how many keys were involved, whether the keys were encrypted at rest, or whether anything besides provider keys was in that system. We won't guess at those details, and we will update this entry if OpenCode publishes them.
How to check your app
- If you ever saved an OpenAI, Anthropic, Google, OpenRouter or other provider key in an OpenCode workspace, revoke it in that provider's dashboard and create a new one, even if you see no unusual activity and got no email.
- Anthropic says it has revoked Claude API keys it believes were affected, so an Anthropic key you saved in OpenCode Console may already have stopped working. Create a new one and update anything that used the old key.
- OpenAI's Tibo said on Oct 19 that OpenAI worked with OpenCode to get affected users who are OpenAI API customers working again and to refund credits drawn in the attack. Check your OpenAI billing page for usage you didn't run, and contact OpenAI support if it hasn't been credited.
- OpenCode says users who did not get its email were not affected. Check the inbox tied to your OpenCode account, including spam, for "Action Required: Potential provider key breach".
- Review usage per key at each provider (OpenAI, Anthropic Console, Google Cloud or AI Studio, OpenRouter and others) for the past several days, especially from 00:30 UTC on Oct 17, 2026 (8:30 p.m. ET on Oct 16), the earliest possible exposure time in OpenCode's follow-up email, and note anything you didn't run. Most providers show usage by key or project.
- If you see charges you didn't make, contact the provider's billing support with the key ID, the dates and the fact that OpenCode notified you of a possible exposure.
- OpenCode's Dax Raad said on Oct 17 that OpenCode had contacted everyone affected and that refunds were underway. If you were charged for usage you didn't run, look for OpenCode's email before assuming you were left out.
- Set monthly spend limits or budget alerts at each provider, turn off auto-reload where you don't need it, and use a separate key per tool so one leak can be revoked without breaking everything else.
- Update any apps, CI jobs or scripts that used the old key so they don't fail silently after you revoke it.
Sources
- OpenCode on X: breach statement (Oct 17, 2026, edited version)
- OpenCode on X: first version of the statement (Oct 17, 2026)
- r/opencode post sharing a screenshot of OpenCode's email (Oct 17, 2026)
- X post resharing the email screenshot, with reports of unexpected charges (Oct 17, 2026)
- The earlier X post that reshare quotes: DMs about API keys running up charges (Oct 17, 2026)
- Arctic Shift archive of the r/opencode post, with its creation time (10:14 a.m. ET, Oct 17, 2026)
- X post by a recipient saying they got OpenCode's email (Oct 17, 2026)
- X post by another recipient describing the email and checking their provider dashboards (Oct 17, 2026)
- OpenCode status page
- Anthropic's Lydia Hallie on X: Claude API keys revoked (Oct 17, 2026)
- OpenCode's Dax Raad on X: the breach involves the Console, not the OpenCode app (Oct 17, 2026)
- OpenCode's Dax Raad on X: everyone affected contacted, refunds underway (Oct 17, 2026)
- OpenCode's Dax Raad on X: attack attempts over the past 48 hours (Oct 18, 2026)
- OpenAI's Tibo (@thsottiaux) on X: affected OpenAI API customers restored and credits refunded (Oct 19, 2026)
- The Hacker News: OpenCode Console breach may have exposed OpenAI, Anthropic, and Google API keys (Oct 19, 2026)
- BleepingComputer: OpenCode hack exposes API keys amid AI distillation attacks (Oct 19, 2026), with a screenshot of OpenCode's follow-up email
Corrections and updates
Added OpenCode's clarification (Dax Raad, 5:38 p.m. ET) that the breach involves the OpenCode Console, not the OpenCode app, and Anthropic's statement that it revoked Claude API keys it believes were affected.
Added Dax Raad's Oct 17, 8:01 p.m. ET statement that OpenCode has contacted everyone affected and refunds are underway, and his Oct 18, 8:04 a.m. ET post about continued attack attempts. Updated the summary, timeline and checklist.
Added OpenAI's statement (Tibo, Codex team, Oct 19, 12:12 a.m. ET) that it worked with OpenCode to restore affected OpenAI API customers and refund credits drawn in the attack, plus The Hacker News coverage. Updated the summary, timeline, checklist and sources.
Added the earliest possible exposure time (00:30 UTC on Oct 17, 2026) from OpenCode's follow-up email to affected users, as shown in a screenshot published by BleepingComputer, and added BleepingComputer as a source. Updated the summary, timeline, technical notes and checklist.
Marked the early-morning start of user reports as not independently confirmed. Added two sources: an archive of the r/opencode post that dates it to 10:14 a.m. ET, and the earlier X post, quoted in the reshare we cite, that reports API keys running up charges.
Cite this entry
- Title
- OpenCode confirms a breach and tells affected Console users that AI provider keys saved in their workspaces may have been exposed
- Added
- Oct 17, 2026
- URL
- https://vibeincidents.com/incidents/opencode-provider-key-exposure-2026-10/
- Suggested citation
VibeIncidents. "OpenCode confirms a breach and tells affected Console users that AI provider keys saved in their workspaces may have been exposed." Oct 17, 2026. https://vibeincidents.com/incidents/opencode-provider-key-exposure-2026-10/