Coding agent · xAI

Grok CLI

xAI’s coding agent for the command line, running Grok models.

  • Command grok
  • Runs in 9 StoicSoft apps
  • Last verified 2026-12-02

Grok or Grok CLI?

Grok is a chat app. It answers from what you paste or upload, and you carry the result back into your project yourself. Grok CLI is a coding agent: it works inside your project folder, reads the files it needs, makes the change, runs your tests or build and tells you what it did.

The full comparison of chat and coding agents

Install and sign in

Grok CLI has no one-line installer in the catalog. Use the vendor’s instructions at docs.x.ai/build/overview.

Sign in

Go to your project folder and run:

grok login

The first run walks you through signing in. After that, the same command starts a session.

Run it once, without the chat screen

One-shot mode answers a single request and exits. It is how StoicSoft apps run Grok CLI, and how you put it in a script.

grok -p "Explain how this project is organised"

Pick up where you left off

Resume a past session with grok -r <session-id>.

Choose a model

Add --model <model>, for example grok-4.5, grok-code-fast-1. StoicSoft apps read the current list from the agent itself.

Reasoning effort levels: low, medium, high.

Permission levels

How much Grok CLI may do without asking you. Start low; raise it once you trust it on this project.

LevelWhat it meansFlag
Read onlyLooks, answers, changes nothing.No verified flag
Edit filesEdits inside the project folder, asks before commands.--allow Write --allow Edit
Edit and run commandsEdits and runs commands such as your tests.--permission-mode auto
Full autoNo questions asked. Use in a throwaway folder or sandbox.--always-approve

“No verified flag” means the StoicSoft catalog has no tested command-line switch for that level. The agent may still offer it in its own settings; otherwise it asks you each time.

Grok CLI in StoicSoft apps

9 apps run the Grok CLI you installed, signed in to your own account.

  • Runs coding agents as terminals side by side, resumes past sessions, switches models, and lets one agent hand a task to another.

  • Its agent chat drives the CLI you pick and hands it the browser’s own tools over MCP.

  • “Your coding agent” is an AI provider: answers about your machine come from the CLI you are signed in to, so no API key is stored.

  • Chat with your vault through the agent you pick, and feed saved context into your agents.

  • Describe a screen, slide or brand kit; the agent you pick writes it as real files, with a live preview and a quality gate.

  • Dictate the brief; your agent writes the script and the scenes while the app voices and renders them.

  • Turns your recorded clicks and screenshots into a written walkthrough, using your agent CLI or an API key.

  • Its chat runs the agent you pick to do file jobs and hands the results back as files.

  • Can use your coding agent as its AI provider for writing and research, instead of an API key.

The other direction: Grok CLI calling the apps

Every StoicSoft app ships an MCP server. In an app’s agent access screen, pick Grok CLI and the app adds itself to this file:

macOS
~/.grok/config.toml
Linux
~/.grok/config.toml
Windows
%USERPROFILE%\.grok\config.toml

Who checked these facts

Each record is a real run of Grok CLI, by the app or test station that relies on it.

Checked byGrok CLI versionSystemDate
1DevTool—macOS—
1DesignTool1.0.30macOS—
StoicSoft test station1.0.92macOS2026-11-30
StoicSoft test station1.0.92macOS2026-12-02

Binary names: macOS: grok · Linux: grok · Windows: grok.cmd, grok.exe. Also known as grok-cli.

Grok CLI: common questions

What is the difference between Grok and Grok CLI?
Grok is a chat app: it answers from what you paste, and you carry the result back into your project. Grok CLI is a coding agent: it works in your project folder, edits the files and runs commands, then shows you what it changed.
How do I install Grok CLI?
Follow the installer on https://docs.x.ai/build/overview, then type grok login in your project folder; the first run asks you to sign in.
How do I run Grok CLI without the interactive screen?
Use its one-shot mode: grok -p "Explain how this project is organised". It prints the answer and exits, which is how StoicSoft apps and scripts run it.
Which StoicSoft apps support Grok CLI?
1DevTool, StoicBrowser, 1MachineTool, 1AIVault, 1DesignTool, 1VideoTool, 1ShowcaseTool, 1FileTool, 1MarketingTool. It can also call every StoicSoft app over MCP; the apps write themselves into its settings file for you.