Skip to content
Grok

x402 Trinity for Grok

io.github.devmster/x402-trinity

Give an agent a wallet. Pays for x402 resources within hard limits. Base + USDC, gasless.

client:Grok transport:stdio runtime:npm

Install x402 Trinity 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": {
    "x402-trinity": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "x402-trinity"
      ],
      "env": {
        "X402_PRIVATE_KEY": "<X402_PRIVATE_KEY>",
        "X402_MAX_PER_REQUEST": "<X402_MAX_PER_REQUEST>",
        "X402_TOTAL_BUDGET": "<X402_TOTAL_BUDGET>",
        "X402_BUDGET_FILE": "<X402_BUDGET_FILE>",
        "X402_ALLOW_HOSTS": "<X402_ALLOW_HOSTS>",
        "X402_NETWORKS": "<X402_NETWORKS>"
      }
    }
  }
}

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

x402 Trinity in other clients