Integrations
Grok Build
Install Grok Build and connect it to Qubrid AI models through an OpenAI-compatible custom model in config.toml
Grok Build is xAI's coding agent and CLI. Connect it to Qubrid AI by adding a custom model in ~/.grok/config.toml that points at Qubrid's OpenAI-compatible endpoint. After setup, you can select your Qubrid model from the Grok Build TUI and use it for coding and agent workflows.
Prerequisites:
- PowerShell on Windows, or a terminal on Linux, macOS, or WSL
- A Qubrid account on the Qubrid AI Platform
- A Qubrid API key (how to generate an API key)
- A Qubrid model ID from the model page or Serverless Models
Install Grok Build
Install the Grok Build CLI before connecting Qubrid.
Run the installer
Open a terminal and run the command for your platform.
Windows (PowerShell):
irm https://x.ai/cli/install.ps1 | iexLinux, macOS, or WSL:
curl -fsSL https://x.ai/cli/install.sh | bashFor official install options and updates, see the Grok Build docs.
Prepare your Qubrid credentials
Before editing the Grok Build config, gather the values you will paste in:
- Open the Qubrid AI Platform and sign in.
- Generate an API key from API Keys. Follow How to generate an API Key.
- Copy the API model string for the model you want from the model page or Serverless Models.
For example, MiniMax M3 uses:
MiniMaxAI/MiniMax-M3Model IDs are case-sensitive. Copy the string exactly.
Your API key is shown only once for security. Store it somewhere safe before closing the dialog. If you lose it, generate a new key from Manage API Keys.
Configure Qubrid AI in Grok Build
Grok Build stores user settings in config.toml under the .grok folder in your home directory.
| Platform | Config path |
|---|---|
| Windows | C:\Users\<your-username>\.grok\config.toml |
| Linux / macOS / WSL | ~/.grok/config.toml |
You can also open %USERPROFILE%\.grok\config.toml on Windows.
Open config.toml
Locate the .grok folder in your user home directory and open config.toml in any text editor.
If the file does not exist yet, create it at the path above after installing Grok Build.
Add a Qubrid custom model
Add a custom model section and set it as the default. Replace the model ID, display name, and API key with your own values:
[model.my-model]
model = "MiniMaxAI/MiniMax-M3"
base_url = "https://platform.qubrid.com/v1"
name = "MiniMax from Qubrid"
api_key = "YOUR_QUBRID_API_KEY"
[models]
default = "my-model"Use these fields as follows:
| Field | What to set |
|---|---|
model | Exact Qubrid API model string from Serverless Models |
base_url | Qubrid OpenAI-compatible endpoint: https://platform.qubrid.com/v1 |
name | Any display label you prefer in the Grok Build model picker |
api_key | Your Qubrid API key |
Leave this block unchanged:
[models]
default = "my-model"The my-model alias must match the [model.my-model] section name above.
Save the file
Save config.toml, then close the editor.
Start Grok Build and select your model
Launch Grok Build
In a terminal or PowerShell, run:
grokYou can also start the interface with:
agentif that command is available on your system after install.
Open the model picker
In the Grok Build TUI, enter:
/modelThen press Space to open the model list.
Select your Qubrid model
The list includes the default Grok 4.5 model and your custom entry.
Identify your Qubrid model by the name value you set in config.toml (for example, MiniMax from Qubrid), then select it.
Your Qubrid integration with Grok Build is now configured.
Monitor usage on Qubrid
Keep an eye on your usage and costs on the Qubrid platform.
- Review Inference Logs to see request history and debug issues.
- Check your credit balance before long or high-volume coding sessions.
- Rotate API keys if you suspect a key was exposed.
Configuration reference
| Setting | Value |
|---|---|
| Config file | ~/.grok/config.toml (Windows: %USERPROFILE%\.grok\config.toml) |
| Base URL | https://platform.qubrid.com/v1 |
| Example model ID | MiniMaxAI/MiniMax-M3 |
| Example display name | MiniMax from Qubrid |
| Default model alias | my-model (leave [models] default = "my-model" as-is) |
| API key | Your Qubrid API key |
Model IDs vary by model. Always copy the exact string from Serverless Models.
Frequently Asked Questions (FAQ)
Go to Grok Build Docs
Official Grok Build documentation for install, custom models, TUI commands, and CLI usage.