Skip to main content
Grok CLI uses environment variables for API configuration. When connecting LLMEasy, use https://www.llmeasy.ru/v1 and a model ID from the GPT Key group.
Grok CLI is better suited to lightweight usage. For full agent workflows, prefer Claude Code, Codex, or OpenClaw.

Prerequisites

Install Grok CLI

npm install -g @vibe-kit/grok-cli

Setup

1

Clear conflicting environment variables

unset OPENAI_API_KEY
unset OPENAI_BASE_URL
2

Set LLMEasy environment variables

export GROK_BASE_URL="https://www.llmeasy.ru/v1"
export GROK_API_KEY="YOUR_API_KEY"
3

Start Grok CLI with a model

grok --model YOUR_GPT_MODEL_ID
Replace YOUR_GPT_MODEL_ID with a current GPT Key group model ID copied from the model plaza.
4

Restart Grok CLI

After changing the environment variables, close the current Grok CLI session and start the tool again.
We did not find an official Grok CLI setup requirement that makes User-Agent mandatory for LLMEasy. Check the environment variables, model ID, and tool version first; only add headers when your upstream gateway explicitly requires them.