OpenCode Breach Exposes API Keys of 1.4% Users After Distillation Attack

astrange · x · 2026-10-18

OpenCode, the popular open-source AI coding harness, confirmed a security breach from a large-scale distillation attack affecting 1.4% of Console users — specifically those with external providers linked. All affected users were notified by email.

Reposting the news, @soupsranjan notes developers' API keys to frontier labs like OpenAI and Anthropic were apparently stored in cleartext and exposed, framing "AI token theft" as one of the fastest-growing fraud vectors: trust takes years to earn but seconds to lose, and AI companies that take security seriously win long-term.

The incident is ongoing; OpenCode says it is working with Anthropic, OpenAI, and Google on remediation.

Related event: OpenCode Hit by Distillation Attack, 1.4% of Console Users' API Keys Compromised(16 posts)→

Original post →

More from coding & agent

coding & agent channel →