rotateit

All incidents

OpenCode Console breach exposed linked AI provider keys

Disclosed Oct 17, 2026 · updated Oct 28, 2026 · high · Active

OpenCode Console leaked saved AI provider keys.

Are you affected?

The free scanner that answers this opens soon. Until then, the steps below work by hand.

What happened

OpenCode Console leaked saved provider keys. On Saturday 2026-10-17 OpenCode announced a security breach it tied to a large-scale distillation attack, as reported by BleepingComputer. The incident affected Console users who had linked external providers, including Anthropic, OpenAI and Google: 1.4% of OpenCode Console users. OpenCode says the earliest possible exposure of those keys was 2026-10-17 00:30 UTC, that it emailed every affected user, and that users who got no email were not affected. Users reported unauthorized API charges and suspended Google Cloud projects.

Exposure starts
2026-10-17
Exposure ends
Not known yet (OpenCode has not said when the exposure ended)
Confidence
low
Scope
AI provider keys (Anthropic, OpenAI, Google) saved in OpenCode Console by the users OpenCode emailed

What to do, in this order

  1. Anthropic, OpenAI and Google AI keys you saved in OpenCode Console

    These are the keys OpenCode says may have been exposed, and users reported unauthorized charges on them. Advisory inference: create the new key at the provider, then revoke the old one.

    anthropic_api_key, openai_api_key, gemini_api_key

  2. Every other copy of those keys (.env files, CI secrets, deploy platforms)

    Advisory inference. The old value stops working once revoked, so services still holding it fail until updated.

    anthropic_api_key, openai_api_key, gemini_api_key

  3. Review provider usage and billing from 2026-10-17 onward

    Users reported unauthorized API charges and suspended Google Cloud projects (BleepingComputer).

Notes

  • OpenCode says it is working with Google, OpenAI and Anthropic on the incident, and its message mentions possible reimbursement for affected users (BleepingComputer).
  • The source does not say whether OpenCode or the providers revoked the exposed keys. TODO confirm. Advisory inference: treat every key saved in Console as exposed until you have replaced it at the provider.
  • Advisory inference: rotateit cannot see keys stored in OpenCode Console, so it flags nothing for this incident; copies of the same keys in .env files or CI are the ones to update after rotating.
  • TODO link OpenCode's own incident notice once one is on an allowlisted host.

How to tell if you’re affected

  • An email from OpenCode about this incident (OpenCode says users without one were not affected)
  • Unexpected API usage or charges on a provider key saved in OpenCode Console after 2026-10-17 00:30 UTC

Sources

Rotating the keys

Pro, $49 a year when it opens, plans the rotation of each affected key for this incident, in this order. Automatic rotation is in testing and included.

One email when it opens. Stored: your email, whether you confirmed, and when you signed up. We send a confirmation link first.

By hand, free: the steps above.