> interactive session
Run grok with no arguments to open the Ink-based terminal UI. You chat in natural language and Grok chooses tools automatically, while slash commands typed at the prompt control the session. The built-in commands are /help, /clear, /models, /commit-and-push, and /exit.
// interactive session
6 commands// faq
What slash commands does Grok CLI support?
The built-in ones are /help (show help), /clear (clear chat history), /models (switch model), /commit-and-push (AI commit and push), and /exit (quit). Type / at the prompt to see them suggested and filtered as you type; use the arrow keys to highlight and Tab or Enter to select.
How do I stop Grok mid-task?
Press Esc to cancel an open suggestion popover, and Ctrl+C to exit the application from the prompt. There is no separate destructive-command confirmation, so interrupt early if it starts down the wrong path.
Does /clear delete my files?
No. /clear only wipes the conversation history so the model starts without prior context; any edits Grok already wrote to disk stay. There is no undo for the cleared history itself.
Can I change the model without restarting?
Yes — /models opens a picker mid-session. Your choice applies to the rest of the session and is saved as "model" in the project's .grok/settings.json, so it persists the next time you open that project.