SDK, API and MCP

Everything below is served by this site and needs no key.

Public API

RouteReturns
/api/ratesper term: the last clearing rate, the history, tonight's indicative rate
/api/auctions?term=30dtonight's aggregated book, the close, the maturity, the rate it would clear at now
/api/feedthe HyperCore mid, the Elysium pool, the guarded feed and its rules
/api/quote?amount=1000&term=30d&rate=6collateral needed, fee, owed at the maximum rate, liquidation price; side=lend for notes at a given rate
/api/loan?term=30d&id=12one loan: debt, collateral, value, loan-to-value, liquidatable
/api/stateeverything above in one read

SDK

import * as Sable from "https://<this site>/sdk/sable.js"
await Sable.rates()                        // clearing rates per term
await Sable.auction("30d")                 // tonight's book
await Sable.quoteBorrow({ amount: 1000, term: "30d", maxRate: 6 })
Sable.bidCalldata({ term: "30d", amount: 1000, maxRate: 6, hype: 40 })  // { to, data, value }
Sable.clear(offers, bids)                  // the clearing rule, locally

MCP server

Streamable HTTP at /mcp, JSON responses, no key. Tools: rates, auction, feed, quote_borrow, quote_lend, loan, offer_calldata, bid_calldata, repay_calldata, redeem_calldata, clear. It never signs: calldata comes back for the agent's own wallet.

claude mcp add --transport http sable https://<this site>/mcp

skill.md

/skill.md is one file an agent reads to use Sable end to end.

Run your own keeper or guardian

curl -sO https://<this site>/guard/sable-guardian.mjs
node sable-guardian.mjs            # read-only check of the pending price
node sable-guardian.mjs --loop     # every 15 seconds
Fees and $SABLEContracts