Client integrationsBeginnersUpdated

Set up Grok Build

This guide uses Grok 4.7 (model ID grok-4.7). Copy your I Code Easy API key from API keys.

Grok Build

Install the client using the Grok Build installation guide. Edit ~/.grok/config.toml on macOS, Linux, or WSL, or %USERPROFILE%\.grok\config.toml on Windows. If you set GROK_HOME, edit config.toml in that directory. Add this model entry to the file.

toml
[model.icodeeasy]
model = "grok-4.7"
name = "I Code Easy · Grok 4.7"
base_url = "https://api.icodeeasy.cc/v1"
env_key = "ICODEEASY_API_KEY"
api_backend = "chat_completions"

Set ICODEEASY_API_KEY in the terminal where you launch Grok Build. The example uses Bash. In PowerShell, run $env:ICODEEASY_API_KEY = "YOUR_ICODEEASY_API_KEY" before the same grok command. icodeeasy is the local selector name. The request sends grok-4.7 as its model ID.

bash
export ICODEEASY_API_KEY="YOUR_ICODEEASY_API_KEY"
grok -m icodeeasy

Verify your first request

Send a short text prompt and confirm the model and status in Usage logs. If the connection is unstable, try https://jp.icodeeasy.cc/v1 or https://sg.icodeeasy.cc/v1 as base_url.

Official client documentation