mcpField
R

Reins

Local
npmjs.comFinance

About Reins

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

Configuration

Local server config is the same for every client. Copy it into your client’s MCP config file.

mcp.json · Universal config
{
"mcpServers": {
"r2rlabs-reins": {
"command": "npx",
"args": [
"-y",
"@r2rlabs/reins"
],
"env": {
"REINS_SYMBOLS": "<REINS_SYMBOLS>",
"REINS_MAX_POSITION_USD": "<REINS_MAX_POSITION_USD>",
"REINS_DAILY_LOSS_USD": "<REINS_DAILY_LOSS_USD>",
"REINS_MAX_LEVERAGE": "<REINS_MAX_LEVERAGE>",
"REINS_MODE": "<REINS_MODE>",
"REINS_NETWORK": "<REINS_NETWORK>",
"REINS_REQUIRE_STOP_LOSS": "<REINS_REQUIRE_STOP_LOSS>",
"REINS_LOG_FILE": "<REINS_LOG_FILE>",
"REINS_PAPER_FILE": "<REINS_PAPER_FILE>",
"REINS_ACCOUNT_ADDRESS": "<REINS_ACCOUNT_ADDRESS>",
"REINS_PRIVATE_KEY": "<REINS_PRIVATE_KEY>"
}
}
}
}
Run commandnpx -y @r2rlabs/reins
Environment variables to set
REINS_SYMBOLSMarkets the agent may trade, comma separated, e.g. BTC,ETH. Every other market is refused.
REINS_MAX_POSITION_USDLargest position per market, in USD.
REINS_DAILY_LOSS_USDRealised loss in a UTC day after which new risk is refused.
REINS_MAX_LEVERAGELargest total exposure as a multiple of account value.
REINS_MODEpaper (live prices, simulated fills, nothing signed) or live.
REINS_NETWORKHyperliquid network for prices and, in live mode, orders. Mainnet spends real money.
REINS_REQUIRE_STOP_LOSStrue to refuse any order that adds risk without a stop-loss.
REINS_LOG_FILEDecision log, one JSON line per action with the agent's stated reason. In memory if unset.
REINS_PAPER_FILEWhere the paper account is kept between runs. In memory if unset.
REINS_ACCOUNT_ADDRESSLive mode: the Hyperliquid account traded. Approve Reins' 2 bp builder fee from it first: npx @r2rlabs/reins approve-builder
REINS_PRIVATE_KEYSecretLive mode: an API wallet's key, which can trade but not withdraw. Never the account's own key.

Local servers need a runtime on your machine (e.g. Node.js 18+). Config file locations differ by client; see your client’s docs.

Packages
npm@r2rlabs/reins0.1.5

Tools

No tool list yet

Local servers expose tools only once running on your machine, and the maintainer has not provided a tool list.

Details

The maintainer has not added details yet. Check the README in the repository.

Comments

Markdown supported

New to MCP?

From what the protocol is to installing your first server, these answers cover most first questions.

An open protocol that defines how AI applications connect to external tools and data in a uniform way. Clients talk to the model; MCP servers provide tools, resources and prompt templates. They exchange standard messages, so one server can be reused by many clients.