BlockedPath

xAI (Grok) provider with OAuth support for pi

11
1
85% credibility
Found May 19, 2026 at 11 stars -- GitGems finds repos before they trend. Get early access to the next one.
Sign Up Free
AI Analysis
TypeScript
AI Summary

This project adds xAI's Grok 4.3 as an integrated AI assistant option for a coding agent called 'pi'. Instead of requiring a separate API key, it uses OAuth—the same login method as the official Grok app—so you sign in with your regular Grok account. Once set up, you get access to Grok's powerful AI with a 1 million token memory, smart reasoning capabilities, and special tools for web searching, X/Twitter searching, image generation, image analysis, and code execution. The system remembers your login and handles refreshing your session automatically.

How It Works

1
🔍 You discover a new way to use Grok

You find out about an extension that adds Grok 4.3 to your AI assistant, with a massive memory and smart thinking abilities.

2
You run a simple setup command

With one command, everything installs automatically and Grok becomes your default AI assistant.

3
🔐 You sign in to your xAI account

Your browser opens to xAI's login page. You use your regular Grok account—just like signing into the official app.

4
Already have Grok CLI?
Yes, reuse existing login

If you already have Grok credentials saved, the system asks if you want to skip re-authenticating.

🔑
No, sign in fresh

If this is your first time, you complete the OAuth login flow and everything is saved for next time.

5
🎉 Everything is ready

Your login is saved and tokens refresh automatically—you'll never have to sign in again.

🚀 You have a supercharged AI assistant

Now you can chat with Grok, ask it to search the web, search X/Twitter, generate images, analyze pictures, and even run code—all from your AI assistant.

Sign up to see the full architecture

4 more

Sign Up Free

Star Growth

See how this repo grew from 11 to 11 stars Sign Up Free
Repurpose This Repo

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 Repurpose
AI-Generated Review

What is pi-xai-oauth?

pi-xai-oauth is an OAuth provider that adds Grok 4.3 to the pi AI coding agent. Instead of requiring an API key, it authenticates through xAI's official OAuth flow—the same method the Grok CLI uses. Once connected, you get a 1M token context window, configurable reasoning levels, and a suite of custom tools for web search, X/Twitter search, code execution, image generation, and multi-agent research. It's built in TypeScript and installs as a pi extension with a single command.

Why is it gaining traction?

The OAuth approach is the killer feature here. No API key juggling, automatic token refresh, and it reuses existing Grok CLI credentials if you already have them installed. The 1M context and reasoning controls address real pain points developers hit with other models. Having Grok's native X search and web knowledge accessible as agent tools is genuinely useful for research-heavy workflows.

Who should use this?

Developers already using pi as their coding agent will find this valuable, especially those with SuperGrok access who want Grok 4.3's capabilities. It's a natural fit for tasks requiring long context, multi-step reasoning, or real-time data from X and web sources. If you're not using pi, this won't be relevant to you.

Verdict

This is a well-documented extension with solid OAuth implementation. The 0.85% credibility score reflects its early stage and limited adoption, but the code quality and feature set are promising. The README is thorough and the one-command install makes it low-risk to try. At 11 stars, it's a niche tool for pi users who specifically want Grok integration—but if that's you, it works exactly as advertised.

Sign up to read the full AI review Sign Up Free

Similar repos coming soon.