Use Standard Compute with Grok Build
xAI's open-source coding agent with a fullscreen terminal UI, headless mode and ACP support, which accepts custom OpenAI-compatible and Anthropic Messages models. Paste three settings into Grok Build: the base URL, your Standard Compute API key and the model.
Grok Build resolves credentials per model: model.api_key, then model.env_key, then your xAI session, then XAI_API_KEY. A custom model with its own env_key works while you stay signed in to xAI for Grok models.
Eligible new accounts can try $0.25 of compute, with no card. See trial terms →
Your connection settings
Copy these values, then put them where Grok Build expects them (steps below).
Base URL
https://api.stdcmpt.com/v1API Key
Your Standard Compute keyModel
standardcomputeWhere to set them in Grok Build
- Open ~/.grok/config.toml (on Windows %USERPROFILE%\.grok\config.toml) and add a [model.standardcompute] table.
- Set model = "standardcompute", base_url = "https://api.stdcmpt.com/v1", env_key = "STANDARDCOMPUTE_API_KEY" and api_backend = "chat_completions". Add default = "standardcompute" under [models] to make it the default.
- Export STANDARDCOMPUTE_API_KEY, run grok inspect to confirm the config loaded, then start grok or switch with /model standardcompute.
What changes in Grok Build
Read next