Skip to main content

Grok CLI

Grok CLI is a community-built, unofficial Grok-powered coding agent for the terminal. Official site: grokcli.io

1.1 Usage

Method 1: Environment Variables

Run these commands in the same terminal session before starting grok:

export GROK_API_KEY="your-hpc-ai-api-key"
export GROK_BASE_URL="https://api.hpc-ai.com/inference/v1"
export GROK_MODEL="minimax/minimax-m2.5"

grok

Method 2: CLI Arguments

grok -k your-hpc-ai-api-key \
-u https://api.hpc-ai.com/inference/v1 \
-m minimax/minimax-m2.5

1.2 Notes

  1. This project is community-built and unofficial. It is not affiliated with or endorsed by xAI.
  2. Some built-in behavior is Grok-oriented, such as the built-in model list and xAI Batch API support.
  3. If the CLI falls back to a Grok model name, explicitly set GROK_MODEL or pass -m minimax/minimax-m2.5.

1.3 References