Docs · Overview
DOCS · SDK 0.3.0
PerpBrain docs
An open, agent-first toolkit for Hyperliquid perps. The open-source PerpBrain SDK gives your agent keyless reads of public Hyperliquid data, a book simulator that charges fees, slippage and funding, and limits that only you can set. Receipts are hashed and anyone can rerun them; agent-side receipts are coming. Verified and reproducible.
Your keys stay yoursPerpBrain never holds funds or keys, and the SDK has no mainnet order path. Results are labelled
SIMULATED. Limits you set; losses are still possible.
QuickstartInstall from PyPI or npm, start the MCP server and verify a receipt.
Live quickstartFree, read-only launch, fee off, and the optional testnet path.
ReceiptsWhat a receipt hashes and how to check one in code or in the browser.
Owner limitsPresets, hard ceilings, stale data, the daily stop and the latching kill switch.
Cost breakdownFees, slippage and funding for every simulated trade, and what is not modelled.
MCP usageThe 14 read and simulation tools, plus Claude Desktop and Cursor setup.
Verify a receiptRe-derive a receipt yourself with the open-source verifier.
NewsWhat shipped: 0.1 on npm and PyPI, and the testnet trial.
Case studiesHow operators use PerpBrain: the method, receipts and process metrics.
Downloads
- One-pagerPerpBrain on a single page: what it does, how it works and what it costs.PDF · 1 page · 229 KB
- DeckThe full overview: the product, receipts, owner limits, client pilots and the roadmap.PDF · 12 pages · 448 KB
- PerpBrain for Diamond Hands CarryHow PerpBrain independently checks the carry vault's Hyperliquid funding. Archived testnet edition; the vault is reported live on mainnet and its first mainnet receipt is pending.PDF · 3 pages · 325 KB
- Independent verification of Diamond Hands CarryA step-by-step guide for allocators and auditors: download the receipt, verify it, and check Hyperliquid and HyperEVM yourself. Archived testnet edition; no mainnet receipt yet. An agent can run the same check from /verify-dh.md.PDF · 4 pages · 502 KB
- Independent verification of Diamond Hands Carry (agent-readable)The same four steps as a plain markdown file an agent can follow without a browser.Markdown
- PerpBrain for Smooth BrainsHow Smooth Brains runs every signal through PerpBrain in shadow mode, and what it measures.PDF · 2 pages · 282 KB
At a glance
- Keyless reads from the public Hyperliquid
/infoendpoint. The read client refuses/exchange. - A book simulator with versioned Hyperliquid fees, book-walk slippage and hourly funding. Queue position and liquidation are marked
NOT_MODELLED. - Owner limits with three presets:
conservative,standardandpro. - A receipt verifier in TypeScript, in the MCP server and as a static browser page.
- An stdio MCP server with 14 tools. It has no order tool.