Hackers Breach OpenCode Console, Running Up Charges on Users' AI API Keys

Attackers hit OpenCode Console, affecting 1.4% of its users who stored API keys there; some saw charges in the hundreds of dollars. Anthropic and Google blocked exposed keys, and OpenAI refunded credits. The open-source CLI was not affected.

October 19, 2026

OpenCode said a security breach “related to a large-scale distillation attack” impacted 1.4% of OpenCode Console users, who were notified by email. Developers posted spending alerts and unauthorized charges on Reddit and X, with some reporting hundreds of dollars and a few above $1,000. Some skeptics said it was a straightforward breach and that the distillation link is unproven.

Anthropic and Google blocked the API keys they believed were exposed; OpenAI worked with OpenCode to restore access and refund credits used in the attack. OpenCode says refunds are underway. Co-founder Dax Raad said only keys stored in the Console were exposed; the open-source app and CLI were not affected.

Why it matters

  • Key hygiene: Set spend limits and rotate any API key you’ve pasted into a third-party dashboard.
  • Content angle: A 60-second “protect your AI API keys” checklist reel.

Source

Summary written by FoxaMind with AI assistance from the source above. Check the original for full details.