explaingit

mashiourcse/grok_quota_check_extension

Analysis updated 2026-06-24

15JavaScriptAudience · generalComplexity · 2/5Setup · easy

TLDR

Chrome sidebar extension that shows remaining Grok Imagine image and video generation quotas by calling an undocumented Grok API using your existing browser session.

Mindmap

mindmap
  root((grok-quota-check))
    Inputs
      Grok session cookie
      Manual refresh click
    Outputs
      Image Speed count
      Image Quality count
      Video Speed count
      Video Quality count
    Use Cases
      Track Grok quotas
      Avoid burning credits
      Plan generation runs
    Tech Stack
      JavaScript
      Chrome Extension
      Manifest V3
      Side Panel API
Click or tap to explore — scroll the page freely

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Watch your remaining Grok Imagine image and video credits in a Chrome sidebar.

USE CASE 2

Auto-refresh quota counters every 30 seconds while browsing other tabs.

USE CASE 3

Diagnose Grok 401 errors and login state from the same panel.

USE CASE 4

Fork the extension and adapt the parsing for any new Grok quota response shape.

What is it built with?

JavaScriptChrome ExtensionManifest V3HTMLCSS

How does it compare?

mashiourcse/grok_quota_check_extensionanonymousraid/osint-mapping-toolcrimeacs/ai-tells-validator
Stars151515
LanguageJavaScriptJavaScriptJavaScript
Setup difficultyeasyeasyeasy
Complexity2/52/52/5
Audiencegeneralresearcherwriter

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

You must already be signed in to grok.com in the same Chrome profile because the extension reuses your session cookies.

The README says open source and not a commercial product, but no specific license is named, so reuse terms are unclear.

In plain English

Grok Imagine Quota Checker is a small Chrome browser extension that shows how much of your image and video generation allowance is left on Grok Imagine, the media generation feature of xAI's Grok service. Instead of clicking around the Grok website to find this information, the extension puts a permanent panel in Chrome's native sidebar, alongside the page you are looking at. It refreshes the numbers automatically every 30 seconds, and there is also a manual refresh button. The sidebar displays four separate counters: image generations in Speed mode, image generations in Quality mode, video generations in Speed mode, and video generations in Quality mode. Rows that are not available on the current Grok plan are marked with a small padlock icon. The extension does not ask for any login credentials of its own. Instead, it relies on the fact that you are already signed in to grok.com in the same browser, and it reuses your existing session cookies to call an internal Grok endpoint at /rest/media/imagine/quota_info. Installation is the manual unpacked extension flow used by developers. The user downloads a ZIP file containing a manifest.json, a background script, and three sidepanel files for HTML, CSS, and JavaScript. They then go to chrome://extensions, turn on Developer Mode, click Load unpacked, and select the extracted folder. Clicking the extension icon then opens the Chrome sidebar with the quota panel. The README is clear that the extension depends on an undocumented private Grok API and could break at any time if xAI changes its response structure. Troubleshooting tips cover three failure modes. A 401 error means the user is not actually logged in to Grok and needs to sign in. Rows that all show zero usually mean the API response shape has changed, in which case the suggested fix is to open Chrome DevTools, log the response inside sidepanel.js, and update the parsing code. If the extension does not load at all, the README points the user back to enabling Developer Mode, selecting the right folder, and confirming that manifest.json is at the root. The project is described as open source and not a commercial product.

Copy-paste prompts

Prompt 1
Walk me through loading grok_quota_check_extension as an unpacked Chrome extension and confirm what files I need in the folder.
Prompt 2
Show me how to update sidepanel.js when the /rest/media/imagine/quota_info response shape changes and rows go to zero.
Prompt 3
Add a fifth row to this extension that totals image plus video remaining generations across Speed and Quality.
Prompt 4
Convert this Chrome side panel extension into a Firefox sidebar add-on with the same quota fetch logic.
Prompt 5
Add a desktop notification when any Grok quota row drops below a threshold I configure.

Frequently asked questions

What is grok_quota_check_extension?

Chrome sidebar extension that shows remaining Grok Imagine image and video generation quotas by calling an undocumented Grok API using your existing browser session.

What language is grok_quota_check_extension written in?

Mainly JavaScript. The stack also includes JavaScript, Chrome Extension, Manifest V3.

What license does grok_quota_check_extension use?

The README says open source and not a commercial product, but no specific license is named, so reuse terms are unclear.

How hard is grok_quota_check_extension to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is grok_quota_check_extension for?

Mainly general.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.