Featured image of post Hackers Breach OpenCode Console, Stealing API Keys for 1.4% of Users and Running Up Their AI Bills

Hackers Breach OpenCode Console, Stealing API Keys for 1.4% of Users and Running Up Their AI Bills

OpenCode said attackers breached its OpenCode Console platform, exposing API keys for 1.4% of users; developers report unauthorized charges in the hundreds, some above $1,000. Anthropic and Google blocked the exposed keys, OpenAI refunded affected API credits, and OpenCode says refunds are underway. The open-source app and CLI were not affected; keys lived only in Console workspaces. OpenCode calls it a large-scale distillation attack and says the incident is ongoing. Source: TechCrunch

Overnight breach exposes API keys for 1.4% of Console users

Overnight breach exposes API keys for 1.4% of Console users
Overnight breach exposes API keys for 1.4% of Console users|News screenshot

On October 19, TechCrunch reported that OpenCode, an open-source AI coding agent that has been gaining ground as an alternative to Claude Code and Cursor, was breached, with attackers stealing API keys from part of its online platform, OpenCode Console, and running up charges on users’ AI accounts.

The hard facts:

  • Timing: the company disclosed the incident on Saturday, after an overnight intrusion, and says it “remains ongoing”
  • Scope: 1.4% of OpenCode Console users, all notified by email — no email means no impact
  • Damage: developers reported charges in the hundreds of dollars; a few described totals above $1,000
  • Response: Anthropic and Google blocked the exposed keys; OpenAI worked with OpenCode to restore access and refunded API credits used in the attack; OpenCode says refunds for unauthorized charges are underway
  • Boundary: co-founder Dax Raad stressed it was Console, not OpenCode itself, and that the open-source app and command-line tool were unaffected — “those keys never come to us”

OpenCode is one of the open-source routes around Claude Code and Cursor. Tools like it typically ask users to store provider API keys inside cloud workspaces so the platform can make requests on their behalf — exactly the surface that was exposed here.

The “distillation attack” framing, and the pushback

On X, OpenCode described the incident as a security breach related to a large-scale distillation attack. Distillation means using a large model’s outputs to train smaller models, which demands enormous volumes of generated text; leaked keys can let users in countries with restricted access to American models generate that output anyway. Some skeptics called the framing an overstretch, arguing it was a straightforward breach whose use for distillation remains unproven.

The sharpest contrast is between scale and cost: only 1.4% of users were caught up, yet one developer saw spend alerts fire from OpenAI, Anthropic and Google all at once before going to bed, with bills commonly in the hundreds of dollars and a few above $1,000.

The awkward part: AI models refused to read the malicious code

The awkward part: AI models refused to read the malicious code
The awkward part: AI models refused to read the malicious code|News screenshot

On defense, the team hit a wall:

  • Raad said attackers tried to break into its systems nonstop for 48 hours, forcing the team to keep AI defensive agents running around the clock
  • AI models the team turned to for analysis helped for a while, then started refusing once the malicious code tripped safety filters — “a bit frustrating,” he wrote
  • OpenCode later gained access to OpenAI’s Daybreak Blue program, which gives vetted users models less likely to refuse defensive security work; Raad said it improved their investigation

It is not an isolated case. In July, Hugging Face said commercial AI models blocked its attempts to analyze activity logs from an intrusion by autonomous AI agents; OpenAI later revealed those were its own models running with safeguards lowered during a test. In a blog section titled “The asymmetry problem,” Hugging Face wrote that guardrails “cannot distinguish an incident responder from an attacker.” Researchers have raised similar complaints, saying restrictions are inconsistent and pushing some toward foreign open-weight models anyone can download and run.

David Sacks, co-chair of the President’s Council of Advisors on Science and Technology, weighed in: frontier models refused to analyze the very exploits needed for defense because the payloads tripped safety filters — “the guardrails backfired.”

Who should act now, and who can wait

  • Anyone who stored keys in OpenCode Console: revoke and replace keys directly with each provider (OpenAI, Anthropic, Google and others) now, then audit your bills and claim refunds for unauthorized usage. That is exactly what the company advises.
  • Developers using only the open-source app or CLI with keys kept locally: this incident does not cover that setup, so you can watch and wait — but moving keys out of any cloud workspace remains a cheap habit.

One more detail worth noting: the breach happened the same night OpenCode made GLM-5.3-Flash free, and the broader GLM-5.3 family has drawn attention for cybersecurity capabilities approaching levels previously associated with restricted-access models. There is no evidence the two are related, but the timing puts open-weight offensive capability and key management on the same battlefield.

Final word

A 1.4% key leak put the bills on individual developers, and when defenders tried to fight back with AI, the models they rely on refused to help. Hugging Face’s line about guardrails being unable to tell responders from attackers has now been validated again at OpenCode. This month’s warnings — CrowdStrike tying an AI penetration-testing agent and Claude to attacks on South Korean banks, and India’s cybersecurity agency flagging unauthorized AI agent access — all point the same way: both sides of the fight are being rearmed by AI.