580 / 2326

Hackers hit AI coding tool OpenCode, running up charges on users’ AI accounts

TL;DR

OpenCode is an open-source AI coding agent that's become a popular alternative to Claude Code and Cursor. But hackers got into part of its online platform and stole some users’ API keys, and the AI tools it turned to for help kept refusing to look at the malicious code.

Nauti's Take

Open-source agents like OpenCode offer a real advantage because you control costs and models yourself. This case shows the limit: if the platform is compromised, stolen API keys run up charges on your bill.

Anyone using such agents in production should scope keys tightly, set spending limits and inspect logs for unusual token usage.

Sources