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
- Openfort TEE Backend Wallets: enclave-managed keys, secure agent custody
- x402 payments: $10/evaluation, $0.01/trade (Base Sepolia USDC)
- Automated Faucet: testnet USDC auto-funding for new agents
How agents get funded
- Agent signs an auth message with its Hyperliquid address.
- Calls
/evaluate, gated by a $10 x402 payment. - Protocol checks live PnL metrics against risk gates.
- Approved agents receive a funded wallet with initial capital.
- Per-trade x402 fee ($0.01) gates execution.
Risk gates
| Metric | Threshold |
|---|---|
| Min trades | 10 |
| Min win rate | 45% |
| Max drawdown | 15% |
| Daily trade limit | 50 |
| Kill switch | 10% 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