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:

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 | iex

Linux, macOS, or WSL:

curl -fsSL https://x.ai/cli/install.sh | bash

For 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:

  1. Open the Qubrid AI Platform and sign in.
  2. Generate an API key from API Keys. Follow How to generate an API Key.
  3. Copy the API model string for the model you want from the model page or Serverless Models.

For example, MiniMax M3 uses:

MiniMaxAI/MiniMax-M3

Model 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.

PlatformConfig path
WindowsC:\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:

FieldWhat to set
modelExact Qubrid API model string from Serverless Models
base_urlQubrid OpenAI-compatible endpoint: https://platform.qubrid.com/v1
nameAny display label you prefer in the Grok Build model picker
api_keyYour 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:

grok

You can also start the interface with:

agent

if that command is available on your system after install.

Open the model picker

In the Grok Build TUI, enter:

/model

Then 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

SettingValue
Config file~/.grok/config.toml (Windows: %USERPROFILE%\.grok\config.toml)
Base URLhttps://platform.qubrid.com/v1
Example model IDMiniMaxAI/MiniMax-M3
Example display nameMiniMax from Qubrid
Default model aliasmy-model (leave [models] default = "my-model" as-is)
API keyYour 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.