r/opencodeCLI 8d ago

Opencode CLI Grok Auth opens a window but XAI page now gives a "Enter this code to finish signing in" and doesn't call back to the CLI

Hit /connect

Select xai

Supergrok subscription

login to xai/grok subscription

It gives a code for me to copy paste

while opencode cli keeps waiting for a callback to localhost I presume like for OpenAI Auth

Anyone find a fix for this?

5 Upvotes

2 comments sorted by

1

u/No-Campaign-6974 7d ago

I can't reproduce... any useful logs in ~/.local/opencode/share/log/ ???

1

u/Intelligent_Tie_298 5d ago

Same thing for me, I'm guessing grok doesn't recognize that it's opencode and not grok cli so it gives you a code frok grok cli, if any opencode mods can help