# ClearFills > ClearFills (`v0.8.0`) is an open-core Agentic Wealth & Execution OS (`https://clearfills.com`). Connect any AI agent you already pay for (Claude Code, Codex, Cursor, Windsurf, ChatGPT, Gemini, OpenClaw) over MCP (`com.clearfills/clearfills`) without giving it brokerage passwords or wallet keys. ClearFills unifies Personal + Corporate (OpCo/HoldCo) net worth with live multi-currency FX, enforces modular Built-In Guard Packs (Core Execution & Risk, Tax & Cross-Border, Compliance & Governance) plus unlimited Custom User Guards (0.34ms avg / 0.61ms p99 across 25 adversarial benchmark scenarios: 20/20 attacks blocked, 5/5 legit approved), and executes across 4 venues (IBKR, Alpaca, Kalshi v2, Polymarket CLOB) using Dual-Key verification (120s single-use Ed25519 policy ticket + WebAuthn P-256 Secure Enclave co-signature). Apache-2.0 Open Core (`pip install clearfills`). Built by MLDSAI Inc., Toronto. ## Product Surfaces (`https://clearfills.com/console`) - **Global Paper / Live Isolation:** Top-bar `Paper / Live` toggle, amber Paper banner, explicit `LIVE MONEY` vs. `PAPER / SANDBOX` Inbox badges, and automatic exclusion of `ibkr-paper-*` / `clearfills_sandbox` accounts from Live Net Worth & Net Worth Over Time history once real accounts exist. - **Portfolio (`/console/portfolio`):** Multi-entity (`personal`, `corporate`, `holdco`, `joint`, `trust`) net worth with live multi-currency FX, daily Net Worth Over Time chart, custody/deployment breakdown, 1-click MetaMask & SnapTrade (20+ brokerages) read-only sync, IBKR Desk sync (automatic masked-ID deduplication), up to 10 isolated Sub-Desks (`/api/v1/cloud/desks`), and a 60-second Sandbox Demo. - **Inbox (`/console/inbox`):** Human-only 1-Tap Trade Approval Queue with Dual-Key WebAuthn P-256 (`sha256(nonce:approval_hash)`) co-signing, MetaMask EIP-712 (`eth_signTypedData_v4`, `uint256` `token_id`) signing for Polymarket CLOB orders, pre/post cash diffs, `clearfills watch` heartbeat indicator, and SHA-256 hash-chained Execution Receipts (CPA export via `/api/v1/cloud/audit/export`). - **Multi-Channel Approval Alerts & PWA Push:** Native VAPID Web Push (`/sw.js`, `/manifest.webmanifest`, 1-click *Enable Push Alerts*, iPhone *Share -> Add to Home Screen -> Enable Push*, $0/message), Email alerts (Resend REST API + SMTP fallback, enabled by default with `Review & Approve with Touch ID`), Telegram Bot (`inline_keyboard` approve button), Twilio SMS, Slack/Discord/Webhooks, and `POST /api/v1/cloud/notifications/test`. - **Rules (`/console/rules`):** Built-In Guard Packs, Custom User Guards & Standing Mandates, Per-Sleeve Guardrails (`cash_equivalent`, `core_index`, `active_trading`), global Kill-Switch, 1-Click IBKR Enclave Provisioner (`/api/v1/cloud/ibkr-enclave/plan` & `/provision`), Hosted Remote MCP setup, API key rotation (`/api/v1/cloud/keys/rotate`), and Scoped Agent Keys (`Console -> Rules -> Connect Agents` -> `cf_agk_...`). - **Lab (`/console/lab`):** Cryptographically Verified Track Record (`/api/v1/public/track/{tenant_id}`), Server-Side Deflated Sharpe Ratio Trial Ledger (`N_eff`), OpenTimestamps Bitcoin-anchored Forecast Councils, point-in-time SEC EDGAR XBRL verifier (`/api/v1/cloud/research/verify-claim`), broker-reconciled Ed25519 notary receipts, and TLSNotary MPC-TLS proof verification (`clearfills prove` / `clearfills verify-proof`). ## Public Audits, Proofs & Benchmarks (`v0.8.0`) - **60-Second Portfolio & HoldCo Audit (`https://clearfills.com/audit`):** Read-only IBKR Flex XML / CSV upload plus 3 built-in presets to surface idle cash drag, FX spread leakage, wash-sale collisions, and CCPC SBD thresholds. - **ClearFills Verified (`https://clearfills.com/verify`):** Embeddable SVG proof badges and public audit-chain verifier backed by Ed25519 notary receipts and TLSNotary MPC-TLS proofs. - **OpenTimestamps Frontier Council (`https://clearfills.com/arena`):** Prospective multi-agent forecast council hashed before resolution and Merkle-anchored to Bitcoin via OpenTimestamps (`.ots`). - **Red-Team Firewall Challenge (`https://clearfills.com/challenge`):** Interactive adversarial firewall challenge matching the local 25-scenario `clearfills benchmark` suite (20/20 attacks blocked, 5/5 legit approved, 0.34ms avg / 0.61ms p99). ## Connect via MCP, CLI & Drop-in Examples (`v0.8.0`) - **Official MCP Registry:** `com.clearfills/clearfills` - **Hosted Remote Streamable-HTTP MCP:** `https://clearfills-api.fly.dev/mcp` (OAuth 2.1 `cf_oat_...` or scoped `cf_agk_...` key minted in `Console -> Rules -> Connect Agents`) - **Local Stdio MCP:** `uvx clearfills mcp --cloud` (or `pip install clearfills`) - **OAuth Discovery:** `https://clearfills-api.fly.dev/.well-known/oauth-protected-resource` - **Strict Privilege Separation:** `decide_approval` is removed from `/mcp`. Exposes **17 agent-scoped tools**: `get_net_worth`, `sync_account_snapshot`, `propose_trade`, `submit_for_approval`, `list_approvals`, `list_mandates`, `create_mandate`, `evaluate_mandates`, `get_track_record`, `get_kill_switch_status`, `verify_audit_chain`, `manage_watchlist`, `save_research_note`, `list_research_notes`, `log_trade_journal`, `list_trade_journal`, `run_backtest`. - **PyPI Open Core CLI (`pip install clearfills` v0.8.0, 12 subcommands):** - `init`, `doctor`, `mcp`, `watch`, `sync`, `validate`, `redteam`, `benchmark`, `compile-policy`, `serve`, `prove`, `verify-proof` - `clearfills benchmark` (25-scenario adversarial benchmark: 20/20 attacks blocked, 5/5 legit approved, 0.34ms avg / 0.61ms p99) - `clearfills compile-policy ""` (deterministic natural-language policy compiler, zero LLM calls) - **Drop-in `examples/` (`https://github.com/clearfills/clearfills/tree/main/examples`):** Ready-to-run adapters for `TradingAgents`, `ai-hedge-fund`, and `Polymarket MetaMask EIP-712`. ## Built-In Guard Packs + Custom User Guards - **Core Execution & Risk Pack (Always On):** Limit-only (`MARKET_ORDER_FORBIDDEN`), hard stop-loss (`MISSING_HARD_STOP`), sleeve-aware heat, notional, and settled-cash caps (`MAX_TRADE_RISK_EXCEEDED`, `MAX_ORDER_NOTIONAL_EXCEEDED`, `INSUFFICIENT_CASH`, `PRICE_COLLAR_EXCEEDED`), daily loss kill-switch (`DAILY_DRAWDOWN_KILLSWITCH`), fractional Kelly sizing (`KELLY_FRACTION_EXCEEDED`), and replay protection. - **Tax & Cross-Border Pack (Optional):** ±30-day cross-entity wash-sale / superficial-loss (`WASH_SALE_WINDOW_CONFLICT`, `VOO -> VTI`, `VEQT -> XEQT`), IBKR Spot FX vs. bank spread router (`FX_SPREAD_LIMIT_EXCEEDED`, Norbert's Gambit `DLR.TO -> DLR.U.TO`), corporate passive-income thresholds / CCPC $50k SBD (`CCPC_SBD_GRIND_RISK`, `cda_rdtoh_guard`), Canada-US Treaty Art. XXI withholding (`TREATY_WITHHOLDING_DRAG`), and PFIC detection (`PFIC_FORM_8621_RISK`). - **Compliance & Governance Pack (Optional):** Insider blackout windows (`blackout_window_guard`, 10b5-1), 100% options collateral locks (`options_collateral_guard`, no naked short calls), and after-tax liability arbitrage (`liability_arb_v2`). - **Custom User Guards (Zero Fixed Limit):** - **Path 1 (AI Agent Declarative, Human-Approved):** Ask Claude or Codex in plain English (e.g. *"Add a rule blocking semiconductor buys over $15k and blocking AAPL on earnings week."*). Compiles via `clearfills compile-policy` or zero-`eval` `DeclarativeGuardRule` JSON/YAML. Monotonic confinement: agents can draft rules or narrow limits; only the human (`cf_sess_` + WebAuthn) can activate, weaken, or remove guards. - **Path 2 (5-Line Python Plugin via `@firewall.guard`):** Register custom Python checks directly on `FirewallService`. Executes inside the exact same Ed25519 attestation boundary, logs to the SHA-256 audit chain, and fails closed (`CUSTOM_GUARD_ERROR`) on any exception. ## 4 Zero-Custody Execution Venues - **Interactive Brokers (IBKR):** Local TWS/IB Gateway or dedicated Fly.io + Tailscale + IBC watchdog (`clearfills watch`); parent/child limit+stop brackets. - **Alpaca (Paper & Live):** Atomic `order_class="oto"` and `order_class="bracket"` limit+stop execution. - **Kalshi v2:** Live-verified 2026 `POST /portfolio/events/orders` endpoint (`bid`/`ask` + fixed-point dollar prices) with local RSA-PSS SHA-256 per-request signing (`KALSHI-ACCESS-SIGNATURE`) and demo/prod separation. - **Polymarket CLOB:** Browser MetaMask EIP-712 (`eth_signTypedData_v4`) signing inside Approval Inbox (or local `clearfills watch`); Polygon private keys never touch ClearFills servers or AI agents. ## Two Proof-of-Fill Modes - **Broker-Reconciled SHA-256 + Ed25519 Notary Receipts (Live Today):** Live in Cloud and open core; chains every reconciled fill into the append-only SHA-256 audit ledger. - **TLSNotary MPC-TLS (`clearfills prove` / `clearfills verify-proof`):** Client-side MPC-TLS notarization over HTTPS broker responses with zero-knowledge redaction of API keys and account IDs. ## Pricing & Deployment Tiers - **Open Core (`$0`):** Apache-2.0 `pip install clearfills`, local MCP (`uvx clearfills mcp`), `clearfills benchmark`, `clearfills compile-policy`, `clearfills watch`, `clearfills prove`, and hosted 60-second Sandbox. - **Personal CFO (`$49/mo`):** Hosted Cloud Console, multi-account sync, core wealth/FX/wash-sale mandates, Dual-Key WebAuthn Inbox, Slack/Discord alerts. - **HoldCo & Team (`$149/mo`):** OpCo + HoldCo multi-entity consolidation, all Built-In Guard Packs + Custom User Guards, 365-day audit chain, broker-reconciled SHA-256 + Ed25519 notary receipts. - **Enterprise VPC (`$1,500-$2,500/mo`):** Dedicated Fly.io + Tailscale VPC or AWS Nitro Enclave (Enterprise VPC kit), KMS/HSM Ed25519 key isolation, 2-of-3 Passkey quorum, custom compliance mandates, SSO/SAML, and SLA support. - **Non-custodial software only:** ClearFills does not provide investment advice, manage client funds, or take custody of assets. ## Links - Console: https://clearfills.com/console - Docs: https://clearfills.com/docs - Workspace, Alerts & Lab Docs: https://clearfills.com/docs/workspace - CLI & API Reference: https://clearfills.com/docs/reference - Technical Deep Dive & Verification Spec: https://clearfills.com/docs/deep-dive - 60-Second Portfolio & HoldCo Audit: https://clearfills.com/audit - ClearFills Verified Badges: https://clearfills.com/verify - OpenTimestamps Frontier Council: https://clearfills.com/arena - Red-Team Firewall Challenge: https://clearfills.com/challenge - Engineering & Quant Blog: https://clearfills.com/blog - Full Technical Reference: https://clearfills.com/llms-full.txt - Agent Contract: https://clearfills.com/agents.txt - GitHub (Apache-2.0): https://github.com/clearfills/clearfills - Drop-in Examples: https://github.com/clearfills/clearfills/tree/main/examples - PyPI: https://pypi.org/project/clearfills/ - MCP Registry: `com.clearfills/clearfills` - API Health: https://clearfills-api.fly.dev/api/v1/health