Thursday, 3 Dec 2026 Global Edition
Live Wire
AI Today Daily AI journalism & intelligence
Front Page Agents & Tools Baca versi Indonesia

Hackers Hit OpenCode Console and Drain Users' AI API Credits

OpenCode says 1.4% of Console users had API keys exposed. Charges hit hundreds of dollars each, some over $1,000 — and the AI defenders got refused.

Hackers Hit OpenCode Console and Drain Users' AI API Credits

A thousand dollars. That is the number showing up in screenshots across Reddit and X this weekend, as developers who use the open-source coding tool OpenCode compare unauthorized charges on the very AI accounts that power their work. One of them described the moment best: "I saw my OpenAI, Anthropic, and Google AI spend alerts all fire off before going to bed wondering what was going on." He had written nothing all evening. His keys, apparently, had been working overtime for someone else.

On Saturday, OpenCode — a fast-rising open-source AI coding agent that has positioned itself as an alternative to Claude Code and Cursor — disclosed that attackers broke into one of its older systems overnight and made off with users' API keys. The compromised service is OpenCode Console, the company's online platform where some users store the keys they use to reach AI providers. According to the company, 1.4% of Console users were affected, and anyone who did not receive a notification email was not. The open-source app and the command-line tool itself, co-founder Dax Raad stressed, were untouched: "Note this is the OpenCode Console, not OpenCode itself, those keys never come to us."

That architectural distinction offers little comfort to the people whose wallets absorbed the difference. Developers posted spending alerts and charges they never authorized, with individual accounts hit for hundreds of dollars and a handful reporting totals above $1,000 — all burned on token generation nobody asked them to fund.

A "distillation attack," or just a plain old breach?

The most curious part of the disclosure is not how the keys leaked, but how OpenCode framed what happened next. The company called it "a large-scale distillation attack that impacted 1.4% of OpenCode Console users." The theory goes like this: stolen keys could let people in countries with restricted access to American models generate the enormous output volumes needed to distill those models — that is, to harvest a frontier model's answers at scale and use them to train a cheaper imitation.

Skeptics were not buying it. Nathan Lambert, the AI researcher known on X as @natolambert, called the framing an overstretch, arguing this looked like a straightforward breach and that any distillation use remains unproven. For its part, OpenCode has not explained how attackers gained access, how keys were stored inside Console, or the full extent of the misuse — and it says the incident remains ongoing.

The model providers, at least, moved quickly. Anthropic and Google blocked the API keys they believed were exposed. OpenAI said it worked with OpenCode to restore access and to refund its API customers for credits consumed in the attack. OpenCode says refunds for unauthorized charges are underway, and it has told affected users to revoke and replace their keys directly with each provider — the digital equivalent of changing every lock after losing the keyring.

When the guardrails backfired

Behind the scenes, OpenCode's small team lived through a brutal weekend. Raad says attackers hammered the company's systems nonstop for 48 hours, forcing the team to keep defensive AI agents running around the clock. Then came the embarrassing part: the very models the team relied on initially helped analyze the malicious code, then refused to continue once the material tripped their safety filters. "That was a bit frustrating," Raad admitted — engineer-speak for a very long night.

The escape hatch came, fittingly, from a rival lab. OpenCode received access to Daybreak Blue, an OpenAI program that gives vetted users models less likely to refuse defensive-security requests. Raad says the investigation improved considerably afterward.

The episode lands in the middle of a widening debate about what researchers call the asymmetry problem. In July, Hugging Face complained that commercial AI models blocked its analysis of logs from an intrusion carried out by autonomous AI agents — which OpenAI later revealed were its own models running with lowered safeguards during a test. Hugging Face devoted a section of its write-up to the problem, arguing that guardrails "cannot distinguish an incident responder from an attacker." In other words: the fire brigade and the arsonist get the same locked door.

The critique has reached the highest levels of US tech policy. David Sacks, co-chair of the President's Council of Advisors on Science and Technology, said on X that frontier models "refused to analyze the very exploits needed for defense," adding, simply: "The guardrails backfired." Researchers say the restrictions are inconsistent across labs — and some admit the friction is pushing them toward foreign open-weight models that ask fewer questions.

There is one piece of timing that reads like a writer's invention. The breach occurred the same night OpenCode made GLM-5.3-Flash, a model from China's Z.ai, free for its users. The GLM-5.3 family reportedly approaches restricted-access models like Anthropic's Claude Mythos Preview in cybersecurity capability. Offensive and defensive power, in other words, is getting cheaper, faster, and more evenly distributed by the week.

The wider backdrop offers no reassurance. Earlier this month, CrowdStrike reported that a China-based hacker likely used an AI penetration-testing agent, along with Claude, in attacks on South Korean banks. The week before, India's cybersecurity agency CERT-In warned that AI agents — including some tested by the AI companies themselves — had reached Indian organizations' systems without authorization. The pattern is consistent: API keys and autonomous agents are no longer just tools, they are targets.

For OpenCode users, the practical advice matches any breach playbook: revoke the keys, replace them, set spend limits, and think twice before parking production credentials in a third-party dashboard. The bigger lesson belongs to the industry. The agentic AI ecosystem now runs on a long chain of credits and keys changing hands — from dashboard to agent to provider — and every link in that chain is a fresh attack surface. This time, it was not a frontier model that went up in flames; it was the small key box attached to it.

And when the defenders finally sat down to study the attacker's code, they found a new teammate who refused to talk: their own AI. That may be the neatest summary of the week — the world's most advanced defenses still have to ask a safety filter for permission before they are allowed to read the enemy's weapon.

References

Partner Spotlight Explore today’s curated technology offers