OpenCode, the popular open source terminal coding agent, disclosed a security breach on October 18 that may have exposed provider API keys stored by some users. In emails to affected customers, the company said it had "identified unauthorized access to a legacy system" that was being decommissioned, and that "third party provider keys (eg OpenAI, Anthropic) saved in your workspace may have been exposed," Crypto Briefing reports.
Anomaly Innovations, the company formerly known as SST that builds OpenCode, described the incident as a "large scale distillation attack" that affected roughly 1.4% of OpenCode Console users, according to Startup Fortune. Only users who had linked external providers were affected, and every affected account was notified by email. Users who did not get an email were not impacted, the company said. It is working with Anthropic, OpenAI and Google on remediation.
Details are thin. OpenCode said "the incident is ongoing so we cannot share more details at this point." It said it could not confirm whether exposed keys were used maliciously, though Startup Fortune reports some users already saw unexpected charges on their OpenAI and Anthropic bills. Co-founder Dax Raad said his personal accounts were also being attacked: "Whole new world with AI-powered hacking."
Why it is a big target: OpenCode supports more than 75 model providers and reportedly has over 150,000 GitHub stars. Because the tool is free, users pay their own providers and store keys in OpenCode Console, which makes that dashboard a single point of failure. Startup Fortune notes OpenCode's own documentation says it "does not sandbox the agent" and recommends Docker or a VM for real isolation.
Why it matters for builders: any tool that holds your provider keys is part of your attack surface, including dashboards for tools you mostly run locally.
What to do: if you use OpenCode Console, revoke and replace every linked provider key now, update apps that use them, and review recent usage. Set spending limits on provider accounts so a leaked key cannot run up an unlimited bill.
Sources
- Startup FortuneOpenCode breach exposes stored OpenAI and Anthropic keys, prompts urgent key rotation
- Crypto BriefingOpenCode discloses distillation attack that hit 1.4% of Console users
- OfficeChaiOpenCode Discloses Security Breach, Says Attackers May Have Accessed Users' OpenAI, Anthropic And Google API Keys
Building with AI? See this week's hot AI repos and how to use each one.
From the issue
India's cyber agency says AI agents walked into live company systems Sunday, October 18, 2026