# Grok Bot — OpenGen Setup

> Add OpenGen as a custom Remote HTTPS MCP connector in Grok Bot or Grok CLI.

- **Client kind:** Hosted assistant
- **Integration approach:** Custom Remote HTTPS MCP (OAuth DCR)
- **Verification status:** LIVE GENERATION VERIFIED
- **Reviewed:** 2026-11-30
- **Canonical HTML:** https://opengen.dev/docs/clients/grok-bot
- **Source reference:** [Grok Bot app documentation](https://docs.x.ai/grok-bot/computer-and-apps)

## Agent Prompt

```text
Walk the user through connecting Grok Bot to OpenGen (https://opengen.dev/mcp for authenticated read+generate OAuth, https://opengen.dev/mcp/readonly for zero-auth catalog discovery, or @opengen-dev/cli for shell workflows) following https://opengen.dev/docs/clients/grok-bot.md. Review configuration commands before running them, keep credentials out of prompts and version control, and verify read-only access (balance / find_models / opengen doctor) before proposing any paid generation.
```

## Setup Steps

1. In Grok Bot, open Connect apps (bottom-left), scroll to the bottom, and select Add a custom connector → Add MCP Server.
2. Enter OpenGen as the Name and https://opengen.dev/mcp (or your self-hosted gateway’s /mcp URL) as the Server URL. Leave Headers blank on web (or choose Remote HTTPS with blank Client ID / Client secret on desktop) to use OAuth dynamic client registration, then select Add MCP.
3. Complete OpenGen browser sign-in and workspace consent, verify OpenGen appears Connected with its 15 MCP tools, and check balance and get_model before approving a bounded generation.

## Configuration & Commands

### Grok CLI registration command · review before running

```bash
grok mcp add --transport http opengen https://opengen.dev/mcp
```

### Equivalent ~/.grok/config.toml entry

```json
[mcp_servers.opengen]
url = "https://opengen.dev/mcp"
```

## Verification Evidence & Cautions

**Recorded evidence (2026-11-30):** Grok Bot web (2026-11-30): verified live OAuth DCR + PKCE workspace consent, live refresh-token rotation (POST /oauth/token 200, balance >6h later without re-auth on 484d99f), 6/6 MCP tools discovered, balance and catalog_get, live bounded openai/gpt-image-2 text-to-image (1K, low quality; $0.006 settled from $0.03 hold), and clickable first-party /media PNG fallback link delivery against https://opengen.dev/mcp. Other models/operations, Grok desktop, and Grok CLI remain separately unverified.

**Important boundaries:** No OpenGen marketplace plugin is published for Grok Bot. Grok Bot web completed live OAuth DCR + PKCE workspace consent, live refresh-token rotation (POST /oauth/token 200, balance succeeded >6h later without manual re-auth on 484d99f), 6/6 MCP tool discovery, balance and catalog_get, a live bounded openai/gpt-image-2 text-to-image generation (1K, low quality; $0.006 settled from a $0.03 hold), and clickable first-party /media PNG fallback link delivery against https://opengen.dev/mcp on 2026-11-30. Other models and operations, the Grok desktop app, and Grok CLI remain separately unverified.

## Related Links

- [All Agent Clients & Support Matrix](https://opengen.dev/docs/clients.md)
- [MCP Integration Guide](https://opengen.dev/docs/mcp.md)
- [Quickstart Guide](https://opengen.dev/docs/quickstart.md)
- [Installable Skill (skill.md)](https://opengen.dev/skill.md)
- [AI Index (llms.txt)](https://opengen.dev/llms.txt)
