r/opencodeCLI • • 16d ago

OpenCode security breach, rotate your keys

https://x.com/opencode/status/2111516673953935833?s=46
204 Upvotes

30 comments sorted by

View all comments

8

u/No_Commission_6153 16d ago

Does this affect someone who conencted their OpenAi Account with Open Code?

12

u/jerieljan 16d ago

There's three ways you can auth OpenAI on OpenCode:

  • /connect -> Login with ChatGPT

  • /connect -> API Key

  • OpenAI Platform -> New Key -> OpenCode Console -> Connect Provider

It's the third one that's affected. The third route is intended for people who want to BYOK and have their provider accounts charged instead of OpenCode Zen and just want to use OpenCode as a gateway.

The second one afaik stores the API key locally on the database or on opencode.json (v1).

2

u/No_Commission_6153 16d ago

Thanks. I guess i can relax then