HomeTech NewsCybersecurityOpenCode Console Breach Ran Up Charges on Users' AI Accounts

OpenCode Console Breach Ran Up Charges on Users’ AI Accounts

OpenCode, the open-source AI coding agent, says it suffered a security breach linked to what it called a “large scale distillation attack”. The breach affected 1.4% of users of OpenCode Console, the company’s optional online service. OpenCode says the incident is still going on and that it is working with Anthropic, OpenAI and Google to fix it. It has not said exactly what was accessed, but users have since reported unauthorised charges on their linked AI accounts (see the update below).

Update, 19 Oct: users report unauthorised charges as AI companies block keys

Users caught up in the OpenCode Console breach have reported unauthorised charges on their AI provider accounts, TechCrunch reported on 19 October. Some described charges in the hundreds of dollars on individual accounts, and a few said their totals topped $1,000. These figures come from users’ own posts on Reddit and X and have not been confirmed by OpenCode.

The AI companies have moved to limit the damage. Anthropic and Google blocked the API keys they believed were exposed, according to TechCrunch. OpenAI said it worked with OpenCode to get affected API customers back online and refund credits used in the attack. “Our team worked with OpenCode to have their users who are also OpenAI API customers back in business and any credits refunded which would have been drawn in the attack,” OpenAI’s Tibo wrote on X. OpenCode says refunds for unauthorised charges are underway.

OpenCode co-founder Dax Raad has stressed that the problem is limited to the online Console. “Note this is the OpenCode Console, not OpenCode itself, those keys never come to us,” he wrote on X, as quoted by TechCrunch. The open-source app and command-line tool were not affected, he said. TechCrunch reported that the attackers broke into an older system, but OpenCode has not said how they got in or how the keys were stored.

Guardrails got in the way of the response

Raad also described a draining defence. Attackers had been trying to break into OpenCode’s systems nonstop for 48 hours, he said, according to TechCrunch. The AI models his team used for analysis helped at first but then refused to work when the malicious code they were examining tripped safety filters. “[T]hat was a bit frustrating,” he wrote. OpenCode later got access to OpenAI’s Daybreak Blue programme, which gives vetted users models that are less likely to refuse security work, and Raad said that improved the investigation.

The episode drew comment from David Sacks, co-chair of the President’s Council of Advisors on Science and Technology. “The guardrails backfired,” he wrote on X, as quoted by TechCrunch.

OpenCode’s own description of a “distillation attack” remains contested. Some sceptics, TechCrunch reported, argue this was a straightforward breach and that any use of the stolen access for distillation is unproven. The company says the incident is still ongoing, and has told affected users to revoke and replace their keys directly with each provider.

What OpenCode said

The company disclosed the breach in a post on 17 October, via @opencode on X. The post was published at 18:08 UTC (19:08 UK time) as an edit of an earlier version. It reads in full:

“We had a security breach last night related to a large scale distillation attack that impacted 1.4% of OpenCode Console users

We have notified them all this morning via email. If you did not get an email you were not impacted, it was a subset of users who had external providers linked

The incident is ongoing so we cannot share more details at this point but we are working with Anthropic, OpenAI, and Google to remediate”

OpenCode has not given an absolute number of affected users. The 1.4% figure covers users of OpenCode Console only, not everyone who uses the free, open-source OpenCode agent. The company has not said how the attackers got in. TechCrunch later reported that they broke into an older system and that the exposed keys were confined to the Console.

About half an hour later, OpenCode co-founder Dax Raad posted from his personal X account, @thdxr, whose profile says he is “building @opencode”. He wrote: “my personal accounts are being attacked now too”, adding: “whole new world with ai powered hacking”. He did not give details, and it is not clear whether those attempts are connected to the breach.

What OpenCode and the Console are

OpenCode describes itself on its website as “an open source agent that helps you write code in your terminal, IDE, or desktop”. It says it is used by more than 16 million developers a month. That figure is the company’s own.

The OpenCode Console is a separate, optional online service. According to OpenCode’s documentation, it offers team workspaces, access to proprietary and open-source AI models, usage tracking and budget controls. It also offers “Providers for connecting your own provider accounts through the Console gateway”.

What ‘external providers linked’ means

OpenCode says the affected users were “a subset of users who had external providers linked”. Its documentation on Console providers explains what that feature does. Teams can “connect provider accounts you already pay for, such as Anthropic, OpenAI, or AWS Bedrock”, by entering that provider’s API key. “Console stores the credential and serves each provider through its gateway, so members use the models without ever seeing the provider key,” the documentation says. Google is also in the catalogue of providers.

That explains why OpenCode is working with Anthropic, OpenAI and Google. According to TechCrunch, Anthropic and Google have since blocked the API keys they believed were exposed, and OpenAI says it refunded affected API customers. OpenCode has not said how the keys were stored or the full extent of any misuse.

What a distillation attack is

Distillation means training a smaller AI model on the answers of a larger, more capable one, so that it learns to behave in a similar way. Done without permission, it becomes what AI developers call a distillation attack.

Anthropic, writing about its own defences on 12 October, describes distillation attacks as “covert, industrial-scale campaigns to extract the capabilities of one model and replicate them in another, without the authorization of the original model’s developers”. It says they “are often conducted using networks of fraudulent accounts”, and that it has seen “proxy networks that control hundreds of thousands of fraudulent accounts”. Anthropic also says distillers “distribute traffic across Anthropic’s API, third-party cloud platforms, and other inference providers”.

That is Anthropic’s general description. OpenCode has not explained how distillation relates to its breach. Some sceptics, TechCrunch reported, call the framing an overstretch and say the incident was a straightforward breach whose use for distillation remains unproven.

What affected users should know

OpenCode says everyone affected was notified by email on the morning of 17 October, and that users who did not get an email were not affected. According to TechCrunch, OpenCode has told affected users to revoke and replace their keys directly with each provider, and says refunds for unauthorised charges are underway. Anyone who linked provider keys should also check billing and spend alerts with each provider while the investigation continues.

What we don’t know

  • How the attackers got into the older system, and the full extent of any misuse.
  • How many people the 1.4% represents.
  • How the breach is linked to the distillation attack.
  • How many users were charged, and how much in total.

The OpenCode Console breach shows why pooled API keys draw attackers

Whatever the truth of the distillation label, the shape of the incident is familiar. A gateway that stores many customers’ API keys becomes a single, valuable target: one intrusion into an older system can yield working credentials for several of the most expensive AI services on the market. Hiding keys from team members, as the Console documentation describes, guards against careless handling inside a team but not against an attacker who reaches the store itself. The same logic has driven attacks on build pipelines, such as the Gheist campaign against stolen CI tokens and secrets.

The response also showed how much now depends on the model providers. Anthropic and Google cutting off exposed keys, and OpenAI refunding credits, limited the cost to users faster than OpenCode could have managed alone. That co-ordination is a useful precedent for future incidents. So is the friction Raad described, when safety filters stopped models helping defenders examine malicious code, until access to OpenAI’s vetted security programme eased it. For developers, the practical lesson is to treat any key handed to a third-party tool as exposed the moment that tool reports a breach, and to rotate it at the provider rather than in the tool. For the AI companies, the distillation claim will matter most if it is ever substantiated, since Anthropic has already said its new defences cut what distillers harvest from Claude.

Separately, Xint said on 26 October that OpenAI had fixed a flaw that leaked hidden reasoning from its models and paid a $6,000 bounty.

A second AI coding tool has since reported a breach. Warp says attackers exploited a vendor in its infrastructure to reach agent trace and telemetry data, affecting up to about 1% of its users.

Sources

Related stories

Follow @tsnmediahub on X for breaking AI news as it happens.

Follow on X

Share this story

Latest stories

  1. NRC Issues Construction Permit for Long Mott Texas SMRs
    Data Centres & Energy

More in this category

Latest stories

  1. NRC Issues Construction Permit for Long Mott Texas SMRs
    Data Centres & Energy

Explore the TSN Atlas: Every topic we cover, mapped. Click a bubble to dive in.