OpenCode breach: AI API keys exposed, users report charges
OpenCode says a breach of a legacy system hit 1.4% of Console users with linked AI providers. Some report unauthorised OpenAI, Anthropic and Google bills.
LandGadget Newsroom · · 3 min read

On this page
OpenCode, the open-source AI coding agent that lets developers plug in models from different providers, has confirmed a security breach. In a post on X on Saturday, the company said the incident was related to a "large scale distillation attack" and affected 1.4% of OpenCode Console users. The people hit were a subset of users who had external providers linked, and all of them were notified by email. OpenCode said users who did not get an email were not affected.
What was exposed
According to the email, reported by Notebookcheck, someone gained unauthorised access to a legacy system OpenCode was in the process of decommissioning. Third-party API keys stored in users' workspaces, including keys for OpenAI and Anthropic, may have been exposed. An API key works like a prepaid card for an AI service: whoever has it can send requests, and the owner pays.
That is exactly what some users say happened. In a Reddit thread cited by Notebookcheck, one person reported $400 in unauthorised Anthropic charges. Another said Google usage charges had reached about €200 and their project had been suspended for abuse. One commenter received usage alerts from OpenAI and Anthropic before OpenCode's notice arrived. Some users also reported trouble signing in to OpenCode afterwards.
"Distillation" means collecting a large number of answers from an AI model to train another model. OpenCode's wording suggests the stolen keys were used to make such requests at victims' expense, but the company says the incident is still ongoing and it cannot share more yet. It is working with Anthropic, OpenAI and Google to fix the problem.
How it unfolded (times UTC)
16 Oct, night
Breach
OpenCode later says the breach happened the previous night, via a legacy system that was being shut down.
17 Oct, morning
Emails go out
Affected Console users are told that saved provider keys may have been exposed.
17 Oct, 15:18
Reports surface
Security researcher Matt Johansen posts that people's API keys are running up charges.
17 Oct, 18:08
OpenCode confirms
The company confirms the breach publicly: 1.4% of Console users, investigation ongoing.
What to do if you use OpenCode
Even if you weren't affected, it is a good moment to check where your AI keys live. Coding tools are moving fast, as Replit's recent switch of default models shows, and every service you hand a key to is another place it can leak. For some work, running a model locally avoids that entirely; our guide to buying a laptop for local AI explains what hardware you need.
More from Computers & AI
View all →Read next

OnePlus Ace 7's fan blows two ways to keep your hands cool
OnePlus says the Ace 7 series' built-in fan splits its airflow between the chip and the back panel and keeps hot air off your fingers. Why that detail matters.

Switch Sports Resort lands Oct 22: what's in all 12 sports
The Switch 2 exclusive Switch Sports Resort arrives on 22 October with 12 motion-control sports on Wuhu Island, including Skateboarding and Thumb Wrestling.

ALMA's 'cosmic hamburger' shows how giant planets may form
ALMA slices the edge-on disk known as Gomez's Hamburger into layers of gas and dust and spots a clump that may be a giant planet in the making. What it shows.