Point Grok at an OpenAI-compatible provider
models and endpoints
// what it does
Grok CLI speaks the OpenAI chat-completions standard, so any compatible provider works by setting baseURL and the matching key: OpenAI (https://api.openai.com/v1), OpenRouter (https://openrouter.ai/api/v1), or Groq (https://api.groq.com/openai/v1). Set defaultModel to one that provider serves.
// shell
$ ~/.grok/user-settings.json