Skip to content
VECTOR WIREAI INTELLIGENCE
UTC
Home

Distillation attack on OpenCode drains users' API keys for Anthropic, OpenAI, Google models

1.4% of OpenCode Console users had stored API keys for Anthropic, OpenAI, and Google exposed.

OpenCode co-founder Dax Raad confirmed that the breach disclosed on October 17, 2026, was confined to OpenCode Console and did not affect the standalone CLI or desktop applications5. "The breach involves the OpenCode Console, not OpenCode itself," Raad wrote, adding that keys stored locally on developer machines "never come to us". Raad said his own personal accounts were also under attack, calling it a "whole new world with AI-powered hacking"3.

Anomaly Innovations, the company behind OpenCode, had disclosed on October 17 that attackers breached its Console platform and hijacked stored API keys belonging to roughly 1.4% of Console users1,7. The keys connected to models from Anthropic, OpenAI, and Google. The company described the incident as a "large scale distillation attack".

How the attack worked

Attackers exploited vulnerabilities in a legacy system that OpenCode was already in the process of decommissioning. They gained unauthorized access to API keys stored in user workspaces, then ran repeated queries against high-end AI models using the stolen credentials. Affected users reported account balances draining rapidly, with some bills climbing into the hundreds of dollars.

The attackers were not pursuing passwords or payment information. They targeted access to expensive AI model endpoints, offloading compute costs onto the compromised users' accounts. Console is OpenCode's optional hosted service: a workspace saves its own OpenAI, Anthropic, or Google key there, and Console uses that key to call the provider so team members can use the models without ever seeing the key. A provider key is a bearer credential, meaning whoever holds a copy can run billable requests against the owner's account until the provider revokes it. Deleting the key from Console does not revoke it, and a Console budget cannot cap unauthorized use because Console only sees requests that pass through its own gateway.

ANALYSIS The term "distillation attack" points to a specific objective: using a powerful model's outputs at scale to train or refine a separate, cheaper model. Running high-volume queries against frontier models through stolen keys is consistent with knowledge-distillation workflows, where an attacker extracts a target model's behavior by collecting large numbers of input-output pairs.

OpenCode said it is working with Anthropic, OpenAI, and Google on remediation4. The company advised affected users to rotate or revoke their API keys immediately. OpenCode emailed affected users on the morning of October 17 under the subject line "Action Required: Potential provider key breach". Users who did not receive the email were not affected, the company said.

Scale and ongoing investigation

In a July 2026 interview with Y Combinator, OpenCode founder and CEO Jay V claimed the platform had reached approximately 13 million monthly active users and 4.6 million weekly active users2. OpenCode reportedly crossed 150,000 GitHub stars. The incident is ongoing, and OpenCode has not published a root cause analysis or said what data was accessed.

ANALYSIS The OpenCode incident illustrates a concrete failure mode in the agentic AI stack: stored third-party credentials sat in user workspaces without sufficient access controls, and a legacy system provided the entry point. The attack surface grows as coding agents and developer tools store API keys for multiple upstream model providers in a single console.

Was this useful?

The day’s vector, in your inbox.

Vector Wire Daily: one dispatch each publishing day.