SuperAPIAI Directory

mishmar

github.com · AI finance

Mishmar is a risk management layer for trading bots and AI agents. It allows users to connect an exchange account once and then finely control which agent can view the account, which can trade, and the trading limits. Every order is checked against user-defined rules before reaching the exchange, large orders require human approval, and no single key can complete a trade on its own. The project provides an API contract, test vectors, an agent signer, the mishmar CLI and an MCP server, as well as Python and TypeScript SDKs. It currently runs with real funds on Hyperliquid and Binance USDⓈ-M futures, and can also be used on testnet first.

Open website Alternatives
PricingOpen source开源项目(可免费自部署)
PlatformsmacOS · Linux · API

About this tool

Mishmar is a risk management layer designed for trading bots and AI agents. Its core goal is to enable users to safely authorize trading accounts to automated programs while maintaining strict control over fund operations.

Purpose

Mishmar addresses the risk problem caused by AI agents or trading bots directly holding exchange keys. With Mishmar, users can connect an exchange account once and then decide which agent can view that account, which can trade, and the limits that trades must comply with. Every read and order is recorded.

Key capabilities

  • Pre-order rule checks: Every order is checked against user-defined limits before reaching the exchange.
  • Human approval for large orders: Orders exceeding the configured threshold are held pending human approval.
  • Key separation: No single key can complete a trade independently. For supported exchanges, a two-party signing scheme (such as FROST or two-party ECDSA) is used: the engine holds one part of the key and the agent's signer holds the other part, and the exchange request is signed only when both parties sign together.
  • Fine-grained permissions: Read-only agents (permission: read) can be created; such agents have only a Mishmar API key and no signer or trading key, and the engine will reject their trade proposals.
  • Full audit: Every read and order decision is recorded, and decisions are signed by the engine and verifiable.
  • Multi-platform support: Currently supports Hyperliquid and Binance USDⓈ-M futures, and can run with real funds or on testnet.

Usage

Mishmar offers multiple integration methods:

  1. SDK integration: Python and TypeScript SDKs are provided. The SDK can run the signer as a subprocess, so the bot itself holds no keys. Orders are submitted as intents, and the subprocess converts them into signed proposals and sends them to the engine.
  2. CLI tool: Provides the mishmar command-line tool, which can be used to propose, read account information, run the signer, and more.
  3. MCP server: Themishmar mcp command provides a stdio-based MCP server through which language models can obtain tools to propose orders, cancel orders, track pending approval decisions, read positions, P&L, approval records, exchange rules, and more. The model never sees keys, and all order proposals go through engine rule checks.
  4. Read-only AI applications: For AI applications that only need to read account information (such as Claude or Cursor), no installation or keys are required; simply provide the address https://mcp.mishmar.io and approve the content it can read in Mishmar.

Use cases

  • Use AI agents or trading bots for automated trading while retaining risk controls.
  • Allow multiple agents to share the same trading account, each with different permissions and limits.
  • Require complete auditing and compliance records of trading activity.
  • Allow language models to participate in trading decisions via the MCP protocol without exposing keys.

Limitations

  • Currently only Hyperliquid and Binance USDⓈ-M futures are supported.
  • The two-party ECDSA signing scheme relies on Coinbase's cb-mpc library and requires a C++ build environment.
  • The signer supports Linux and macOS; on Windows it must run via WSL or Docker.
  • The core engine for executing rules is a private repository; this project only includes client-side code.
  • Some features (such as RSA and proxying) have not yet been built.
  • Specific pricing information is not yet available.
Up/Down to navigate · Enter to open · ESC to closeBrowse all tools