Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.llmeasy.ru/llms.txt

Use this file to discover all available pages before exploring further.

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

Prerequisites

  • Node.js installed
  • LLMEasy API Key (register here (https://www.llmeasy.ru/register))

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_CODEX_MODEL_ID
Replace YOUR_CODEX_MODEL_ID with a current Codex group model ID copied from the model plaza (https://www.llmeasy.ru/pricing).
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.