r/opencode • • Oct 17 '26

⚠️ OpenCode security breach

Post image

.

477 Upvotes

109 comments sorted by

View all comments

Show parent comments

-7

u/mamelukturbo Oct 17 '26

If you're pasting your api keys into the chat at any point you're doing it wrong.

6

u/mattartist Oct 17 '26

No, OpenCode offers a bring your own key system where you can put a, for example Anthropic, API key into the console and use it directly. _That_ system was breeched.

-7

u/mamelukturbo Oct 17 '26

Most of the comments were insinuating chats which are non-issue, if it is what you're saying though that's a different thing. Still why would anyone use that, just add the provider as another api provider in opencode don't go around internet pasting api keys willy nilly just for sake of convenience.

1

u/Serious_Current_8802 Oct 18 '26

There is a providers section in the open code console where you can save api key, this data was leaked

Source: my OpenAI key I use for a discord bot was compromised, i received an email from OpenAI about suspicious usage and my $5 of credit was drained from the api key saved with opencode

This is basic stuff and routinely happens with these 3rd party services which is exactly why we use short lived limited api keys

When you get more experience this won’t be as shocking for you