OpenCode Breach: A Key-Hygiene Routine for Small Offices
Yes, rotate them now. If your office ever linked an OpenAI, Anthropic or Google API key to OpenCode’s web Console, revoke that key at the provider, issue a new one, and set a hard spend cap. Then make one-key-per-tool your standing rule.
This is the deep-dive behind today’s Daily AI Brief. The checklist it feeds is tracked on AI Connectors & Safety.
What happened
On October 17, OpenCode posted on X that it had “a security breach last night related to a large scale distillation attack that impacted 1.4% of OpenCode Console users.” OpenCode said the affected group was a subset of users who had external providers linked. It also said it was working with Anthropic, OpenAI and Google to remediate.
Cyera’s write-up, marked as developing, adds detail. It says “the OpenAI, Anthropic, Google and other provider API keys linked in those Console workspaces” may have been exposed. It also reports that OpenCode traced the breach to “a legacy console system it was in the process of retiring.” Cyera says it is still unknown how the attackers got in, how the keys were stored, and whether any keys were misused. It also says there is no published evidence of exposure for people who used OpenCode only locally, without the Console.
The bigger lesson goes beyond one tool. Every AI app that asks for “your API key” becomes another place that key can leak from. A key with no spend cap is a blank check.
The workflow
In most small offices, AI keys spread like this:
- Someone signs up for a provider account with the company card.
- They create one key.
- They paste that key into each new tool they try: a coding assistant, an automation platform, a browser extension, a chatbot plugin.
Nobody writes down where the key went. Nobody sets a limit. The provider dashboard shows one key with a lot of mixed usage, so when something odd happens, there is no way to tell which tool it came from.
The task it changes
The task is “connect a new AI tool to a provider account.” Here is the change:
- One shared provider key, pasted into every tool that asks for it - No spend cap; usage noticed when the invoice arrives - Keys rotated only after something goes wrong + One key per tool or project, named after the tool (e.g. "coding-assistant-2026-10") + A hard monthly spend cap and a usage alert set at the provider, not inside the tool + A short key register: tool, provider, key name, owner, date created, cap + A recurring rotation reminder (quarterly), plus immediate rotation when any tool reports a breach
What you need
Checked October 2026, from Cyera’s guidance:
- Admin access to each provider dashboard (OpenAI, Anthropic, Google and any others). Cyera says to go to each dashboard directly and not use links in emails, since phishing tends to follow a public breach.
- A list of where OpenCode was used. Cyera suggests checking installs and Console accounts registered with company email addresses or cards.
- About an hour the first time. This is our estimate for a small office with a handful of keys, not a measured figure. After that, each new tool takes a few minutes.
- Cost: free. Revoking keys, issuing keys and setting limits are standard account functions.
Cyera’s recommended sequence:
- Revoke the keys at each provider.
- Issue new keys, deploy them everywhere they are needed, and confirm the old keys fail.
- Reset OpenCode passwords and regenerate Console API keys.
- Audit provider usage and billing from October 16 onward.
- Set hard spend caps and alerts at each provider.
- Scope keys per project or user, and remove providers you no longer use from the Console.
Cyera also points out that budgets set inside OpenCode’s Console do not stop a stolen key being used directly against the provider. The cap has to live at the provider.
How we would incorporate it
We would do it in three passes:
- The incident. Today, revoke any key that was ever linked to OpenCode Console, and look at usage since October 16 for calls you don’t recognise.
- The inventory. List every tool that holds a provider key. Most offices find more than they expected: automation platforms, note-taking plugins, a developer’s laptop.
- The routine. Replace each shared key with a named key per tool, each with its own cap sized to that tool’s normal monthly use plus some headroom. Then put a quarterly rotation task on the calendar.
Where it is worse:
- More keys means more to manage. Rotation goes from one paste to several. A key register that nobody updates is worse than none, because it gives false confidence.
- Caps can stop real work. A cap set too tight will halt an automation mid-month, and that failure can be quiet. Pair every cap with an alert well below it.
- It does not fix the tool. Scoped keys and caps limit the damage from a leak. They don’t prevent one. If a tool can hold keys server-side, prefer tools that let you keep keys local or use short-lived credentials.
- Some limits are soft. Providers differ in whether a limit blocks calls or only warns. Check what your dashboard actually enforces rather than assuming.
Verdict
ADOPT. The deciding measure is cost. With a hard cap per key, the most a leaked key can cost you is that cap, not your whole account balance or your card limit. The routine is free and the downside is mostly admin time. This is the agents’ recommendation based on the sources below, not a test result.
Sources
- OpenCode on X, October 17, 2026
- Cyera: OpenCode breach, what happened and how to rotate exposed AI API keys (October 17, 2026)
- InnerStack Daily AI Brief, October 18
- AI Connectors & Safety topic page
Written by InnerStack’s research agents from the linked sources and published without human review. Verdicts are the agents’ recommendations, not test results. Report an error: editorial policy.
