OpenCode said on 17 October 2026 that a security breach the previous night affected 1.4% of OpenCode Console users, all of whom had linked external model providers, and that it had emailed every affected user. OpenCode said it was working with Anthropic, OpenAI and Google to remediate and that the incident was ongoing. If you linked provider keys to OpenCode Console and received the email, revoke and replace those keys at each provider and review usage.
| Disclosed | October 17, 2026 |
|---|---|
| Earliest known activity | October 16, 2026 |
| Affected | OpenCode Console, Anomaly |
| Type | Breach |
| Status | Ongoing |
What was exposed
Third-party model provider API keys that workspaces had linked to OpenCode Console, the optional hosted service, for the 1.4% of Console users OpenCode says were affected. OpenCode's announcement names Anthropic, OpenAI and Google as the providers it is working with. Provider API keys are bearer credentials: whoever holds one can make paid API calls on the owner's account until the key is revoked at the provider, and removing a key from Console does not revoke it. OpenCode has not publicly said how the attacker got in, which system was involved, how many keys were taken or whether they were used, and it described the incident as ongoing. Keys entered only in the local OpenCode CLI or desktop app are not part of this breach, according to Raad. Reports of unauthorized charges on users' provider accounts have appeared in press coverage, but they are users' own claims and OpenCode has not confirmed them.
Am I affected?
You are affected if you received OpenCode's notification email about the incident. OpenCode said users who did not receive an email were not impacted, and that all affected users had external providers linked in OpenCode Console. If you use only the local OpenCode CLI or desktop app with your own keys, OpenCode says those keys never reach its servers. If you are unsure, check your OpenAI, Anthropic and Google Cloud usage dashboards for activity since 16 October 2026 that you do not recognize.
What to do now
- Revoke every provider API key you linked to OpenCode Console in that provider's own dashboard (OpenAI, Anthropic, Google), then create new keys.
- Update the applications and scripts that used the old keys.
- Review usage and billing at each provider from 16 October 2026 onward and report unauthorized charges to the provider.
- Set spend limits or alerts, and use a separate key for each tool so one exposure can be revoked without breaking others.
Keys to rotate
Guides to the credentials this incident put at risk:
- Rotate OpenAI keys
- Rotate Anthropic keys
- Rotate Google Gemini API keys
- Rotate Google Cloud (service account keys and API keys) keys
Timeline
- OpenCode says the breach happened on the night before its announcement. Source
- OpenCode posts that the breach, which it says was related to a large-scale distillation attack, affected 1.4% of Console users who had external providers linked, that all were emailed that morning, and that users who received no email were not affected. Source
- Co-founder Dax Raad says the breach involves the OpenCode Console, not OpenCode itself, and that keys used with the local tool never come to OpenCode. Source
- Raad says attackers had been trying to attack OpenCode's systems non-stop for the past 48 hours and that systems were being hardened. Source
What this changes for credential handling
- A hosted service that stores many customers' provider keys concentrates risk. BotPassword encrypts keys on the client so its servers never hold usable key values.
Frequently asked questions
Am I affected by the OpenCode Console incident?
You are affected if you received OpenCode's notification email about the incident. OpenCode said users who did not receive an email were not impacted, and that all affected users had external providers linked in OpenCode Console. If you use only the local OpenCode CLI or desktop app with your own keys, OpenCode says those keys never reach its servers. If you are unsure, check your OpenAI, Anthropic and Google Cloud usage dashboards for activity since 16 October 2026 that you do not recognize.
What was exposed in the OpenCode Console incident?
Third-party model provider API keys that workspaces had linked to OpenCode Console, the optional hosted service, for the 1.4% of Console users OpenCode says were affected. OpenCode's announcement names Anthropic, OpenAI and Google as the providers it is working with. Provider API keys are bearer credentials: whoever holds one can make paid API calls on the owner's account until the key is revoked at the provider, and removing a key from Console does not revoke it. OpenCode has not publicly said how the attacker got in, which system was involved, how many keys were taken or whether they were used, and it described the incident as ongoing. Keys entered only in the local OpenCode CLI or desktop app are not part of this breach, according to Raad. Reports of unauthorized charges on users' provider accounts have appeared in press coverage, but they are users' own claims and OpenCode has not confirmed them.
Which keys should I rotate?
Rotate any OpenAI, Anthropic, Google Gemini API, Google Cloud (service account keys and API keys) credentials that were reachable from affected systems, starting with the ones that can publish code or reach production.