Rein
by github.com/bugiiiii11 · v0.8.0 · updated Oct 18, 2026
Spend limits for AI agents that pay with x402: every paywall is policy-checked before a cent moves.
Run it locally
Install the package and point your AI client at it.
npm
npx -y @reinconsole/[email protected]Environment variables
REIN_AGENT_FILEPath to the rein-agent.json written by `npx @reinconsole/init` (engine URL, agent id, API key, wallet).
REIN_ENGINE_URLPolicy engine base URL. Required unless REIN_AGENT_FILE is set.
REIN_AGENT_IDThe one agent this server speaks for. Required unless REIN_AGENT_FILE is set.
REIN_ENGINE_API_KEYsecretBearer key for the engine, ideally an evaluate key narrowed to this agent.
REIN_PAYER_PRIVATE_KEYsecretAgent wallet key. Omit for advisory mode: policy is checked, nothing is paid.
REIN_NETWORK_PROFILEtestnet (default) or mainnet: which network's 402s this server will pay.
More MCP servers
Koschei
github.com/bugsbuny243
Run agent-written code under a capability policy: see what a program can touch before it runs.
BuildBetter
github.com/buildbetter-app
Research customer feedback, calls, support, surveys and product usage with source citations.
cpcp
github.com/builderbasetech-lgtm
Send files and text with a six-digit transfer code. Remote MCP for agents.
Bilt
github.com/buildingapplications
AI agents autonomously build and deploy mobile apps through natural language workflows
Repo Cartographer
github.com/builditwithgk
Maps any repo into an architecture diagram (Mermaid/Graphviz) and enforces architecture rules in CI
Whittle Mcp
github.com/builditwithgk
Trim test logs, JSON, diffs and OpenAPI for agents, and measure what was kept