OpenCode, the terminal-based AI coding agent from Anomaly Innovations (formerly SST), confirmed a security breach that exposed AI provider API keys stored in OpenCode Console. The company said the incident was “related to a large scale distillation attack” and affected 1.4% of Console users. Affected accounts were notified by email on October 17, 2026.
Key details
- Who is affected: only Console users who had linked external providers to their accounts. The open-source OpenCode client running locally is not described as breached.
- What was exposed: stored third-party API keys for OpenAI, Anthropic and Google saved in affected workspaces.
- How: the company reported unauthorized access to a legacy system that was being decommissioned. It has not explained how attackers got in.
- Status: OpenCode describes the incident as ongoing and says it is working with OpenAI, Anthropic and Google on remediation. It says it has found no evidence so far that other data leaked.
Some users reported unexpected charges on their provider bills after the incident, in one reported case reaching hundreds of dollars. These reports come from users and press coverage; OpenCode has not confirmed how many stolen keys were actually used. The number of accounts behind the 1.4% figure has also not been disclosed.
What to do if you use OpenCode
- Revoke and reissue every OpenAI, Anthropic and Google key you stored in OpenCode Console. Do it directly in each provider’s dashboard, not through links in an email.
- Check usage and billing logs on each provider from October 17 onward for activity you do not recognize.
- Set monthly spending limits or budget alerts on every API account, so a leaked key cannot run up an open-ended bill.
- Update CI jobs, scripts and teammates’ local configs that used the old keys.
Even if you did not get a notification email, rotating keys that were ever pasted into a hosted console is a cheap precaution.
Who should care
Developers and teams that bring their own API keys to third-party coding tools are the main group at risk. A “distillation attack” generally means using someone else’s model access to collect large volumes of outputs, so stolen keys from AI tools are valuable to attackers in a way that goes beyond normal fraud. The cost lands on the key owner’s bill.
How it compares to alternatives
Coding agents differ in where your credentials live. First-party tools such as Claude Code and OpenAI Codex bill through your account with the model maker, so there is no extra party holding a provider key. Bring-your-own-key tools add flexibility and model choice, but every service that stores your key is one more place it can leak. OpenCode’s own documentation also notes that it does not sandbox the agent and recommends Docker or a virtual machine for isolation. For a broader comparison, see our guide to the best AI coding tools.


