Hackers breach part of OpenCode’s platform and steal users’ API keys

hacker laptop dark room
Photo: Antonio_Cansino / Pixabay

Hackers have broken into part of the online platform behind OpenCode, a popular AI coding tool, and stolen API keys belonging to some of its users. TechCrunch reported the incident on October 19, 2026. The headline says the attackers ran up charges on victims’ AI accounts.

An API key is a secret code that lets software use an AI service on your account. Whoever holds the key can spend your credit.

Background

OpenCode is an open source AI coding agent. That means its code is public, and people use it as an alternative to paid tools such as Claude Code and Cursor. It has become popular.

The attackers did not get into everything. The report says they reached only part of the platform. There is also a strange detail: the AI tools that were turned to for help analysing the malicious code kept refusing to look at it. The summary does not say who was asking, which tools refused, or why. We won’t guess.

Several things are not in the source material: how many users were affected, when the breach happened, how the hackers got in, and how large the charges were. We will update this post if that changes.

What this means for you

If you use AI coding tools. Your API key works like a credit card number for AI services. If it leaks, someone else can use it, and you get the bill. This incident is a reminder that the platform around a tool can be attacked even when the tool itself is open source.

If you are a freelancer. Many freelancers connect coding agents to their own AI accounts and pay the bills themselves. An unexpected spike in charges comes straight out of your income, and the reports don’t say whether affected users will be refunded.

If you run a business or a small team. Ask who on your team has put company API keys into third-party tools. Find out whether those keys have spending limits. The reports don’t say whether this affected any company accounts.

Our view. This is opinion, not reporting: the refusals by AI tools to examine malicious code are an uncomfortable detail. Security staff will increasingly want AI help with threat analysis. If the assistants decline, humans will have to do that work, and it may take longer.

What you can do

The report doesn’t give instructions, so these are general precautions rather than OpenCode’s official guidance. Check OpenCode’s own announcements for specific steps.

Related on Gistloom

Sources

Disclaimer: This article is written by the Gistloom team for general information only. It is not professional advice.