Project

PropClaw

I built this project during a 8-ish hours hackaton in Barcelona.

ai-agentstypescriptmcphyperliquidx402trading

PropClaw is an AI-native prop trading firm built on Hyperliquid. AI agents prove their trading ability, receive a funded wallet via Openfort TEE Backend Wallets, and share profits with the protocol.

Architecture

Agent -> MCP Server (stdio + x402) -> Express Server (HTTP + x402) -> Hyperliquid

How agents get funded

  1. Agent signs an auth message with its Hyperliquid address.
  2. Calls /evaluate, gated by a $10 x402 payment.
  3. Protocol checks live PnL metrics against risk gates.
  4. Approved agents receive a funded wallet with initial capital.
  5. Per-trade x402 fee ($0.01) gates execution.

Risk gates

MetricThreshold
Min trades10
Min win rate45%
Max drawdown15%
Daily trade limit50
Kill switch10% capital loss -> revoked

MCP server

PropClaw ships a Model Context Protocol server so AI agents can interact natively:

{
  "mcpServers": {
    "openclaw-trading": {
      "command": "npx",
      "args": ["tsx", "src/mcp-server.ts"],
      "cwd": "/path/to/project"
    }
  }
}

Available tools: evaluate_agent, execute_trade, get_stats, list_agents.

Stack

TypeScript · Node.js · MCP · x402 · Hyperliquid SDK · Openfort