Install Grok CLI globally

getting started

// what it does

Grok CLI ships as the npm package @vibe-kit/grok-cli and installs a binary named grok on your PATH. Bun is the recommended runtime, but it also runs on Node.js 18+, so npm install -g works as a fallback. Once installed, run grok from any project directory.

// shell

$ bun add -g @vibe-kit/grok-cli
$ npm install -g @vibe-kit/grok-cli

// gotcha

The binary is grok while the package is @vibe-kit/grok-cli — they intentionally differ. If grok is not found after an npm global install, your npm global bin folder is off PATH; add $(npm config get prefix)/bin to it and reopen the terminal.

// resources