Grok CLI uses environment variables for API configuration. When connecting BetterToken, useDocumentation Index
Fetch the complete documentation index at: https://docs.bettertoken.ai/llms.txt
Use this file to discover all available pages before exploring further.
https://www.bettertoken.ai/v1 and a model ID from the Codex group.
Prerequisites
- Node.js installed
- BetterToken API Key (register here (
https://www.bettertoken.ai/register))
Install Grok CLI
Setup
Start Grok CLI with a model
YOUR_CODEX_MODEL_ID with a current Codex group model ID copied from the model plaza (https://www.bettertoken.ai/pricing).We did not find an official Grok CLI setup requirement that makes
User-Agent mandatory for BetterToken. Check the environment variables, model ID, and tool version first; only add headers when your upstream gateway explicitly requires them.