← All advisories

VV-039criticalSecret exposure2026-10-17

OpenCode Console breach exposed saved provider API keys

OpenCode said a breach of a legacy system behind its hosted OpenCode Console affected 1.4% of Console users who had linked external providers. Their saved OpenAI, Anthropic and Google keys may have been exposed, and some users reported unauthorized charges, a few of them above $1,000. Providers have blocked exposed keys, and OpenAI and OpenCode say refunds are being handled.

01.

What it is

OpenCode, on X (17 October 2026): “We had a security breach last night related to a large scale distillation attack that impacted 1.4% of OpenCode Console users.” It says it emailed every affected user, that it “was a subset of users who had external providers linked”, and that it is working with Anthropic, OpenAI and Google to remediate.

The email to affected users, as posted on Hacker News, describes “unauthorized access to a legacy system that we were in the process of decommissioning” and says third-party provider keys (e.g. OpenAI, Anthropic) saved in the workspace may have been exposed. It asks users to revoke and replace those keys and review recent usage.

Lydia Hallie of Anthropic’s Claude Code team said Anthropic has “revoked Claude API keys we believe were affected”. On Hacker News, one user reported getting OpenCode’s email alongside one from Anthropic saying their $20 of monthly API credits had been used up.

TechCrunch (19 October 2026): developers reported spend alerts and unauthorized charges on their OpenAI, Anthropic and Google accounts, mostly in the hundreds of dollars per account, with a few describing totals above $1,000. Anthropic and Google blocked the API keys they believed were exposed. OpenAI said it worked with OpenCode to restore access and refund its API customers for credits used in the attack, and OpenCode said refunds for unauthorized charges are underway.

The breach was in OpenCode Console, the hosted service where you can bring your own provider keys. Co-founder Dax Raad said the open-source app and CLI were not affected (“those keys never come to us”). OpenCode hasn't said how attackers got in or how the keys were stored, and calls the incident ongoing.

02.

How to check

  1. Look for an email from OpenCode about a potential provider key breach. OpenCode says users who didn’t get one weren’t affected.
  2. If you ever saved an OpenAI, Anthropic or Google key in an OpenCode Console workspace, check each provider’s usage page for activity you don’t recognise.
  3. A Claude key that suddenly fails to authenticate may be one Anthropic revoked.
03.

How to fix

  1. Revoke every provider key you saved in OpenCode Console and create new ones, even if usage looks normal. Update any apps that used the old keys.
  2. Use a separate key per tool or service, and set spend limits at each provider so one leaked key can’t drain your whole balance.
  3. If you see charges you didn't make, contact the provider's support and reply to OpenCode's email. OpenAI says it is refunding affected API customers, and OpenCode says refunds for unauthorized charges are underway.
04.

Sources

The weekly email

One email a week. Only what changed.

Every new security hole in AI coding tools, MCP servers, app builders and the stacks they generate (Next.js, Supabase, Node, PHP), each with how to check your app and the fix. No roundups of things you already read.

Free, one email a week. Read the latest issue first if you like. One-click unsubscribe in every email. We never sell or share addresses.