Friday, November 27, 2026

Apps & Consumer

OpenCode breach exposed API keys for 1.4% of users

OpenCode said attackers breached an older system and exposed API keys for 1.4% of users on its Console platform, triggering unauthorized AI-service charges.

The OpenCode logo with subtitle 'The open source AI coding agent' against a dark background.
Photo: OpenCode

OpenCode, an open-source coding agent that rivals Claude Code and Cursor, told users Saturday that intruders had gotten into an aging piece of its infrastructure overnight and pulled credentials belonging to 1.4% of the people who use OpenCode Console, its hosted dashboard for managing the API keys that connect to outside AI providers. Everyone affected got an email that morning; anyone who didn’t hear from the company was not among them.

The company pinned the incident on what it called a large-scale distillation attempt, without detailing how intruders pulled it off; skeptics pushed back, calling it an ordinary breach with no proven distillation angle. OpenCode said stolen API keys can let people in countries with limited access to US models generate the high-volume outputs that kind of attack needs.

Word of the breach spread fast: users flooded Reddit and X with screenshots of spend alerts and charges they hadn’t authorized, some in the hundreds of dollars and a handful topping $1,000. Anthropic and Google each disabled the keys thought to be compromised; OpenAI said it teamed up with OpenCode to get affected accounts working again and to reimburse the usage those stolen keys had run up. OpenCode said it was still processing refunds of its own for the unauthorized charges.

Co-founder Dax Raad said the exposure never reached beyond Console — OpenCode’s open-source editor and command-line tool were untouched — but that the team spent 48 straight hours fending off continued intrusion attempts, leaning on AI agents for round-the-clock defense. Those defensive models, he said, would sometimes balk at inspecting the very malicious code they’d been asked to study, because it tripped their built-in safety filters — a snag that eased only once OpenAI gave OpenCode access to its Daybreak Blue program, built for vetted security work. The same pattern played out at Hugging Face in July, when mainstream AI tools refused to help it dissect logs tied to an intrusion by autonomous agents. David Sacks, co-chair of the President’s Council of Advisors on Science and Technology, wrote on X, “The guardrails backfired.”

Why it matters

The episode shows a widening blind spot for companies without vetted access to less-restricted AI models: the same safety filters meant to stop misuse can also stop defenders from examining the exploits used against them.