Requires a valid Routeway API key. Get yours from the dashboard.
Setup
Install Grok CLI
Requires Node.js 18 or newer:Verify the installation:
If you encounter permission issues, try
sudo (macOS/Linux) or run the command prompt as administrator (Windows).Configure environment variables
Grok CLI reads To make these persistent, add them to your shell profile (e.g.
GROK_BASE_URL and GROK_API_KEY from your environment:~/.zshrc or ~/.bashrc).Start using Grok CLI
Launch with a specific model:Since you’re connected to Routeway, you can use any available model:Browse all available models at routeway.ai/models.
Available Grok Models
| Model | Description |
|---|---|
grok-3 | xAI flagship model |
grok-3-fast | Faster, more cost-effective version |
grok-3-mini | Lightweight version |
Known Limitations
Grok CLI has limited compatibility with thinking/reasoning models. When you use a thinking model, the full reasoning content may be shown in the output. If you want first-party CLI support for Routeway, consider Claude Code or Codex CLI.Troubleshooting
| Issue | Solution |
|---|---|
401 Unauthorized | Check your API key is correct and has credits |
GROK_BASE_URL not set | Ensure the environment variable is exported |
Model not found | Verify the model name at routeway.ai/models |
Command not found: grok | Run npm install -g @vibe-kit/grok-cli again |
| Thinking content flooding output | Use a non-thinking model variant |