🛡️ ClearFills: a risk firewall between AI agents and your brokerage account
In brief
- 🛡️ [ClearFills](https://clearfills.com) sits between an AI agent and a broker; the agent never holds brokerage credentials.
- 📏 Fixed rules check each order before it goes out: limit orders only, a stop-loss, a risk cap per trade, a position cap and a daily drawdown halt.
- 🔑 Orders need a single-use signed approval, confirmed with a passkey such as Touch ID; every step is written to a hash-chained audit log.
- 💲 Open-core: free Apache-2.0 package via pip; paid kit and installation service.
🛡️ ClearFills is a pre-trade risk layer for people who let AI agents place trades. According to the project page, the agent talks to it through MCP and never sees the broker password; a rule engine without any language model in the loop checks every order before it can run. Supported venues are Interactive Brokers, Alpaca, Polymarket and Kalshi. A free open-core package is installable with pip; a one-time Pro kit and a turnkey installation are paid. It is a tool for trading automation, not a recommendation to trade.
🔒 How it works, as stated by the maker: the agent, for example a model in Claude, Cursor or ChatGPT, connects over a remote MCP server (OAuth 2.1) and proposes orders. ClearFills holds the connection to the broker. Each order passes deterministic checks, described as having no LLM in the loop. The page lists them by code: market orders are forbidden, so only limit orders pass; an order needs an atomic bracket stop-loss, or bounded collateral for binary markets; risk per trade is capped at 1.5 percent of net liquidation value for equities, or at 1.0 percent fractional Kelly on Polymarket and Kalshi; a position may not exceed 20 percent gross concentration; and a daily drawdown kill switch halts trading at a loss of 3.0 percent, failing closed.
✍️ Approval and audit: an order that passes gets a single-use Ed25519 attestation valid for 120 seconds, built on a canonical SHA-256 hash of the order. A replayed order is rejected with a spent-nonce code. Approvals go through a queue where the user confirms with a WebAuthn passkey such as Touch ID, and standing mandates can be set up in advance. All events are written to a hash-chained SHA-256 audit ledger. The site also mentions a combined net-worth view over several entities.
💲 What you get and what it costs, per the page: Open Core is $0 under Apache-2.0 (`pip install clearfills-firewall`) with the risk firewall, the attestation, a paper-trading MCP server and shims for the TradingAgents and ai-hedge-fund projects. The Pro Infrastructure Kit costs $299 one-time and bundles Fly.io, Tailscale, IB Gateway with IBC, a watchdog and adapters for IBKR, Alpaca, Polymarket and Kalshi. A Private Desk Install through MLDSAI Inc. is listed at $15,000 to $25,000.
🧭 Who it is for: people who already experiment with agents that trade and want hard limits outside the model. It is not for anyone who wants an adviser: the rules limit risk but do not choose trades, and the page gives no performance claims we could report. Docs on the guardrails and security are linked from the page, as are machine-readable files for agents. We have not tested the software.