Security Guides

OpenCode Console Breach (October 2026, 1.4% of Console Users): AI Provider API Keys Possibly Exposed, and What to Do

OpenCode says a breach on October 17, 2026 hit 1.4% of OpenCode Console users who had external AI providers linked. Which keys to revoke and what to check.

Published 2026-10-31 Updated 2026-10-31 Last verified 2026-10-31 10 min read
On this page

For: people who use OpenCode Console, the hosted service of the open-source AI coding agent OpenCode, especially those who linked API keys from external AI providers in a Console workspace. This article is based on OpenCode's official X post, with details from the company's email and statements as reported by news outlets, and does not cover attack techniques.

Developing: this article will be updated as the organisation publishes more

Who is affected

people who use OpenCode Console, the hosted service of the open-source AI coding agent OpenCode, especially those who linked API keys from external AI providers in a Console workspace.

Confirmed so farSee the table ↓
  • Share of Console users impacted
  • Who was impacted
  • Notice to affected users

Listed as possibly affected

  • External AI provider keys stored in Console workspaces
Not yet confirmed
  • How the attacker got in
  • How many keys were exposed and how they were stored
  • How far the keys were misused
1 more
  • Conditions for refunds
What to do nowSee the steps ↓
  1. Check whether you received OpenCode's email
  2. Revoke linked AI provider keys at each provider
  3. Check usage and billing from October 17
2 more
  1. Set limits at the provider before using the new key
  2. If you were charged, keep records and contact both companies
Last checked
As of October 31, 2026
Follow-up plans and what we checked

The October 17 post says: "The incident is ongoing so we cannot share more details at this point." As of October 31, no further official statement on this incident was found on the company's status page or in a web search.

What OpenCode Console users should do today

1

Check whether you received OpenCode's email

OpenCode says it emailed every affected user on the morning of October 17, 2026, and that users who did not get an email were not impacted. Search your inbox, including spam, for a message from OpenCode around that date.

Do not use links in emails or messages claiming to be about this incident. To check your account, open OpenCode Console from a bookmark or by typing the address yourself.

2

Revoke linked AI provider keys at each provider

If you got the email, revoke every external AI provider key you had stored in OpenCode Console. According to news reports, this is what OpenCode told affected users. Do it in the provider's own dashboard: deleting the key from OpenCode does not stop a copy someone already has.

If you did not get the email but had keys linked in Console and want to be sure, revoking and replacing them costs little. Update every place that used the old key so your own tools keep working.

3

Check usage and billing from October 17

In each provider's dashboard, look at usage and charges from October 17, 2026 onward. According to a news report, OpenCode's email gave 00:30 UTC on October 17 as the earliest possible exposure. Look for spikes, unfamiliar models and requests at hours you were not working. A spending cap set inside OpenCode does not limit requests made directly to the provider with a stolen key.

For what happens when a provider detects abuse on a stolen key, see stolen API keys and account bans.

4

Set limits at the provider before using the new key

Where the provider offers them, set a monthly spending limit and a usage alert on the account or project, and give the new key only the permissions and projects it needs. If the new key leaks, the damage stops at the limit.

5

If you were charged, keep records and contact both companies

According to news reports, OpenCode said refunds for unauthorised charges were underway, and some providers blocked keys or refunded credits used in the attack. Keep screenshots or exports of the usage records, then contact OpenCode and the provider through their official support pages. Share only masked key values.

What happened (from OpenCode's post and news reports)

OpenCode's official X account (@opencode, linked from opencode.ai) posted the following on October 17, 2026. Details beyond that post come from news reports of the company's email and statements, and are marked as such.

  1. Night of October 16–17, 2026

    A security breach affecting OpenCode Console (company). According to a news report of the email, the earliest possible exposure was 00:30 UTC on October 17.
  2. Morning of October 17

    OpenCode emails all affected users (company).
  3. October 17

    OpenCode posts on X that 1.4% of Console users were impacted and that the incident is ongoing.
  4. October 19

    News outlets report the email's contents and statements by the company, including that the open-source app and command-line tool were not affected.
  5. As of October 31

    No further official statement found on the company's status page or in a web search.
1.4%
OpenCode Console users impacted (company)
Emailed
All affected users on October 17 (company)
Not affected
Open-source app and CLI (co-founder, as reported)
Ongoing
Investigation status as of the October 17 post

Linked in OpenCode Console

Keys stored in a Console workspace. The affected users were a subset of these (company); the keys may have been exposed (as reported)

Used only in the local app or CLI

Not affected, because those keys are not sent to the company (co-founder, as reported)

The split depends on where the key was stored, not on which AI provider issued it.

Where keys were and whether they were in scope (per the company's post and news reports)
What is stated (OpenCode, October 17, 2026, and news reports)
What happened
A security breach related to a large-scale distillation attack (company)
Who
1.4% of OpenCode Console users, a subset who had external providers linked. All were emailed; no email means not impacted (company)
What may be exposed
API keys for external AI providers stored in Console workspaces (company email and statements, as reported)
Not affected
The open-source app and command-line tool (co-founder, as reported)
Response
Working with the AI providers concerned to remediate (company). Refunds for unauthorised charges underway (as reported)
Cause
Unauthorised access to an older system, according to news reports. Not explained in OpenCode's post

What is known and what is not

The state as of October 31, 2026. "As reported" means the item comes from news reports of the company's email or statements, not from a published OpenCode notice. When there is a follow-up, the status column will be updated.

ItemWhat has been statedStatus
Share of Console users impacted1.4%Confirmed (company)
Who was impactedA subset of users who had external providers linkedAffected (company)
Notice to affected usersEmail to all of them on the morning of October 17Confirmed (company)
External AI provider keys stored in Console workspacesMay have been exposedPossible (the company's email to users described the keys as exposed, per reports)
Open-source app and command-line toolNot affectedNot included (co-founder, as reported)
Number of users or keysOnly the percentage has been givenNot stated
How the keys were storedNot explainedNot stated
Entry routeUnauthorised access to an older system (as reported); details not releasedUnder investigation
Misuse of keysUsers reported unauthorised charges (as reported)Under investigation
RefundsUnderway, according to news reports; conditions not publishedNot stated

How to read this: the company's own post is short

OpenCode's published statement is a single post. The detail about keys comes from reports of its email. Until the company publishes more, act on the safer assumption: if you linked keys in Console, treat them as exposed.

What an exposed AI provider key can lead to

In general, an exposed AI provider key can be misused as follows. This does not mean all of it happened here.

  • Requests run on your account, so you get the bill. Users reported unauthorised charges in this case, according to news reports
  • The provider may suspend your account or project when it detects abuse, which also stops your own work
  • Large volumes of model output collected at your expense, which is what "distillation" refers to in general
  • Access to anything else the key can reach, such as files or fine-tuned models stored in the same project

A past example: in the Zeabur security incident, the platform said the attacker was mainly looking for API keys it could use directly, especially keys for AI services. This case may not follow the same course.

For teams that use AI coding tools

These are general checks based on what was exposed. They do not assess OpenCode's handling.

  • Give each tool its own key. A separate key for each tool or service means you can revoke one without stopping everything, and you can see in the provider's usage page which tool a spike came from.
  • Set the spending limit at the provider, not only in the tool. A limit inside a third-party tool does not apply to someone using the key directly.
  • Keep a list of where each key is stored. When an incident like this happens, the first question is "which services hold a copy of this key?". A short list makes revoking fast (see: what's actually dangerous about .env and API keys).

Sources (public records)

The facts in this article are based on the public information below. The entry route, which the company has not explained, is not speculated about.

  • OpenCode, official X account (@opencode, linked from opencode.ai), post of October 17, 2026 — x.com
  • TechCrunch, "Hackers hit AI coding tool OpenCode, running up charges on users' AI accounts" (October 19, 2026). Source for the older system, the co-founder's statement, the advice to revoke keys and refunds — techcrunch.com
  • BleepingComputer, "OpenCode hack exposes API keys amid AI distillation attacks" (October 19, 2026). Source for the earliest possible exposure time in the email and users' reports of charges — bleepingcomputer.com

Update history

2026-10-31: First version. Based on OpenCode's October 17 post on X and reports by TechCrunch and BleepingComputer on October 19. As of October 31, no further official statement was found on the company's status page or in a web search. This article will be updated when there is a follow-up.

Latest breaking reports

All breaking reports →

FAQ

QWhat happened at OpenCode?
A

On October 17, 2026, OpenCode said on its official X account that it had a security breach the night before, related to a large-scale distillation attack, that impacted 1.4% of OpenCode Console users. It said the affected users were a subset who had external providers linked, and that the incident was ongoing.

QAm I affected?
A

OpenCode says it emailed every affected user on the morning of October 17, and that users who did not get an email were not impacted. It also says the affected users were those with external providers linked in OpenCode Console. According to news reports, a co-founder said the open-source app and command-line tool were not affected, because keys used there are not sent to the company.

QWhat may have been exposed?
A

According to news reports of OpenCode's email and statements, API keys for external AI providers that users had stored in OpenCode Console workspaces may have been exposed. OpenCode's own X post does not list the data involved. The number of keys and how they were stored have not been disclosed.

QWhat should I do with my keys?
A

Revoke each AI provider key you had linked in OpenCode Console in that provider's own dashboard, then create a new one. According to news reports, this is what OpenCode told affected users. Deleting the key from OpenCode does not stop a copy someone already has. Then check usage and billing at each provider from October 17, 2026.

QWhat is a distillation attack?
A

In general, it means sending a very large number of requests to an AI model and using the answers to train another model. Stolen API keys let someone do this at the key owner's expense. 'Distillation attack' is how OpenCode described the incident. It has not explained the link in detail.

QI was charged for requests I did not make. Will I get a refund?
A

According to news reports, OpenCode said refunds for unauthorised charges were underway, and some AI providers blocked keys they believed were exposed or refunded credits used in the attack. The conditions have not been published. Revoke the key first, keep the usage records, and contact OpenCode and the provider through their official support pages.