The OpenCode Console breach: what happened, and how to rotate your API keys

AINews

The OpenCode Console breach: what happened, and how to rotate your API keys

Black-and-white close-up of a bunch of metal keys on a ring
Photo by George Becker on Pexels

OpenCode says provider keys saved in its hosted Console may have been exposed to 1.4% of Console users. Here's what was reported, who's affected, and the exact steps to revoke and replace your keys.

In this article
  1. What OpenCode itself said
  2. What was reported
  3. If you got the email: rotate your keys now
  4. If you didn't get the email
  5. Why "distillation" is in the story

OpenCode is one of the most-talked-about coding agents on X right now, with about 24,900 posts in our sample this week. The OpenCode Console breach was one of the big OpenCode stories: a Hacker News thread titled "OpenCode Hacked" hit 974 points on Oct 17.

Here's what's confirmed, what's only reported, and what to do if you're affected.

What OpenCode itself said

OpenCode's official statement is a post on X from Oct 17, 2026 (2:08 PM Toronto time):

"We had a security breach last night related to a large scale distillation attack that impacted 1.4% of OpenCode Console users. We have notified them all this morning via email. If you did not get an email you were not impacted, it was a subset of users who had external providers"

That's the only first-party source. Everything below is reported by The Hacker News and BleepingComputer, both on Oct 19.

What was reported

What Console is. As reported by The Hacker News, Console is OpenCode's optional hosted service. A team saves its own OpenAI, Anthropic or Google key there, and Console calls the provider so team members can use the models without seeing the key.

What was exposed. THN says an intruder reached a "legacy system" on the night of Oct 16. It may have exposed those saved provider keys. OpenCode's wording is that keys "may have been exposed". It hasn't said any key was copied or used.

When. As reported by BleepingComputer, the email to affected users puts the earliest possible exposure at Oct 17, 2026, 00:30 UTC. That's 8:30 PM Toronto time on Oct 16. The email subject was "Action Required: Potential provider key breach".

What wasn't affected. THN reports that the OpenCode CLI and desktop apps store keys added on your machine in a local SQLite database. Co-founder Dax Raad wrote that the breach involves "the OpenCode Console, not OpenCode itself."

The damage. Both outlets cite user reports of unexpected charges, from a few hundred dollars up to about $1,700. BleepingComputer says some users had Google Cloud projects suspended for "abusive activity consistent with hijacked resources." It also says OpenCode's notice mentions the possibility of reimbursement. These are users' own accounts, not confirmed totals.

Still unknown. OpenCode hasn't said what the legacy system was, how it was reached, how many keys it held, or how many people 1.4% represents.

If you got the email: rotate your keys now

A provider key is a bearer credential. Whoever holds a copy can run billable requests until the provider revokes it. Deleting the key from Console doesn't revoke it, and a Console budget can't cap use that never goes through Console.

  1. Revoke the key at the provider. Do this in the OpenAI, Anthropic or Google dashboard, then create a new key.
  2. Replace it everywhere. Update every app, script, CI secret and .env file that used the old key.
  3. Check usage and billing for requests you didn't make. Go back to at least Oct 16.
  4. Set a spend limit or alert at each provider.
  5. Give each tool its own key. If one leaks, it does less damage and is easier to trace.
  6. Write things down. Screenshot unexpected charges in case reimbursement is offered.

If you didn't get the email

OpenCode says you weren't affected. It's still a good week to tighten up:

Why "distillation" is in the story

Distillation means harvesting a strong model's answers at scale to train a rival model. Stolen keys let someone do that on another person's bill. OpenCode linked the breach to a "large scale distillation attack" but hasn't explained how the two connect. Until it publishes a fuller write-up, treat that as OpenCode's description, not an established finding.

If you use OpenCode with local models, your keys never leave your machine at all. Our OpenCode local LLM setup guide shows how.

FAQ

Was I affected by the OpenCode breach?

OpenCode said everyone affected got an email on the morning of Oct 17 with the subject \"Action Required: Potential provider key breach\". If you didn't get one, OpenCode says you weren't affected. Only Console users with linked external providers were in scope.

Does this affect the OpenCode CLI?

According to The Hacker News, no. The CLI and desktop app keep provider keys on your machine in a local SQLite database. Co-founder Dax Raad wrote that the breach involves the OpenCode Console, not OpenCode itself.

Is deleting my key from OpenCode Console enough?

No. A provider key works until the provider revokes it. You have to revoke it in the OpenAI, Anthropic or Google dashboard and create a new one.

Will OpenCode refund unauthorized charges?

BleepingComputer reports that the notice to affected users mentions the possibility of reimbursement. It isn't a promise, so document unexpected charges and contact both OpenCode and the provider.

What is a distillation attack?

It's when someone sends a model huge numbers of requests to harvest its answers and train a rival model. Stolen API keys let attackers do that on someone else's bill.

Sources

  1. OpenCode on X (official statement, Oct 17, 2026)https://x.com/opencode/status/2111519637049319818
  2. The Hacker News, “OpenCode Console Breach May Have Exposed OpenAI, Anthropic, and Google API Keys” (Oct 19, 2026)https://thehackernews.com/2026/10/opencode-console-breach-may-have.html
  3. BleepingComputer, “OpenCode hack exposes API keys amid AI distillation attacks” (Oct 19, 2026)https://www.bleepingcomputer.com/news/security/opencode-hack-exposes-api-keys-amid-ai-distillation-attacks/
Matching resources

Matching resources

Newsletter

The Codema publication. Consent is required. You are not subscribed until you confirm from the email, and nothing is stored if email delivery is not connected.