Run Grok CLI in a secure and private sandbox
code
mode.
The Grok CLI runs in the configured environment and has access to the network, which means it could be used to connect to the outside world. This is a powerful feature that can be used to build powerful applications and should be used with caution.
Read more about Grok CLI
grok-beta
- Latest Grok model (default)grok-2-latest
- Grok-2 latest versiongrok-2-mini
- Grok-2 mini version for faster responsesGROK_API_KEY
- Your xAI API key (required)XAI_API_KEY
- Alternative name for your xAI API keyGROK_BASE_URL
- Custom API base URL (optional)