OpenCode Console Breach: Revoke Your AI API Keys Before They Cost You

By Eddie Power Oct 20, 2026 in AI News 5 min read
Security AI News AI Agents API Keys OpenCode Data Breach

If you've ever pasted an AI API key into a web app and forgotten about it, this story is your reminder to go and check. OpenCode, the popular open-source AI coding agent, says an intruder reached one of its systems on the night of 16 October 2026 and may have exposed the OpenAI, Anthropic and Google keys some users had saved in its hosted Console. Some of those users now report surprise bills.

What happened

OpenCode is a model-agnostic coding agent you can run in a terminal, a desktop app or your code editor. It also has an optional hosted service called OpenCode Console, where a team can save its own OpenAI, Anthropic or Google key so members can use those models without ever seeing the key.

According to The Hacker News, an intruder reached a legacy OpenCode system on the night of 16 October and may have exposed the provider keys saved in Console. The affected group is 1.4% of Console users, all of whom had an outside provider linked. OpenCode emailed them on the morning of 17 October with the subject "Action Required: Potential provider key breach", telling them to revoke and replace those keys. It said that anyone who didn't get the email wasn't affected.

BleepingComputer reports that the email gives the earliest possible exposure as 17 October, 00:30 UTC (11:30am on 17 October, Melbourne time), says no other data appears to have been exposed, and mentions the possibility of reimbursement for people affected.

Importantly, this is about Console, not the OpenCode app itself. Co-founder Dax Raad wrote on X that the command-line and desktop apps keep provider keys locally on your own machine and those keys "never come to us."

The bills users are reporting

OpenCode's own wording is that the keys "may have been exposed", and it hasn't said any key was actually copied or used. Some users say otherwise, based on their own billing:

  • One user reported his OpenAI key being used for $281 and his Anthropic key for $168, as relayed by The Hacker News from Dealroom.
  • Another put his losses at $1,700 overnight.
  • A Reddit user claimed about $400 of unauthorised Anthropic usage, and another about €200 of Google usage before the project was suspended.

BleepingComputer adds that some users report Google suspended their projects for "abusive activity consistent with hijacked resources". These are users' own reports and haven't been independently verified.

The "distillation attack" angle

OpenCode described the breach as "related to a large-scale distillation attack". Distillation is a legitimate technique for training a smaller model on a bigger model's answers. It becomes an attack when someone pulls those answers in huge volumes without permission, often using other people's keys and accounts so the bill and the bans land on someone else.

Raad said attackers had been hitting OpenCode's systems non-stop for at least 48 hours using AI agents. BleepingComputer reports that OpenCode's own investigation was slowed when the AI models it was using refused requests because of their built-in safeguards, and that things stabilised after it was approved to use OpenAI's Daybreak cybersecurity model on the Saturday. OpenCode hasn't said exactly how the distillation campaign and the breach connect.

Why it matters

An API key is a bearer credential. Whoever holds a copy can run billable requests on your account until the provider revokes it. Two details from The Hacker News are worth remembering:

  • Deleting the key from Console doesn't revoke it. Only the provider can kill it.
  • A Console budget can't cap the damage, because Console only sees requests that go through its own gateway. Someone using a stolen copy goes straight to the provider.

This is the same "denial of wallet" risk I wrote about in x47.c Malware Uses Grok to Stay Hidden and Can Burn Your AI Credits. AI keys are now worth stealing in their own right.

What to do now

If you used OpenCode Console with your own key, follow OpenCode's email and the providers' own guidance:

  1. Revoke the key in the provider's own dashboard (OpenAI, Anthropic or Google Cloud) and create a new one.
  2. Update every app and script that used the old key.
  3. Review usage and billing at the provider for requests you didn't make, going back to at least 16 October, and contact the provider and OpenCode if you find any.
  4. Set a spending limit or alert at the provider.
  5. Give each tool its own key, so a leak does less damage and is easy to trace.

Even if you've never touched OpenCode, it's worth doing a key audit this week. List every service you've pasted a key into, delete the ones you don't use, and put spending caps on the rest.

Homelab angle: where do your keys live?

On a homelab or small server, keep AI keys in environment files that only the service account can read, never in a Git repo and never baked into a Docker image. If you run AI tools in containers, my guide to Docker volumes, networks and Compose secrets shows how to keep keys out of your images and compose files. A quick check: run git log -p | grep -i "sk-" in your projects. If it finds anything, that key needs revoking too.

My take

I don't think the lesson is "never use hosted AI tools". Saving a team key in one place, so nobody ever sees it, is a sensible idea. The lesson is that every place you paste a key is another place it can leak from, and the bill lands on you, not on the service. A low spending cap or billing alert can turn a four-figure surprise into a much smaller problem. Set the caps today; it takes five minutes.

Sources

Watch the short version

This story is covered on Riff's AI Headlines, a YouTube channel with quick, sourced AI and cybersecurity news. Subscribe to Riff's AI Headlines on YouTube to keep up.

Share this article

E
Eddie Power admin

Eddie Power is a full-stack web developer based in Frankston, Victoria, with more than a decade of experience building websites, Laravel and PHP applications and iOS apps. He uses Linux, Windows and macOS every day, self-hosts this blog on a Synology NAS and writes practical guides for all three.

Comments (0)

No comments yet. Be the first to leave one!

Leave a Comment

Comments are moderated and will appear after approval.