#### AI features

# Terminal integration

Grok Build's AI works inside the terminal too. Generate commands with natural language, and let Agent run terminal commands as part of larger tasks.

## Can agent run terminal commands on its own?

Yes. When Agent needs to install dependencies, run tests, or check build output, it runs terminal commands automatically based on your Run Mode settings.

Configure this in **Grok Build Settings > Agents > Execution and Approvals**. In Grok Build 3.6 and above, choose **Auto-review** (the default), **Allowlist**, or **Run Everything**:

* **Auto-review**. Allowlisted commands run, the rest run in the sandbox when possible, and anything else is screened by an LLM classifier that allows or blocks based on safety and how well the command matches your request. Blocked commands can be re-tried with your approval.
* **Allowlist**. Only commands on your allowlist run. With sandboxing enabled, supported commands outside the allowlist can run in the sandbox.
* **Run Everything**. All commands run without approval. Use **Auto-review** instead if you want most calls to run without prompting.

Before 3.5, the modes were **Run in Sandbox**, **Ask Every Time**, and **Run Everything**. **Ask Every Time** is deprecated in 3.5, and **Run in Sandbox** is now **Allowlist** with sandboxing enabled.

## What is the Grok Build TUI?

The Grok Build TUI, `grok`, runs the agent in your terminal as a standalone tool, without opening the Agents Window. Install it with:

```bash
curl -fsSL https://x.ai/cli/install.sh | bash
```

See the [Grok Build TUI overview](/build/overview) for sign-in, modes, and Windows install.

## Related

* [Terminal reference](/build/agents-window/agent/tools/terminal)
