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.
[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.
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
Related guides
Grok 4.7 API and Claude Code setup guide
Configure Grok 4.7 in Claude Code with an I Code Easy API key on macOS, Linux or Windows. Verify requests, fix common errors and distinguish text from Imagine media models.
Chat Completions
Send a conversation using the OpenAI Chat format. Check that your model and selected endpoint support the Chat protocol before sending the request.
How do I troubleshoot slow connections or failed requests?
Match 401, 403, 429, timeouts, and Gemini path errors before changing hosts. Switch to the jp or sg backup domain only after the network is the problem.