Configure Grok CLI with Nordlys’s advanced AI model Nordlys model for intelligent model selection
Configure Grok CLI to use Nordlys’s Mixture of Models — our Mixture of Models automatically selects the best specialist while maintaining the same AI-powered command line experience.
Get the best AI specialist for every prompt with Nordlys Mixture of Models. Works as a drop-in replacement for Grok CLI’s API backend. The installer automatically configures your shell environment.
export NORDLYS_API_KEY='your-api-key-here'curl -fsSL https://raw.githubusercontent.com/Nordlys-Labs/nordlys/main/scripts/installers/unix/grok-cli.sh | bash# The installer will automatically add the API key to your shell config
Check that API key is properly set in ~/.grok/user-settings.json
Ensure environment variables are exported in your shell config:
Copy
# Check if variables are setecho $NORDLYS_API_KEYecho $NORDLYS_BASE_URL# If not set, restart terminal or source your shell configsource ~/.bashrc # or ~/.zshrc for Zsh users