Grokified for VS Code

Grokified registers as a chat model provider in VS Code (vendor grokified), so
every Grok model from xAI shows up in the native Chat model picker. Requires
VS Code 1.104 or newer.
What is Grokified
Grokified is a discounted reseller proxy for the xAI Grok API. It is
OpenAI-compatible and reachable at https://api.grokified.com/v1. Billing is
prepaid credit, not a subscription. New accounts get free starter credit, so
you can try text models without adding a card.
Setup
- Install this extension.
- Open the Command Palette and run
Grokified: Sign In. This opens
grokified.com in your browser to authorize the extension, no key to copy.
- Open Chat and pick a Grok model from the model picker.
Prefer not to sign in through the browser? Get a key at
grokified.com/keys and run
Grokified: Set API Key instead, pasting a key that starts with gk_live_
or gk_test_. This fallback keeps working exactly as before.
Where your key is stored
Your key is saved in VS Code's SecretStorage, backed by your OS keychain. It
is never written to settings.json, or to any file on disk in plain text.
Balance and dashboard
Once signed in, your prepaid balance shows in the status bar. It is hidden
when you are signed out, and its background turns to a warning color once
your balance runs low.
Click it, or run Grokified: Open Dashboard, to open the full dashboard in
an editor tab. It shows your balance with a top-up button, a runway estimate
for how long that balance lasts at your recent rate, and a savings total:
what you paid against what xAI's own list price would have been. Below that
is spend today and over the last 30 days with a daily spend chart, a feed of
your most recent requests with per-request cost and savings, and spend
ranked by model. Further down is your discount and progress toward its cap,
the models available on your account with list price per 1M tokens when
known, and your account details: free tier, card on file, and auto reload
state, with a sign out button. Auto reload can only be viewed here; change
it on the Grokified website. Grokified is prepaid credit: there is no hourly
or weekly rate limit, so the dashboard shows money and burn rate, never a
quota or a reset timer.
When your balance crosses below a low threshold, a notification offers to
add credit. It only fires on that crossing, not on every refresh.
Chat now goes through xAI's Responses API, so Grok can reach for its own
built-in tools during a turn: web search, X search, a Python code
interpreter, and image generation. These run on xAI's servers, not your
machine, and every call spends account credit. Source links Grok used are
added to the end of its answer as a short list.
Web search, X search, and image generation are on by default. Code
interpreter is off by default because it executes code. Turn any of them on
or off with the grokified.tools setting.
Commands
| Command |
Description |
Grokified: Open Dashboard |
Opens the balance, spend, discount, models, and account dashboard in an editor tab. |
Grokified: Sign In |
Signs in through grokified.com and stores the resulting key in your OS keychain. |
Grokified: Set API Key |
Prompts for your Grokified API key and stores it in your OS keychain. |
Grokified: Sign Out |
Removes the stored key from your OS keychain. |
Grokified: Refresh Models |
Re-fetches the model list from Grokified. |
Grokified: Refresh Credits |
Re-fetches the balance shown in the status bar and the open dashboard, if any. |
Settings
| Setting |
Default |
Description |
grokified.baseUrl |
https://api.grokified.com/v1 |
Grokified API base URL. Change this only for a staging or self-hosted proxy. |
grokified.siteUrl |
https://grokified.com |
Grokified website used for sign-in and top-ups. Change this only for a staging or self-hosted deployment. |
grokified.tools |
["web_search", "x_search", "image_generation"] |
Built-in xAI tools to turn on for chat. These run on xAI's servers and every call spends account credit. Code interpreter is the one tool off by default. |
Building from source
This repo uses Bun. Do not use npm or npx.
bun install
bun run compile # one-time build to out/
bun run watch # rebuild on save
bun run package # produce a .vsix with @vscode/vsce
Troubleshooting
| Symptom |
Cause |
Fix |
| Key rejected (401 or 403) |
The key is invalid or has been revoked |
Run Grokified: Set API Key again with a current key |
| Request fails with 402 |
Your credit balance is empty |
Add credit to your account |
| Request fails with 429 |
You are being rate limited |
Wait a moment and retry |