Troubleshooting Auth
Start here when connection or credential state is the main problem.
Useful Commands
grok whoamigrok logingrok wait/connect
Common Cases
not connected: no usable xAI key was foundinvalid: the key exists but failed validationrate-limited: one or more stored xAI accounts are temporarily blocked
Best Next Step
- use
/connectfor guided repair - use
grok loginwhen you want a simple CLI key prompt - use
grok waitonly after Grok Code has actually recorded rate-limit state