Skip to content
VS Code

Reins for VS Code

io.github.r2rlabs/reins

Risk limits and an audit log for AI agents trading Hyperliquid, enforced outside the model.

client:VS Code transport:stdio runtime:npm

Install Reins in VS Code

.vscode/mcp.json

{
  "inputs": [
    {
      "type": "promptString",
      "id": "reins-symbols",
      "description": "REINS_SYMBOLS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "reins-max-position-usd",
      "description": "REINS_MAX_POSITION_USD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "reins-daily-loss-usd",
      "description": "REINS_DAILY_LOSS_USD",
      "password": true
    },
    {
      "type": "promptString",
      "id": "reins-max-leverage",
      "description": "REINS_MAX_LEVERAGE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "reins-mode",
      "description": "REINS_MODE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "reins-network",
      "description": "REINS_NETWORK",
      "password": true
    },
    {
      "type": "promptString",
      "id": "reins-require-stop-loss",
      "description": "REINS_REQUIRE_STOP_LOSS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "reins-log-file",
      "description": "REINS_LOG_FILE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "reins-paper-file",
      "description": "REINS_PAPER_FILE",
      "password": true
    },
    {
      "type": "promptString",
      "id": "reins-account-address",
      "description": "REINS_ACCOUNT_ADDRESS",
      "password": true
    },
    {
      "type": "promptString",
      "id": "reins-private-key",
      "description": "REINS_PRIVATE_KEY",
      "password": true
    }
  ],
  "servers": {
    "reins": {
      "type": "stdio",
      "command": "npx",
      "args": [
        "-y",
        "@r2rlabs/reins"
      ],
      "env": {
        "REINS_SYMBOLS": "${input:reins-symbols}",
        "REINS_MAX_POSITION_USD": "${input:reins-max-position-usd}",
        "REINS_DAILY_LOSS_USD": "${input:reins-daily-loss-usd}",
        "REINS_MAX_LEVERAGE": "${input:reins-max-leverage}",
        "REINS_MODE": "${input:reins-mode}",
        "REINS_NETWORK": "${input:reins-network}",
        "REINS_REQUIRE_STOP_LOSS": "${input:reins-require-stop-loss}",
        "REINS_LOG_FILE": "${input:reins-log-file}",
        "REINS_PAPER_FILE": "${input:reins-paper-file}",
        "REINS_ACCOUNT_ADDRESS": "${input:reins-account-address}",
        "REINS_PRIVATE_KEY": "${input:reins-private-key}"
      }
    }
  }
}

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

Reins in other clients