Grok Build access
Configure the site address, independent keys and available models in Grok Build.
Grok Build’s custom model can point to the Responses interface of this site. First make sure that the installed CLI version has the corresponding configuration capabilities, and you cannot mix the xAI official website login and this site key.
Step one: Installation and preparation
Install the corresponding platform version through the CLI installation portal in xAI official documentation, check the installation source and then execute. Do not download scripts from unknown mirrors. After installation run:
grok version
Press Quick Start to safely export DUNDUN_API_KEY and select the available Responses model.
Step 2: Configure the model
Back up ~/.grok/config.toml and merge the following configurations:
[models]
default = "dundun-grok"
[model.dundun-grok]
model = "MODEL_ID"
base_url = "https://dunduntoken.com/v1"
name = "DunDun Grok"
env_key = "DUNDUN_API_KEY"
api_backend = "responses"
dundun-grok is the client configuration name, and model is the actual model ID. env_key refers to the variable name. This layout corresponds to the custom model version in the reference tutorial; if the local verification does not accept fields, check the version document first and do not try to modify irrelevant login files.
Step 3: Verification
grok -p "只回复 OK" -m dundun-grok
grok
Check the Call Record of this site to confirm that the target model is used. Then test directory reading, tool result return and multiple rounds of tasks. The model name does not have to contain grok, whether it works depends on Responses and tool capabilities.
FAQ
401 Check startup process variables; 404 Check final /v1/responses; Configuration does not take effect Check current user directory and explicit -m selection. When the interaction works but the background fails, re-verify the network and configuration in the background environment.