Run Grok without installing it
getting started
// what it does
npx pulls @vibe-kit/grok-cli into a temporary cache and runs its grok binary once, leaving nothing installed globally. Prefix the command with GROK_API_KEY so the throwaway process can authenticate, and add -p to run a single prompt and exit.
// shell
$ npx @vibe-kit/grok-cli$ GROK_API_KEY=xai-your-key npx @vibe-kit/grok-cli -p "summarize this repo"// gotcha
npx re-resolves and downloads the package on the first run of each session and always grabs the latest published version. For anything repeated, a global install is faster and lets you stay on a known version.