Technology reviews & practical guides
An intruder reached a legacy OpenCode Console system and stole third-party AI provider keys from 1.4% of Console users, who woke up to hundreds of dollars in rogue usage. Here is what happened, how the providers responded and what to do now.

OpenCode, the open-source AI coding agent, says an attacker broke into a legacy part of its hosted Console service on the night of 16-17 October 2026 and walked away with API keys that users had saved for OpenAI, Anthropic and Google. Some of those users woke up to hundreds of dollars of usage they never ran.
The company calls it a "large scale distillation attack". The label is contested, the root cause has not been published and the incident was still described as ongoing over the weekend. What is clear is the lesson for anyone who parks a provider key in a hosted gateway: the key is only as safe as the weakest system that stores it.

OpenCode posted on X on Saturday 17 October at 18:08 UTC: "We had a security breach last night related to a large scale distillation attack that impacted 1.4% of OpenCode Console users." It said every affected user had been emailed that morning, that anyone without an email was not affected, and that it was working with Anthropic, OpenAI and Google to remediate.
The email, reported under the subject "Action Required: Potential provider key breach", was more specific: "We identified unauthorized access to a legacy system that we were in the process of decommissioning. Third party provider keys (eg OpenAI, Anthropic) saved in your workspace may have been exposed." Recipients were told to revoke and replace those keys in each provider's dashboard, update any application that used them and review recent usage.
BleepingComputer puts the earliest exposure at 00:30 UTC on 17 October. TechCrunch, BleepingComputer and Infosecurity Magazine all reported the breach on Monday 19 October. As of 20 October OpenCode had not named the attacker or published a post-mortem.
OpenCode says it is used by more than 16 million developers a month and has over 208,000 GitHub stars. Most of them run the open-source agent locally, and that is not what was breached. Co-founder Dax Raad stressed the point on X: "note this is the OpenCode Console, not OpenCode itself, those keys never come to us." A key you configure in the local app stays on your machine.
Console is OpenCode's optional hosted service. Its Providers feature lets a team "connect provider accounts you already pay for, such as Anthropic, OpenAI, or AWS Bedrock" and share those models across a workspace. Console stores the credential and serves each provider through its gateway, so members never see the raw key. The intruder reached a legacy system that was being retired, not, as far as OpenCode has said, the current gateway itself.
Affected: the 1.4% of OpenCode Console users who had linked external provider keys. Not affected: people using the open-source OpenCode app or CLI with locally configured keys. No absolute number of victims has been disclosed.
The first sign for many victims was a billing alert. Developer Colin Parsons said his OpenAI key was "pounded for $281 of usage, starting at 2am eastern" and his Anthropic key ran up $168 over the same window, more than $400 overnight on keys he used only in OpenCode. He also noticed OpenCode's Discord filling with bot sign-ups at the same time. A widely shared post cited another user at $1,700.
Chris Sinco said his OpenAI, Anthropic and Google AI spend alerts all fired overnight, but "only Google went ahead and suspended the project for suspicious activity". Another user, Alex Spinu, posted screenshots of his Google Cloud project being suspended after the breach. These figures are user reports, not numbers from OpenCode or the providers.
Raad also said the attackers had been "non stop trying to attack our systems for the past 48 hours" and appeared to be running AI agents around the clock, which forced OpenCode to harden everything in response.
Distillation usually means harvesting a model's outputs at volume to train a cheaper copy. Stolen API keys would be a way to pay for that harvesting with someone else's money, which may be what OpenCode means. But the company has not published evidence for the framing, and AI researcher Nathan Lambert was openly sceptical: "There's something very odd going on with 'distillation' if a cyber attack to steal api keys is looped under the same term."
Whatever the motive, the mechanics for victims were the same as any credential theft: a valid key used by someone else, billed to the owner until it is revoked.

One detail has turned the breach into a policy talking point. Raad said frontier models OpenCode used to investigate "did quite a bit and then started refusing" partway through the incident, and that things improved once the team got access to Daybreak Blue, which OpenAI's Tibo describes as its "cyber permissive setup for defense" that defenders can request.
David Sacks seized on it, arguing that OpenCode, and Hugging Face before it, "hit the same wall mid-attack" when safety filters blocked analysis of the exploits needed for defense, and that "the guardrails backfired". That is his opinion, but the trade-off is real: attackers using agents do not wait for a model to change its mind.
OpenCode Console has monthly budget caps for workspaces, members and service accounts, and requests fail with HTTP 429 once a cap is reached. Those caps only govern traffic through Console. A thief using your raw key directly at OpenAI, Anthropic or Google bypasses them entirely, so only provider-side limits and alerts contain the damage.
Hosted gateways that hold a team's provider keys are convenient: one place to share models, track spend and hide credentials from individual members. They are also a single place to steal many keys at once. OpenCode's breach came through a system it was already retiring, a reminder that old infrastructure keeps its secrets until it is actually switched off.
It follows the GhostAction campaign reported here on 12 October, which also targeted cloud and AI keys. For developers the takeaway is the same: treat AI provider keys like cloud root credentials, scope and cap them at the provider, and rotate them the moment a service that held them reports a breach.
More in Tech News
Browse Tech News