OpenCode Breach Exposes User API Keys

Hackers utilized compromised keys from an OpenCode legacy console to conduct unauthorized AI model distillation attacks.

Updated on Oct. 20, 2026 in Artificial Intelligence

OpenCode Breach Exposes User API Keys

Live Poll

Do you feel safe storing sensitive API credentials in third-party coding tools or dashboards?

OpenCode confirmed a security breach within its legacy console that resulted in the exposure of OpenAI, Anthropic, and Google API keys for 1.4% of its users. Unauthorized parties leveraged these stolen credentials to perform model distillation attacks.

Why it matters

Intruders targeted the stolen API keys specifically to execute high-volume queries designed to mimic the response patterns of proprietary AI models. This process, known as model distillation, allows attackers to train their own mimetic AI systems.

Affected users experienced unauthorized charges ranging from $281 to over $1,700 resulting from high-volume AI queries. The breach was confined to the legacy console and did not compromise the standalone OpenCode app or CLI tool.

The players

OpenCode

OpenCode is a technology company providing tools and console interfaces for software developers working with various AI models.

OpenAI

OpenAI is a prominent research organization and developer of artificial intelligence models, including the GPT series.

Anthropic

Anthropic is an AI safety and research company known for developing the Claude series of large language models.

Google

Google is a global technology leader that provides a wide range of cloud-based AI services and large language models.

The details

Attackers disguised these high-volume API calls as normal developer activity to bypass rate limits while running queries. OpenAI, Anthropic, and Google have since revoked all compromised keys, and OpenCode is currently issuing refunds to affected users.

Timeline

  1. October 2026: OpenCode confirmed the breach of its legacy console system.

The Tech Race

This breach underscores the vulnerability of developer platforms to model distillation, a technique where attackers extract capabilities from sophisticated models to build cheaper alternatives. It highlights the escalating security arms race as developers work to protect proprietary AI architectures from unauthorized replication.

Users who held active API keys through the OpenCode legacy console may have incurred significant unauthorized charges. OpenCode is currently processing refunds, but users should verify their recent billing statements and ensure that any affected keys have been fully revoked.

The takeaway

This incident serves as a critical reminder to audit legacy software integrations and secure sensitive API credentials. Users should prioritize revoking unused keys and monitor account activity frequently to identify signs of unauthorized high-volume usage.

Further reading

For more context on how these tools are evolving, visit the Artificial Intelligence section.

Live Poll

Do you feel safe storing sensitive API credentials in third-party coding tools or dashboards?