Grok CLI is a terminal-based coding assistant built by the community to leverage Grok-style AI capabilities for development workflows. | https://grokcli.io
1.1 Usage
Method 1: Environment Variables
Run these in your terminal before starting the CLI:
export GROK_API_KEY="your-rygen-api-key"
export GROK_BASE_URL="https://api.rygen.io/v1"
export GROK_MODEL="your-model-name"
grokMethod 2: CLI Arguments
grok -k your-rygen-api-key \
-u https://api.rygen.io/v1 \
-m your-model-name1.2 Notes
- This is a community-built, unofficial tool and not affiliated with xAI
- Some defaults may assume Grok-native models
- If it falls back to a Grok model, explicitly set:
GROK_MODELenvironment variable, or-m your-model-nameflag

