Security ·

OpenCode breach: API keys stolen, some users hit with bills over $1,000

What happened

Attackers got into a legacy system of OpenCode Console, the online platform of the popular open-source coding agent, and stole the OpenAI, Anthropic and Google API keys that users had stored there. 1.4% of Console users were affected. Some saw unauthorized charges of several hundred dollars, and a few over $1,000. The app and CLI themselves were not affected, since keys used there never reach OpenCode's servers. OpenCode claims the attack was meant for distillation, i.e. copying models, but that is unproven so far.

Why it matters

If you've ever stored an API key in the cloud anywhere, now is the time to rotate it and set a spending limit with each provider. OpenCode says refunds are underway, and OpenAI promises to refund credits spent in the attack.

Sources

More from this brief