Skip to content

OpenCode Console breach exposes API keys of 1.4% of users

Short answer

OpenCode says attackers broke into an older system behind its online Console overnight and affected 1.4% of Console users, some of whom stored AI provider API keys there. Unauthorized charges followed, in some cases above $1,000. The open source app and command-line tool were not affected. The incident is ongoing.

What this means for operators

If anyone on your team pasted provider API keys into a hosted workspace of a coding or automation tool, treat those keys as a liability you do not control. Check whether your team used OpenCode Console, and if you did not get an email from OpenCode, the company says you were not affected. Either way, list every place a production key lives, set spend alerts on each provider account, and give each key one job so it can be revoked without stopping everything else. The users who caught this fastest were the ones whose spend alerts fired overnight. A 20-person company with one shared key in a workspace has no way to separate its own usage from an attacker's until the bill arrives.

OpenCode, an open source AI coding agent, said on Saturday that attackers broke into an older system overnight. The company wrote on X that the breach affected 1.4% of users of OpenCode Console, its online platform, where some users keep the API keys they use to reach AI services. It emailed everyone affected that morning, and says users who received no email were not impacted.

What was exposed

The exposed keys were limited to Console workspaces. Co-founder Dax Raad said the open source app and the command-line tool were not affected, and that keys used there never reach OpenCode.

Developers reported spend alerts from OpenAI, Anthropic and Google firing overnight. Some reported charges in the hundreds of dollars on a single account, and a few reported totals above $1,000. Anthropic and Google blocked the keys they believed were exposed. OpenAI said it worked with OpenCode to restore access and would refund its API customers for credits used in the attack. OpenCode says refunds for unauthorized charges are underway.

What is still unclear

OpenCode described the incident as tied to a large-scale distillation attack. It did not explain how that worked. Some skeptics called the framing an overstretch and said it was a plain breach, with use for distillation unproven. The company has also not said how attackers got into the older system, how the keys were stored, or how far the misuse went. It describes the incident as ongoing.

Affected users have been told to revoke their keys and replace them directly with each provider.

The defence problem

Raad said attackers had been trying to get into OpenCode's systems nonstop for 48 hours, so the team kept AI defensive agents running around the clock. The AI models it used to analyse the attack helped for a while, then began refusing when the malicious code tripped their safety filters. OpenCode later got access to OpenAI's Daybreak Blue program, which gives vetted users models less likely to refuse defensive security work. Raad said that improved the team's ability to investigate.

The source notes that Hugging Face reported something similar in July, when commercial models blocked it from analysing logs from an intrusion.

What to do now

  • Find out whether your team used OpenCode Console and whether anyone received the notification email.
  • Revoke and replace any key that was stored there, at each provider.
  • Check provider billing for unexpected usage and turn on spend alerts where they are not set.
  • Inventory where other provider keys are stored in third-party hosted tools.

Source: TechCrunch AI

The tools in this story

  • OpenAI - price, who uses it, alternatives
  • Hugging Face - price, who uses it, alternatives
  • OpenCode - price, who uses it, alternatives
Next step

Discovery Sprint

If AI already runs in one of your processes, the next step is to take that one apart. Thirty minutes, and we say whether the arithmetic is likely to close.

Book the review call

Free 30-minute review call. The sprint is what the call is about.

Fee
$2,500
Length
1-2 weeks

Ends in one of two answers: build this, or do not. The process map, the numbers and the ranked backlog are yours either way.