r/CommandCode • • Oct 28 '26

API Keys disappeared, why?

My API Keys just disappeared, anybody else? No other signs that my account has been broken into..

47 Upvotes

40 comments sorted by

10

u/imoshudu Oct 28 '26

Same here. I had to regenerate my key. Did they get hacked ?

4

u/Sure_Leave9338 Oct 29 '26

The keys were deleted some hours ago..... . then I created new keys, now the new keys are EXPIRED and I have again to create new ones. Are you folks ? My cousin with a 100$ pc does better

1

u/baksotahubulat Oct 29 '26

The same thing happened to me, too.

3

u/MyMemorySide Oct 28 '26

same, what is happening

3

u/Toad__Sage__ Oct 28 '26

same. Getting an authentication error even after generating new api keys

3

u/aubrey_beardsley Oct 28 '26

will they ever be restored? bummer, I have just deployed several bots with the keys yesterday…

3

u/trashbytes Oct 28 '26

Yup, same here

3

u/Top-Factor-4824 Oct 29 '26

They had a security incident and they deleted api keys for many users. No disabled but deleted. I think there is huge uptick for using stolen credentials of frontier models for distillation.

First of was opencode and now command code.

5

u/mattartist Oct 28 '26

They nuked all the API keys out of caution due to attacks on their systems. At least according to their founder. From Discord:
We’re investigating a security incident related to a large scale distillation attack, like other companies have experienced.

At the moment, there’s no evidence of any users being impacted.

As a precaution, we’ve revoked all your API keys, and we’re working with Anthropic and OpenAI to investigate.

2

u/Lord-Zord Oct 29 '26

I had the same happen just after I'd subscribed as a new user. Thought I was losing my mind or something when I didn't see any of the API keys I created 30 minutes prior

1

u/marowitt Oct 28 '26

Just noticed my model changed and this post made me check command code. Yup api got deleted.

1

u/Traditional-Silver16 Oct 28 '26

Same, had to create new keys

1

u/ExpertPerformer Oct 28 '26

That explains a lot why I was getting errors.

1

u/adebisifa Oct 28 '26

Same here! Had to regenerate, too.

1

u/Nomansdreams Oct 28 '26

Same... Someone there vibe coded and directly written to DB?

1

u/Rockmanly Oct 28 '26

Yeah same happened here as well. Wtf

1

u/mkulik91 Oct 28 '26

Yep, same here, needed to generate new API key.

1

u/richtopia Oct 28 '26

Came here to verify, and I would really appreciate any confirmation from Command Code why.

It did justify my paranoia with multiple free backups in Hermes. I am pleased with Kilocode's free budget - didn't run out during my troubleshooting.

1

u/bigheartenergy17 Oct 28 '26

Same thing happening to me. It's going to be a pain having to replace everything. I hope they address this.

1

u/l0rd_raiden Oct 28 '26

Change your passwords mine was changed and had to recover the account. Then all my apis were removed, minutes later

1

u/SlimeyNOOB Oct 28 '26

Damn same here, but I regenerated the API keys, for a few minutes my password was not working, after I logged in, I set a new one

1

u/CaffeinatedTech Oct 28 '26

Argh, they just expired my new key.

1

u/vconghuy3011 Oct 28 '26

Same. Create new key but it’s expired real quick

1

u/Prestigious-Shoe-dev Oct 28 '26

I created new API keys this morning and now they are expired again...

1

u/luigibu Oct 28 '26

Same here

1

u/baksotahubulat Oct 29 '26

Yeah, and it actually just happened to me—I had to re-authorize when logging in via GitHub.

1

u/SpiderHam24 Oct 29 '26

Son of a fucking bitch. So they are under attack. Welp, might be time to go back to opencode lol. I had both and let opencode expire this month, and now my projects are on hold. Damn.

1

u/idakale Oct 29 '26

ooo yea i just noticed too whoa

1

u/iamprincecameron Oct 29 '26

Same for me, i just created keys and expired same day. No explanation.

2

u/idakale Oct 29 '26

From discord announcement

Earlier today we detected and stopped a security incident linked to a large-scale distillation attack targeting Anthropic and OpenAI models.

As a precaution, we've revoked all API keys. To keep using Command Code, log in to Studio again to generate a new key.

So far, we've found no evidence that any users were impacted. We're working with Cloudflare, Anthropic, and OpenAI to investigate.

We appreciate your patience and trust. 💜 @everyone

1

u/pisa_p Oct 29 '26

same problem here. first key deleted, created a new one expired in 9 hours. created a new one now.

1

u/Sure_Leave9338 Oct 28 '26

Jees.... I hate this. fucking multiple configurations, agents, servers.. all gone... now I have to spend hours replacing them. I'm really upset. In 40 years in internet NEVER happend some thing where my password or keys just disappeared.

1

u/robroneal Oct 29 '26

This doesn't help now, but future advice - not meant to criticize. I've shifted to using lite-llm setup your providers (command code, others old router, openai you may have) - once. It gives you a master api address & api key you tell your apps, harnesses etc.

I found out I had a few apps, including command code cli still separately and had to fix that today, oops.

I think 9router and others do this also. Litellm is free in my use. I'm not affiliated with either.

If this doesn't apply to you, maybe others will find it useful. Key management is a pita. (-Hope it goes smoother than expected for ya, getting reconnected.)

1

u/Sure_Leave9338 Oct 29 '26

Yes for a couple of months I used OnlyRoute to obtain this , until I just noticed that it was adding some hundreds of milliseconds in the path and throwing errors about x95 more than the direct way, but it was with openrouter at that time and maybe was an issue in that version or model/provider

0

u/Rushyk Oct 28 '26

cmd logout, cmd login... that's how it works