Build
Everything the site does, you can do from code or from an agent. No key, no sign-up. The API, the one-file SDK and the MCP server all read the same live pool.
Quick start
Three ways in. Each one works now, with no key.
1. Get a price with curl
curl -s -X POST 'https://wickcover.2-24-46-80.sslip.io/api/v1/quote' \
-H 'content-type: application/json' \
-d '{"hlAccount":"0x010461c14e146ac35fe42271bdc1134ee31c703a","coin":"BTC","side":"short",
"termSec":86400,"buyer":"0x010461c14e146ac35fe42271bdc1134ee31c703a"}'An example account with an open BTC short. Put your address in both fields. The answer has the cover fee, the payout and the formula.
2. Add the MCP server
claude mcp add --transport http asphodel https://wickcover.2-24-46-80.sslip.io/mcpOne line for Claude Code. Your agent can then check positions, get prices and read the pool.
3. Import the SDK
curl -o asphodel.ts '/build/sdk'
import { Asphodel } from "./asphodel";
const api = new Asphodel("https://wickcover.2-24-46-80.sslip.io/api/v1");
console.log(await api.getStats());One file, no dependencies. More SDK calls
Public API
SDK: one file
asphodel.ts has no dependencies: it uses fetch. buyCover and buyCoverBatch take a viem wallet client. Copy the file into your project and import it.
The quote buyer must be the Hyperliquid account itself, an allowlisted firm, or carry authSig: a personal_sign by the account of Asphodel quote for <buyer> nonce <authNonce>. The service checks this exact text.
getStats, quote, buyCover
import { createWalletClient, defineChain, http } from "viem";
import { privateKeyToAccount } from "viem/accounts";
import { Asphodel } from "./asphodel";
const wc = new Asphodel("https://wickcover.2-24-46-80.sslip.io/api/v1");
// 1. Pool numbers
const stats = await wc.getStats();
console.log(stats.navUsd, stats.openCoverUsd, stats.rule);
// 2. Your positions, then a signed quote (valid 120 s)
const me = "0xYourHyperliquidAddress";
const { positions } = await wc.getPositions(me);
const q = await wc.quote({ hlAccount: me, coin: "BTC", termSec: 86400, buyer: me });
console.log(q.human.join("\n"));
// 3. Pay: allow the cover fee in USDC, then buy (PolicyBook.buyCover)
const d = await wc.getDeployment();
const chain = defineChain({ id: d.chainId, name: "Elysium", nativeCurrency: { name: "HYPE", symbol: "HYPE", decimals: 18 }, rpcUrls: { default: { http: [d.rpcUrl] } } });
const wallet = createWalletClient({ account: privateKeyToAccount(process.env.PK as `0x${string}`), chain, transport: http(d.rpcUrl) });
const { policyId, txHash } = await wc.buyCover(wallet, q);
console.log(await wc.getPolicy(policyId));Other calls: getDeployment, getHealth, quoteBatch, buyCoverBatch, listPolicies, getClaims, getActivity, getBacktest.
Read the whole file
MCP server
Agents get the same tools, keyless. The API serves them over streamable HTTP at https://wickcover.2-24-46-80.sslip.io/mcp.
Claude Code, over HTTP
claude mcp add --transport http asphodel https://wickcover.2-24-46-80.sslip.io/mcpClaude Code, over stdio
Run it from the repo root. The server calls the public API through the SDK. Set WICKCOVER_API to the API URL.
claude mcp add asphodel -e WICKCOVER_API=https://wickcover.2-24-46-80.sslip.io/api/v1 -- npx tsx ./service/mcp/server.tsTools
| Tool | What it returns |
|---|---|
| check_position | Open Hyperliquid positions of an address: liquidation price, distance, leverage, coverable or not (and why), fee preview. |
| get_quote | A signed quote (valid 120 s) for one position, with the fee formula and live numbers. |
| pool_stats | Pool value, free and reserved USDC, share price, open cover, fees, payouts, number of covers. |
| policy_status | One cover: state, payout check, guardian votes, evidence. |
| backtest_summary | Headline backtest numbers and the calibration per recovery rule. |
The MCP server reads and quotes. It never signs a transaction: buying stays in your wallet.
Contracts
Prop firms: many accounts, one transaction
- Get on the firm allowlist, or use trader consentWe sign a price for an account you do not own only when your buyer address is on the firm allowlist. Without it, each trader signs the consent message
Asphodel quote for <buyer> nonce <authNonce>and you send it asauthNonceandauthSig. For prop firms has the contact. - Quote up to 50 accounts
POST /quote/batchwith{rows: [...]}. Each row is checked on its own; failed rows come back with a reason. - Choose who gets paidSet
beneficiaryper row: the firm or the trader. - Pay onceAllow
totalFeein USDC, then callPolicyBook.buyCoverBatch(quotes, sigs). All quotes must have the same buyer: your wallet. - Watch themThe firm dashboard on For prop firms shows every cover and payout for your address.
const wc = new Asphodel("https://wickcover.2-24-46-80.sslip.io/api/v1");
const batch = await wc.quoteBatch([
{ hlAccount: "0xTrader1", coin: "BTC", termSec: 86400, buyer: FIRM, beneficiary: FIRM },
{ hlAccount: "0xTrader2", coin: "ETH", termSec: 86400, buyer: FIRM, beneficiary: "0xTrader2" },
]);
console.log(batch.ok, batch.failed, batch.rows.filter((r) => !r.ok).map((r) => r.error));
const d = await wc.getDeployment();
const { policyIds } = await wc.buyCoverBatch(firmWallet, batch.buyCoverBatch!, d.policyBook, d.usdc);Caps still apply per Hyperliquid account: 3 open covers, 1 payout per day.