Skip to content
Grok

Rein for Grok

io.github.bugiiiii11/rein

Spend limits for AI agents that pay with x402: every paywall is policy-checked before a cent moves.

client:Grok transport:stdio runtime:npm

Install Rein in Grok

.mcp.json (in your project root)

Held in this page only — never stored, logged, or sent anywhere but back to your screen.

{
  "mcpServers": {
    "rein": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@reinconsole/mcp"
      ],
      "env": {
        "REIN_AGENT_FILE": "<REIN_AGENT_FILE>",
        "REIN_ENGINE_URL": "<REIN_ENGINE_URL>",
        "REIN_AGENT_ID": "<REIN_AGENT_ID>",
        "REIN_ENGINE_API_KEY": "<REIN_ENGINE_API_KEY>",
        "REIN_PAYER_PRIVATE_KEY": "<REIN_PAYER_PRIVATE_KEY>",
        "REIN_NETWORK_PROFILE": "<REIN_NETWORK_PROFILE>"
      }
    }
  }
}

Grok Build reads Claude Code's .mcp.json and Claude Desktop's config unchanged, so a server you have already set up there needs nothing new. The Grok web app and X integration do not take custom servers. Grok docs

Rein in other clients