The most useful thing OpenCode said about its breach was easy to miss: the stolen keys were not OpenCode's. They belonged to its users, who had pasted them into a web console so a coding agent could call OpenAI, Anthropic and Google on their behalf. Someone got into a leftover system, and the keys went with it.
What is known
OpenCode's maker, Anomaly Innovations, disclosed on 17 October that attackers had reached a legacy system it was in the middle of decommissioning. Infosecurity Magazine reports that about 1.4% of OpenCode Console users were affected, only those who had linked outside providers, and that keys for OpenAI, Anthropic and Google may have leaked. TechCrunch adds that users saw spending alerts and unauthorised charges, mostly in the hundreds of dollars and a few above $1,000. Anthropic and Google blocked the keys they thought were exposed; OpenAI worked with OpenCode to restore access and refund credits used in the attack. Co-founder Dax Raad stressed that the open source CLI and desktop app were not touched, because keys entered there never reach the company.
Plenty is still unexplained. The company has not said how the attackers got in or how the keys were stored, and it calls the incident ongoing. It has described the activity as a "large-scale distillation attack", a label some outside observers dispute, arguing that it looks like an ordinary credential theft with billable side effects. Either way, the bill landed on customers.
Why this keeps happening
Every hosted developer tool that proxies model calls ends up holding a pile of keys that are cheap to monetise: they spend money immediately, they rarely have a spending cap and the owner may not check the dashboard for weeks. They also tend to live in the one system the vendor is least careful about, because it is the old one. Decommissioning is a security project as much as a clean-up, and half-finished retirements are where this sort of exposure sits.
If your team uses AI coding tools
- Ask each developer which third-party consoles hold provider keys. Include personal accounts used for work, which is where the surprises are.
- If anyone used the OpenCode Console, rotate those provider keys now rather than waiting to see whether an email arrives. Then review usage for the past week and ask each provider for a refund if it looks wrong.
- Issue one key per tool and per person, with a monthly spend cap and a restricted model list. A leaked key then costs a bounded amount and tells you whose it was.
- Route shared team usage through a gateway you control so the provider keys stay in your vault and developers hold short-lived tokens.
- Switch on billing alerts at each provider and send them somewhere a person reads.
For vendors reading this
Inventory your own legacy systems. If something is "being decommissioned", give it an owner, a date and a check that it no longer holds customer secrets. We help teams build exactly this kind of key governance; write to sales@halfteck.com if that would be useful.