ysnock404 / opencode-grok-auth
PublicOpenCode plugin that signs in to xAI Grok through the SuperGrok OAuth/PKCE flow instead of using an XAI_API_KEY.
This project is an authentication plugin that lets OpenCode users sign in to xAI's Grok AI service using their xAI account instead of an API key. It works like a 'Sign in with Google' button - you log in through your browser, and the plugin handles the secure connection behind the scenes. Once connected, you can choose from different Grok models to help write, review, or debug your code. The plugin automatically keeps you signed in by handling token refreshes, and includes security checks to ensure your login credentials only go to xAI's official servers.
How It Works
You've been using OpenCode and hear that Grok is available, but you don't want to deal with API keys.
The plugin connects your coding assistant to xAI's login system, just like signing into a website.
Your browser opens to xAI's login page where you enter your credentials, the same way you log into any app.
Once you approve the login, xAI sends a secure confirmation back to your computer automatically.
A reliable all-purpose model for general programming tasks.
Takes more time but works through tricky logic step by step.
Faster responses when you just need a quick result.
Coordinates multiple AI helpers working together on your project.
Your coding assistant is now connected to xAI's Grok models, and it stays signed in automatically.
Star Growth
Repurpose is a Pro feature
Generate ready-to-use prompts for X threads, LinkedIn posts, blog posts, YouTube scripts, and more -- with full repo context baked in.
Unlock RepurposeSimilar repos coming soon.