Grok CLI

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"

grok

Method 2: CLI Arguments

grok -k your-rygen-api-key \
     -u https://api.rygen.io/v1 \
     -m your-model-name

1.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_MODEL environment variable, or
    • -m your-model-name flag

1.3 References