Details may change as reporting changes. Information comes from the linked sources, and we do not guarantee it is complete or current.
In plain English
An API key is like a hotel key card that also works as a credit card. Anyone holding it can use the service and the bill goes to the owner. OpenCode runs an optional online service called Console where some people stored those keys so their coding tool could use them.
Attackers broke into an older part of that service. They did not need to guess anyone's password. The keys were sitting inside the place they got into, so they took them and used them on AI providers like OpenAI, Anthropic and Google. The owners found out when their spending alerts went off.
The takeaway: a pile of other people's keys in one place is an attractive target, and old systems nobody is watching are where attackers like to go.
Words used here
- API key
- A secret code that lets software use a paid service on your account.
- Revoke
- Cancel a key so it stops working immediately, like cancelling a lost bank card.
- Distillation
- Using a large volume of one AI model's answers to train another model. OpenCode used this word; how it applied here was not explained.
What happened
OpenCode, an open source AI coding agent, said attackers broke into an older system overnight. About 1.4% of users of its online platform, OpenCode Console, were affected. Console is where some users store the API keys they use to reach AI services.
Developers reported spending alerts and unauthorized charges across several AI providers. Some reported charges in the hundreds of dollars, and a few reported totals above $1,000.
OpenCode linked the incident to a "large-scale distillation attack" but did not explain how. Some commentators called that framing an overstretch and said it looked like an ordinary breach. That disagreement is analysis, not established fact.
How it unfolded
- Overnight
Attackers access an older system. Users' spending alerts start firing.
- The next morning (a Saturday, per TechCrunch)
OpenCode posts about the breach and emails affected users. People who got no email were not affected, according to the company.
- Following hours
Anthropic and Google block keys they believed were exposed. Users are told to revoke and replace keys directly with their AI providers.
- October 19, 2026
TechCrunch publishes its report.
Who was affected
About 1.4% of OpenCode Console users, per the company. The open source coding tool itself was not the thing that was broken into, according to what was reported.
What the response was
- OpenCode emailed the affected users.
- Users were told to revoke and replace their keys at each provider.
- Anthropic and Google blocked keys they believed were exposed, per TechCrunch.
- OpenCode said refunds for unauthorised charges were underway. OpenAI said it worked with OpenCode to restore access and refund customers for credits used in the attack, according to TechCrunch.
What went wrong
- An older system that still held sensitive keys was reachable.
- Keys for many different providers were stored in one place, so one break-in exposed many accounts.
- Many users had no spending limit, so abuse turned into real charges quickly.
What worked
- OpenCode disclosed quickly and emailed the people who were affected.
- The instruction was simple and correct: revoke and replace the key at the provider.
- Some providers acted on their side to block keys they believed were exposed.
What a small team should do differently
- Switch off or remove old systems nobody uses anymore.
- Do not store other people's keys unless you truly must. If you must, protect them like cash.
- Put a spending cap and an alert on every AI provider account.
- Practice revoking a key so you can do it in minutes.
What you can do today
- Open each AI provider you use and set a monthly spending limit and an email alert.
- List where each API key is stored (a file, a tool, a password manager). If you cannot answer, that is your first job.
- Use a separate key for each tool so you can cancel one without breaking everything.
Official help for the platforms involved
The lesson to take away
A key is a blank cheque with your name on it. Know where each one lives, cap what it can spend, and be able to cancel it fast.
Sources
- TechCrunch: Hackers hit AI coding tool OpenCode, running up charges on users' AI accountsTechCrunch, Oct 19, 2026
Finished this one?
Add it to What I learned and earn 40 Trust. You can open your list from the badge at the bottom of the page.