Skip to main content

Rein

io.github.bugiiiii11/rein

v0.8.0Updated Oct 18, 2026stdio · npm

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

Install

Nothing to fill in: copy and run.

Run in your terminal

claude mcp add rein -- npx -y @reinconsole/[email protected]

Configuration

6 settings.

  • REIN_ENGINE_API_KEY
    Env var· optional· secret
    Bearer key for the engine, ideally an evaluate key narrowed to this agent.
  • REIN_PAYER_PRIVATE_KEY
    Env var· optional· secret
    Agent wallet key. Omit for advisory mode: policy is checked, nothing is paid.
  • REIN_AGENT_FILE
    Env var· optional
    Path to the rein-agent.json written by `npx @reinconsole/init` (engine URL, agent id, API key, wallet).
  • REIN_ENGINE_URL
    Env var· optional
    Policy engine base URL. Required unless REIN_AGENT_FILE is set.
  • REIN_AGENT_ID
    Env var· optional
    The one agent this server speaks for. Required unless REIN_AGENT_FILE is set.
  • REIN_NETWORK_PROFILE
    Env var· optional
    testnet (default) or mainnet: which network's 402s this server will pay.

Listed in the official MCP Registry since Oct 18, 2026. Mirrored daily; last checked Nov 26, 2026.