← All AI News
AI News

OpenCode Console breach: revoke and replace potentially exposed API keys

OpenCode says a breach affected 1.4% of its Console users, a subset who linked external AI providers. Potentially exposed keys should be revoked and replaced at the issuing provider.

Event or announcement
Sources checked

What happened

OpenCode disclosed on October 17 that an overnight breach affected 1.4% of users of Console, its hosted service. It linked the incident to what it called a "large scale distillation attack," without publicly explaining that connection.

Read OpenCode's original announcement in the Sources list below.

Key facts

Who's affected: OpenCode said it notified all affected users that morning and that people who received no email were unaffected. The affected users had external providers linked to Console. The Hacker News reports the email's subject line was "Action Required: Potential provider key breach."

What may have been exposed: Third-party provider keys saved in Console workspaces. The Hacker News reports that OpenCode's notice described unauthorized access to a legacy system on the night of October 16. Console supports providers including OpenAI, Anthropic and Google.

Local-only keys: Co-founder Dax Raad distinguished Console from the local application, saying locally held keys never reach OpenCode. Using the CLI does not make a key local-only if you also saved it in Console.

Charges: TechCrunch reported users alleging losses of hundreds of dollars, with some above $1,000. These amounts remain user-reported.

Provider response: Anthropic's Lydia Hallie and Google's Evan Otero reported revoking or blocking affected keys. OpenAI's Tibo said his team helped restore customer access and refund credits drawn in the attack. Raad said refunds were underway; these statements do not establish that every customer has been refunded.

October 18 update: Raad reported continuing attack attempts over the preceding 48 hours. The cited disclosures do not give an affected-user count or explain the access route. Researcher Nathan Lambert publicly questioned the connection to model training.

Why it matters

Our take: treat a provider key as a credential that can authorize spending. OpenCode's documentation says Console stores linked credentials and forwards requests through its gateway. Removing that connection does not invalidate a copied provider key. A Console budget cannot protect requests made directly to the provider.

This isn't only about OpenCode. Any hosted tool you paste a key into becomes a place that key can leak from.

How to use it

1. Identify affected keys. Search your inbox and spam folder for OpenCode's notice. Follow its instructions for the provider keys associated with the affected workspace; do not assume the email enumerates individual keys.

2. Invalidate potentially exposed keys in the issuing provider's dashboard and generate replacements: OpenAI API keys, Claude Console, or Google AI Studio. Revocation interrupts applications still using the old credential.

3. Replace the old credential wherever it was configured, including apps, scripts and deployment secrets.

4. Inspect provider activity from at least October 16 and retain records of unfamiliar requests or charges for the provider's support team. That date is a starting point, not a verified beginning of unauthorized access.

5. Reduce future exposure. Use a distinct key for each tool, restrict its permissions where supported, and configure provider-side spending controls. Alerts notify you; they do not stop usage. OpenAI, Anthropic, and Google publish key-security guidance.

6. If you're also checking the card your AI accounts bill to, the subscription-review guide walks through a statement line by line.

Read the sources

This is a source-based summary. Product performance and account access have not been independently tested here. Practical suggestions are editorial.

Copy these instructions

Your browser blocked automatic copying. Select the text below and copy it.