# Try Grok CLI in a browser sandbox

xAI's Grok, agentic in your terminal

Source: https://www.agentclash.dev/try/grok
Markdown export: https://www.agentclash.dev/md/try/grok
Session limit: 10 minutes

A page visit does not create a sandbox. Starting a disposable session requires an explicit action on the HTML page.

## Suggested commands

- **Show version**: `grok --version`
- **Set your key (prompts you)**: `read -rsp 'Paste your xAI API key: ' XAI_API_KEY && export XAI_API_KEY && echo ' ✓ key set'`
- **Start Grok**: `grok`

## Authentication

Grok CLI is fully key-based — paste your own xAI API key. It stays in this disposable sandbox.

1. Grab a key from console.x.ai
2. Run: export XAI_API_KEY=xai-...
3. Then start it: grok

## Links

- [Documentation](https://docs.vibekit.sh/agents/grok)
- [Source repository](https://github.com/superagent-ai/grok-cli)