OpenCode disclosed a security incident affecting a subset of users who connected external AI providers to its Console. For those users, the immediate concern was practical: a leaked provider API key can be used to run requests that are charged to the key owner's account.
The original report describes developers finding unexpected usage and rapidly depleted balances. OpenCode's public notice puts the affected population at 1.4% of OpenCode Console users, specifically a subset with external providers connected. That figure does not mean that 1.4% of every OpenCode installation, or every OpenAI, Anthropic, or Google customer, was affected.

Unexpected Charges Led to a Public Breach Notice
The incident first became visible through user reports of unusual API consumption. Xinzhiyuan describes claims of approximately $400 in unexpected Anthropic usage, another loss exceeding $1,700, and a Google Cloud billing complaint exceeding $1,000. These are reported individual accounts, not an independently audited total of the incident's financial impact.
The distinction between a provider balance and a tool subscription matters here. A third-party tool can hold credentials issued by another company; requests made with those credentials are billed under that provider account. Closing the tool does not prevent someone else from using a copied credential.
OpenCode subsequently acknowledged the breach and said it was working with Anthropic, OpenAI, and Google on remediation. Its notice also said affected users had been contacted by email. Users should inspect the relevant workspace and provider account rather than infer exposure from the tool's name alone.
A Legacy System Was Identified in the User Notification
The notification reproduced in the source says unauthorized access involved a legacy system being decommissioned. It warns that third-party provider keys saved in a workspace may have been exposed and instructs users to replace them through the issuing providers' dashboards.

That wording identifies the credential risk, but it does not by itself establish the complete attack path. The reviewed notice does not provide enough technical detail to determine the original vulnerability, every accessed data category, or the full timeline of unauthorized use.
The source also reproduces a post in which cofounder Dax Raad described an attack against his personal account. That is part of the incident reporting, rather than independent evidence that every account experienced the same compromise.
Why the Notice Mentions a Distillation Attack
OpenCode described the incident as connected to a large-scale distillation attack. In this context, distillation generally means using a model's outputs as material for developing another model. Stolen API credentials could let an attacker generate that material while shifting the cost onto other accounts.
This explains why an attacker might consume credits quickly instead of reselling keys. It remains the company's characterization of the incident: the public notice reviewed here does not identify the attacker or establish exactly what happened to the generated outputs.
It also does not establish that private conversation histories were stolen. The confirmed concern in the notice is the security breach and affected connected-provider users; broader data-access conclusions require further evidence.
Revoke the Old Keys Before Restoring Applications
For a user whose provider key may have been exposed, the source's recovery sequence is clear:
- Open the issuing provider's official dashboard. Identify the affected project or account and the keys connected to the OpenCode workspace.
- Revoke the potentially exposed keys. A password change is a separate action and does not replace explicit key revocation.
- Create replacement credentials where needed. Give each application only the access it needs, using project restrictions or key restrictions when the provider supports them.
- Update legitimate applications. Replace the old credentials in the applications, deployment secrets, and integrations that depended on them.
- Review usage and billing. Check the incident window for unexpected model requests, spending, automatic top-ups, or other account changes.
- Preserve the evidence and contact support. Keep usage exports, timestamps, notifications, and relevant charges for the provider's investigation and any billing request.
Build a showcase site and grow leads in minutes
Describe your idea once, and We0 AI can generate a showcase site, pages, and CMS, then help you attract customers and traffic after launch.
One complete project generation for free registration
Best for trying one complete generation flow and seeing a first project draft quickly.
Deleting a key from OpenCode's configuration only removes that copy. It does not invalidate another copy already obtained by an attacker. Revocation must happen at the service that issued the credential.
The original report says Anthropic had revoked suspected exposed Claude API keys, citing a public response from Lydia Hallie. A user should still verify the state of their own credentials and other connected providers; that report is not a guarantee that every compromised key across all services has been disabled.
FAQ
What part of OpenCode was affected?
OpenCode's public notice refers to its Console and a subset of users with external providers connected. It gives the affected share as 1.4% of Console users, rather than all users of the open-source coding agent.
Does changing my password stop use of a leaked API key?
Do not assume that it does. Revoke the exposed credential through the issuing provider and then update the applications that should retain access.
Is deleting the key from my local settings enough?
No, removing a local setting does not invalidate a credential held elsewhere. The key needs to be revoked by the provider that issued it.
Were every user's chat history and files stolen?
The reviewed public notice does not establish that conclusion. It identifies a security breach affecting connected-provider users, while the reproduced email specifically warns about provider keys saved in workspaces.
Will the provider refund unauthorized charges?
The source does not establish a universal refund policy for this incident. Preserve the relevant billing and usage evidence and ask the provider to investigate the account-specific charges.
What does the distillation explanation actually confirm?
It records how OpenCode described the attack's connection to model-output collection. It does not independently establish the attacker's identity, the training pipeline, or the eventual use of every output generated with affected keys.
Related Tools
- OpenCode: The open-source coding agent whose Console is the subject of the incident.
- Google AI Studio: Google's interface for managing Gemini API access and keys.
- Claude Console: Anthropic's developer console for API credentials, usage, and billing.
Related Links
- Original BAAI Hub report: The supplied Chinese account and its supporting screenshots.
- OpenCode incident notice: The company's statement about the affected Console-user subset.
- OpenCode documentation: Official documentation for the coding agent.
- OpenCode provider configuration: Official information about connecting model providers.
- Gemini API key documentation: Google's guidance on Gemini credentials and key restrictions.
- OpenAI API key safety guidance: Official advice for protecting and rotating API credentials.
Summary
OpenCode reported a breach affecting 1.4% of Console users, limited to a subset with external providers connected. The resulting risk is that exposed provider credentials can be used to generate charges on someone else's account.
For a potentially exposed key, the essential action is provider-side revocation, followed by application updates and a review of usage and billing.
