Skip to content
VS Code

Rein for VS Code

io.github.bugiiiii11/rein

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

client:VS Code transport:stdio runtime:npm

Install Rein in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "rein-agent-file",
      "description": "REIN_AGENT_FILE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "rein-engine-url",
      "description": "REIN_ENGINE_URL",
      "password": true
    },
    {
      "type": "promptString",
      "id": "rein-agent-id",
      "description": "REIN_AGENT_ID",
      "password": true
    },
    {
      "type": "promptString",
      "id": "rein-engine-api-key",
      "description": "REIN_ENGINE_API_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "rein-payer-private-key",
      "description": "REIN_PAYER_PRIVATE_KEY",
      "password": true
    },
    {
      "type": "promptString",
      "id": "rein-network-profile",
      "description": "REIN_NETWORK_PROFILE",
      "password": true
    }
  ],
  "servers": {
    "rein": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@reinconsole/mcp"
      ],
      "env": {
        "REIN_AGENT_FILE": "${input:rein-agent-file}",
        "REIN_ENGINE_URL": "${input:rein-engine-url}",
        "REIN_AGENT_ID": "${input:rein-agent-id}",
        "REIN_ENGINE_API_KEY": "${input:rein-engine-api-key}",
        "REIN_PAYER_PRIVATE_KEY": "${input:rein-payer-private-key}",
        "REIN_NETWORK_PROFILE": "${input:rein-network-profile}"
      }
    }
  }
}

VS Code prompts for each input the first time the server starts, so no secret is written to the file. VS Code docs

Rein in other clients