Grok Build reads ~/.grok/config.toml. Merge the blocks below into
that file. The endpoint routes built-in Grok models through Sleev, while the
extra headers provide Sleev routing and the auth values Grok's servers expect.
With this in place, requests bill to your Grok subscription sign-in.
xAI API billing
To use a pay-as-you-go xAI API key instead, remove the subscription blocks and
add this custom provider. Paste your key from console.x.ai into api_key, or use env_key = "XAI_API_KEY". Sleev sends
the key per request and never stores it.
Reference the provider from each model you want routed through Sleev:
Note: Sleev serves Grok Build on the Responses API only. Do
not set api_backend to "messages" or "chat_completions".