---
title: "OpenAI refunds API customers for credits used in OpenCode breach"
canonical: "https://aiaulis.com/en/juttu/openai-refunds-api-customers-for-credits-used-in-opencode-breach-1417df1401ec/"
language: "en"
published: "2026-10-20T03:55:26.244710+00:00"
publisher: "AI Aulis"
label: "AI GENERATED"
---

# OpenAI refunds API customers for credits used in OpenCode breach

**AI GENERATED** · Written by AI

x.com, techcrunch.com, infoq.cn · 4 sources · Sources published: 19 October 2026

Attackers broke into OpenCode’s Console cloud service and used the API keys stored there to run up charges on users’ accounts. OpenAI is refunding the credits used in the attack. OpenCode blamed a distillation attack, and some people doubt that explanation.

Attackers broke into the web service of OpenCode, an open-source coding agent, over the weekend and obtained API keys that users had stored there. An AI service uses an API key to identify a customer and bill that customer’s account. Anyone holding a stolen key can therefore use the models at someone else’s expense.

OpenCode said on X that the breach affected 1.4 per cent of OpenCode Console users and that it had emailed all of them, TechCrunch reported. Users who did not receive an email are not affected, the company said.

Console is OpenCode’s cloud service. InfoQ China said users can store their AI service keys there and share them with their team without showing the keys to others. The breach did not affect the downloadable program or the command-line tool. ‘this is the OpenCode Console, not OpenCode itself, those keys never come to us’, OpenCode co-founder Dax Raad wrote on X, TechCrunch reported.

Developers posted on Reddit and X about spending alerts and unauthorised charges. Charges on individual accounts ran to hundreds of dollars, and a few users described totals above $1,000, TechCrunch wrote. In the reports InfoQ China collected, the largest single-day charge was more than $1,700. These figures come from users’ own reports.

Tibo Sottiaux of OpenAI wrote on X that OpenAI had worked with OpenCode to restore access for OpenCode users who are also OpenAI API customers. OpenAI is also refunding any credits used in the attack. Anthropic and Google blocked the keys they believed had been exposed, TechCrunch reported. The sources do not say whether the two companies will refund the charges. OpenCode said refunds for unauthorised charges are under way. The company has told affected users to revoke their keys and create new ones directly with each provider.

OpenCode said the attackers got into an old system. The company has not said how the attackers got in or how the keys were stored, TechCrunch reported. InfoQ China wrote that the company told users the system was being retired. The publication also claims that the system still had read access to a database that held the keys in plain text or with weak encryption. It gives no source for this claim. The company says the incident is still ongoing.

OpenCode linked the breach to a ‘large-scale distillation attack’. In distillation, a developer trains its own model on answers generated by another model, and the process needs a vast number of them. TechCrunch notes that leaked keys could also let users in countries where access to American models is restricted generate volumes like these. Sceptics, however, see the incident as an ordinary breach, and no one has shown that the keys were used for distillation. Engineers quoted by InfoQ China point out that most individual developers’ keys stop working after a few hundred dollars or about a thousand, when they hit a card limit or account balance or when the user cuts off usage. Nobody would build distillation on keys this unreliable, the engineers say.

Raad said the attackers tried to break into the company’s systems nonstop for 48 hours. The models used in the investigation started refusing tasks when the malicious code under examination triggered their safety filters. The investigation became easier once OpenCode joined OpenAI’s Daybreak Blue programme, Raad said. The programme gives vetted users access to models that refuse defensive security work less often.

## What this is based on

1. [Our team worked with OpenCode to have their users who are also OpenAI API customers back in business and any credits refunded which would have been drawn in the attack. Also, you can request…](https://x.com/thsottiaux/status/2112034063934742720)
   thsottiaux · Publisher: x.com · published 19 October 2026 at 07:12 (UTC+03:00) · retrieved 20 October 2026 at 04:39 (UTC+03:00) · discovery channel: X
2. [Hackers hit AI coding tool OpenCode, running up charges on users’ AI accounts | TechCrunch](https://techcrunch.com/2026/10/19/hackers-hit-ai-coding-tool-opencode-running-up-charges-on-users-ai-accounts/)
   Publisher: techcrunch.com · published 19 October 2026 at 22:28 (UTC+03:00) · retrieved 20 October 2026 at 05:27 (UTC+03:00) · discovery channel: web
3. [大批API账户被刷爆！OpenCode遭黑客围攻48小时，官方甩锅“蒸馏攻击”被质疑](https://www.infoq.cn/article/K5J7yb60djWKM6vUZqwq?utm_source=rss&utm_medium=article)
   Publisher: www.infoq.cn · published 19 October 2026 at 16:48 (UTC+03:00) · retrieved 20 October 2026 at 05:27 (UTC+03:00) · discovery channel: web
4. [OpenCode 2.0 正式发布：一次“重大改造”，旧插件全部报废](https://www.infoq.cn/article/IK5AWDwovCu5lx3e3mhc?utm_source=rss&utm_medium=article)
   Publisher: www.infoq.cn · published 19 October 2026 at 04:51 (UTC+03:00) · retrieved 20 October 2026 at 05:27 (UTC+03:00) · discovery channel: web

Canonical: <https://aiaulis.com/en/juttu/openai-refunds-api-customers-for-credits-used-in-opencode-breach-1417df1401ec/>

---

AI Aulis is a newspaper written and checked by artificial intelligence. No human reads the stories before publication, and AI can make mistakes: check important facts in the story's original sources. Publisher: Fiquan Holding Oy. Responsible editor: Jukka Haikala.
