grok-build-providers
v1.2.0
Published
Interactive TUI and all-in-one connector installer for Grok Build (Antigravity, Codex, DeepSeek, Groq, Kimi, OpenCode Go/Zen, OpenRouter, Qwen, Z.ai)
Readme
grok-build-providers
Give Grok Build access to third-party models natively, without background services.
These connectors spin up light, zero-dependency inline HTTP proxies on-the-fly only when Grok is running.
Disclaimer:
grok-build-providersis an independent, community-built tool. It is not affiliated with, endorsed by, or sponsored by x.AI, Grok, or any model provider (OpenAI/Codex, Google/Gemini/Antigravity, DeepSeek, Alibaba/Qwen, Moonshot/Kimi, Z.ai, Groq, OpenCode, or OpenRouter). All product names and trademarks belong to their respective owners and are used only to describe interoperability.
Prerequisites
- Grok Build installed and on your
PATH. This tool configures Grok's connectors; it does not install Grok Build itself. - For the inline connectors, the backing CLI must be installed and signed in:
agy(Antigravity) orcodex(Codex). The passthrough connectors (DeepSeek, Qwen, Kimi, Z.ai, Groq, OpenCode Go, OpenCode Zen, OpenRouter) only need an API key. - The OpenCode connectors use Grok Build's native
responsesandmessagesbackends for GPT and Claude models, so they need a Grok Build recent enough to supportapi_backendandextra_headersinconfig.toml(tested with 1.0.46).
Connectors
All connectors are distributed in a single, unified npm package grok-build-providers.
| Command | Provider | Default Model | Config Snippet | Description |
| :--- | :--- | :--- | :--- | :--- |
| grok-agy | |
gemini-3.8-flash-high | toml | Gemini, Claude, and GPT-OSS via the Antigravity CLI OAuth (inline proxy) |
| grok-codex | |
gpt-6-luna | toml | Codex models via the Codex CLI OAuth (inline proxy) |
| grok-deepseek | |
deepseek-v4-flash | fragment | DeepSeek V4 via the first-party API |
| grok-qwen | |
qwen3-coder-plus | fragment | Alibaba Model Studio (DashScope international) |
| grok-kimi | |
kimi-k2.7-code | fragment | Kimi K3 and K2.7 via the Moonshot AI open platform |
| grok-zai | |
glm-5.3 | fragment | GLM-5.x via the Z.ai open platform |
| grok-groq | |
openai/gpt-oss-120b | fragment | Open-weight models on Groq LPU inference |
| grok-opencode-go | |
kimi-k2.7-code | fragment | OpenCode Go flat-rate subscription; GPT and Claude models switch to their native protocol |
| grok-opencode-zen | |
glm-5.3 | fragment | OpenCode pay-as-you-go console: Claude, GPT, Grok, and open models behind one key |
| grok-openrouter | |
openrouter/auto | fragment | Hundreds of models across providers; list fetched live |
Each connector is one fragment at
providers/<id>/provider.json;providers/providers.jsonis the generated aggregate. See CONTRIBUTING.md to add one.Passthrough connectors pull their selectable model list live from the provider's
/modelsendpoint each run, so nothing is pinned in the repo. The inline connectors (AGY, Codex) ask their CLI for the live roster when the proxy starts (agy models, Codex's models cache) and fall back to the manifest list offline.OpenCode Go and Zen front models that speak three different wire protocols. The connector maps each model to the backend Grok Build must use (
chat_completionsfor GLM, Kimi, DeepSeek, MiMo and friends;responsesfor GPT and Grok;messagesfor Claude, MiniMax and Qwen), and the TUI rewritesapi_backendwhen you switch models. Go also requires a stablex-opencode-sessionheader, which the installer mints once per machine and keeps across reinstalls. Both shareOPENCODE_API_KEY, so a key entered for one is picked up by the other.
Interactive Configuration Console & TUI
grok-build-providers provides a zero-dependency interactive control panel to manage all your model connectors.
Install (recommended)
Install globally with npm, then launch the console:
npm install -g grok-build-providers
grok-build-providersA global install is the recommended setup: it gives every connector, including the inline ones (agy, codex), a stable home. (See Trying it without installing for the npx caveat.)
Headless / non-interactive
Install connectors directly, without the menu:
grok-build-providers agy # Antigravity (inline proxy)
grok-build-providers codex # Codex (inline proxy)
grok-build-providers deepseek # DeepSeek
grok-build-providers qwen # Qwen (Alibaba Model Studio)
grok-build-providers kimi # Kimi (Moonshot AI)
grok-build-providers zai # Z.ai (GLM)
grok-build-providers groq # Groq
grok-build-providers opencode-go # OpenCode Go
grok-build-providers opencode-zen # OpenCode Zen
grok-build-providers openrouter # OpenRouter
grok-build-providers all # install everythingRunning without installing
npx grok-build-providersUse npx for a quick try without a global install. What works and what does not:
- Passthrough connectors (DeepSeek, Qwen, Kimi, Z.ai, Groq, OpenCode Go/Zen, OpenRouter): fully supported via
npx. Their launchers are self-contained and only need an API key. - Gemini/AGY, Codex (inline): unreliable via
npx. Their launchers reference the package directory, so they break once npm clears its temporarynpxcache. Use a global install for these.
Running a connector
After installing, launch Grok on a connector with its grok-<name> command. It spins up the inline proxy on demand and shuts it down when you exit:
grok-agy # interactive Grok session on Antigravity/Gemini
grok-codex -p "explain this repo" # one-shot prompt via CodexOr set one as the global default in the TUI and press space to launch.
Custom connectors (
agy,codex) must be started through theirgrok-<name>command (or the TUI's launch), which starts the local proxy first. Running plaingrokagainst them fails withretrying…because nothing is listening on the proxy port.
API keys
Passthrough connectors read their key from ~/.cli-proxy-api/grok-<name>.env (one KEY=value line, created empty by the installer) or from the matching variable in your shell: DEEPSEEK_API_KEY, DASHSCOPE_API_KEY, MOONSHOT_API_KEY, ZAI_API_KEY, GROQ_API_KEY, OPENCODE_API_KEY, OPENROUTER_API_KEY. If the variable is exported when you install, it is copied into the env file for you.
Troubleshooting
grok modelslists every model Grok Build can see, including the connectors this tool added; a connector missing there means its[model.<name>]block is absent from~/.grok/config.toml(re-run the installer).- Set
GROK_PROXY_DEBUG=1before agrok-<name>command to write an inline-proxy trace to~/.cli-proxy-api/logs/inline-proxy-debug.log. - A connector that answers plain prompts but fails on tool calls can usually be fixed by adding
stream_tool_calls = falseto its block; some third-party endpoints reject streamed tool-call deltas.
Features
- Status Monitor: Checks the installation status of all connectors and reports their active default models.
- Active Model Switcher: Swap between connectors as the active default model in your
~/.grok/config.tomlwith a single keypress. - Option Adjuster: Switch default models inside each connector (e.g.
gpt-6-lunavsgpt-5.6-terraon Codex, orgemini-3.8-flash-highvsclaude-opus-4-6-thinkingon AGY). Passthrough connectors load their full model list live from the provider's/modelsendpoint, with type-to-filter search; models that need a different wire protocol are markedvia responsesorvia messagesand the config follows the switch. - Quick Installer / Uninstaller: Set up or cleanly remove any or all connectors (launcher, credentials file, and
config.tomlblock) with execution logs rendered inline. - Launch: Start a Grok session on the active connector straight from the menu (press
space).
Getting Started
Prerequisites
Requires Grok Build (grok) on your PATH. Configuration lives in ~/.grok/config.toml.
Development
Clone the repository to contribute or run from source:
git clone https://github.com/jamubc/grok-build-providers.git
cd grok-build-providers
npm installInstalled commands
A global install (see Install) registers:
| Command | Description |
| :--- | :--- |
| grok-build-providers | Interactive TUI configuration manager |
| grok-agy | Grok Build with Antigravity (Gemini) proxy |
| grok-codex | Grok Build with Codex proxy |
| grok-deepseek | Grok Build with DeepSeek |
| grok-qwen | Grok Build with Qwen (Alibaba Model Studio) |
| grok-kimi | Grok Build with Kimi (Moonshot AI) |
| grok-zai | Grok Build with Z.ai GLM |
| grok-groq | Grok Build with Groq |
| grok-opencode-go | Grok Build with OpenCode Go |
| grok-opencode-zen | Grok Build with OpenCode Zen |
| grok-openrouter | Grok Build with OpenRouter (live model list) |
Issues & Contributions
Have a bug or feature request?
- Please open an issue on the GitHub Issue Tracker.
- Check the Releases & Downloads for stable tags and archives.
