Skip to content
Ask for a Budget
NewsOctober 19, 20263 min readUpdated on November 10, 2026

An AI key saved in someone else's tool leaked and turned into charges

Those who left a paid OpenAI, Anthropic or Google key in a third-party console got overnight charges. Find out where yours is and how to cap spending.

An AI key saved in someone else's tool leaked and turned into charges
Índice do artigo
faltam 3 min de leitura

On October 16, attackers got into the web console of OpenCode, an AI programming tool, and used the OpenAI, Anthropic and Google keys that customers had left saved there. Some accounts woke up to charges ranging from hundreds to more than a thousand dollars. For anyone paying for AI by usage, the risk is not the tool you chose, but how many places store the key that pays the bill.

This week's action is to ask the technical team or the vendor for a simple list: each AI key the company has (the password that unlocks paid use of the model), each place where it is saved and the spending cap that protects it. A cap, not an alert: an alert warns you, a cap blocks consumption.

What happened and what has already been resolved

OpenCode announced on October 17 that the attack hit 1.4% of users of the Console, the web dashboard, specifically those who had connected an external provider account there. The company notified those affected by email and said that anyone who did not receive one was not affected. The number of users and the total charged were not disclosed, nor how the attackers got in.

The three providers acted the same weekend. Anthropic revoked the keys it believes were affected. Google blocked its keys and told customers to create a new one, delete the old one and review usage. OpenAI restored access to affected customers and refunded the credits consumed in the attack, and OpenCode said its refunds were under way.

The leak was in the console, not in the program

OpenCode has two parts. One runs on the developer's computer, with the key configured on the machine itself. The other is the Console, a website where you can leave the key stored for convenience. Judging by the providers' notices, which always refer to a key "saved in OpenCode", it was that stored copy that leaked.

The lesson applies to any company: each tool dashboard, test server or configuration file on a laptop is one more place holding the key, protected by the security of whoever runs it, not by yours.

What one night of someone else using your key costs

The reports compiled by TechCrunch, from users on Reddit and X, mention charges of hundreds of dollars for most and above US$ 1,000 for some. These are individual reports, not a measurement.

At the PTAX selling rate (the Central Bank of Brazil's reference exchange rate) of October 16, US$ 1,000 comes to R$ 5,082.60 (Brazilian reais), before IOF (Brazil's tax on financial transactions) and the card's spread, because the charge is in dollars. At all three providers the spending alert fired and warned, but stopped nothing.

The cap each provider lets you turn on

All three offer a limit that stops consumption, each in its own way. As stated in the official documentation on October 19, 2026:

ProviderThe cap you setWhat happens when it is hit
Anthropicyour own limit below the account tier's ceiling (US$ 500 per month on the Start tier), at the organization level and per workspacerequests are refused until the month rolls over or until someone raises the limit
OpenAImonthly hard limit, separate from the alertusage stops when spending reaches the limit
Google (Gemini)per-project cap, still experimental, in addition to the account cap (US$ 250 on the first tier)the service pauses; billing lags by about 10 minutes, so the cap can be exceeded

A key stored in a third-party tool deserves a workspace or project of its own, with its own cap, so that a leak there costs at most that amount. OpenAI also recommends an expiry date on the key and regular rotation, which makes swapping it after an incident a routine already rehearsed.

In integration projects, the service key is created in the client's account and handed over to the team doing the integration, so it ends up in more than one place. That is not a problem as long as someone can list those places, and that list is what you should demand from whoever develops or supports your system.

Who this changes nothing for

Anyone who uses OpenCode only on their computer, with the key on the machine, was not affected, according to the company and the providers. Those who were affected are likely to get their money back: OpenAI and OpenCode announced refunds, and Google advised disputing through billing support. The cost that remains is swapping the key in every system that used it, which stops working until it receives the new one.

If the key that pays for your company's AI leaked tonight, in how many places would you have to swap it first thing tomorrow, and which cap would stop the spending before then?

Sources and method

OpenCode announcement on X on October 17, 2026, a company statement without independent verification. Notices from Anthropic, Google and OpenAI on X between October 17 and 19. Charge reports: TechCrunch, October 19, 2026. Caps: official documentation of the three providers, on October 19, 2026. Exchange rate: Central Bank of Brazil PTAX, October 16, 2026.

Previous post
Old system with no vendor: AI helps decipher it, within limits
Next post
Meta puts fixed rules in charge of its AI and setup takes under 1 hour
Newsletter

One email a month, no noise

What we learn shipping custom software and applied AI.

Related articles

An AI vendor took 84 days to report: what to put in the contract6 min · News
The US$ 500 ChatGPT for developers: cost and risk for client code5 min · News
AI that sorts tickets costs pennies: what else goes into the bill6 min · News
AI that reads very long documents can cost twice as much at OpenAI4 min · News
Your site may be out of ChatGPT search without anyone deciding it4 min · News

Accelerate your business with X-Apps

Ask for a Budget
X-Apps is an IT provider partner and advised by
Gartner
Receive our e-mails
News on software and applied AI.
Follow X-Apps