Analysis updated 2026-05-18
Use the Grok CLI coding agent without an API key, billed only through your grok.com subscription.
Route the same CLI to other providers like OpenRouter, OpenAI, or Anthropic through LiteLLM.
Automate a signed-in Chrome tab to expose an OpenAI-compatible chat endpoint locally.
| barkleesanders/grok-via-web | 0xhassaan/nn-from-scratch | 3ks/embedoc | |
|---|---|---|---|
| Stars | 0 | 0 | — |
| Language | Python | Python | Python |
| Last pushed | — | — | 2023-06-08 |
| Maintenance | — | — | Dormant |
| Setup difficulty | hard | moderate | hard |
| Complexity | 4/5 | 4/5 | 1/5 |
| Audience | developer | developer | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires a signed-in Chrome browser session and careful setup of the CDP proxy and router.
This project lets you use a command-line AI coding tool powered by xAI's Grok model using a regular grok.com web subscription, rather than needing an API key or paying for an expensive subscription tier. The approach works by connecting to a Chrome browser that is already signed into grok.com, then automating the web interface to send and receive messages, avoiding the need to call the API directly. Technically, the tool uses the Chrome DevTools Protocol (CDP), a way for programs to talk to and control a running Chrome browser, to attach to an open grok.com tab. When you send a prompt, the tool types it into the real chat input box, clicks Submit, then reads the response from the network traffic flowing through your browser. This works because the browser itself handles all the authentication, no session tokens are copied or replayed. The project also integrates with LiteLLM, a router that lets you switch between different AI providers using one consistent interface. Beyond Grok, you can also route requests to free models from OpenRouter, or to other providers like OpenAI or Anthropic, all through the same command. A one-line launcher starts both the Chrome-driving proxy and the LiteLLM router, then opens the Grok CLI pointing at your local setup. This is useful for developers and AI power users who already pay for a grok.com subscription and want to use Grok from the command line without an additional API cost. The full README is longer than what was provided.
A tool that lets you use xAI's Grok coding CLI through your existing grok.com web subscription instead of paying for API access.
Mainly Python. The stack also includes Python, Chrome DevTools Protocol, LiteLLM.
Setup difficulty is rated hard, with roughly 1h+ to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.