DevelopersAPI, SDK and the Move package

Build agents that lend and borrow on Sui.

People, and the AI agents working for them, lend USDC and borrow it against SUI. An agent can only do what its owner allows. It acts with a key its owner issued, inside limits and lending rules that live on chain and that only the owner can change.

SYSTEM OVERVIEW

The whole system, on one page.

Every component and arrow below is named in the docs or seen in a testnet run. Follow a box into its concept page.

Essey on Sui: system topologyStatic diagram · Open full size ↗
Essey on Sui: system topologyThe agent calls the self-serve API for sponsored lending, and the relayer for a shielded bid or offer. v2 rooms settle with a proof. Lending lives in essey_sui; sale_room_v2 and private_room_v2 are separate packages.OWNER DEVICEAGENT PROCESS · SELF-RUNESSEY OPERATOR · OFF-CHAINSUI NETWORK · TESTNETESSEY MOVE PACKAGE · ESSEY_SUISEALED SETTLEMENT V2mint_cap · set_limitsset_mandate · revokeAgentCap: spend · drawbuilds tx · user signsoperator pays gasseal_approvedry runkeys after close, 2 of 3sends the proof tx, pays gasread: ≤300 s old,confidence ≤1%ReadingOwner walletpasskey or Sui wallet keyoff-chainOwnerCapcontrols one treasurycapabilityAgent · SDK or MCP@esseyonsui/sui-sdk · @esseyonsui/sui-mcpits own key, never the owner’soff-chainAgentCapkey, no store: cannot transfercapabilitySelf-serve APIbuilds every tx; the user signs itnever holds a user keyoff-chainHosted agentsown key eachGas sponsoroperator paysTreasury<T>funds · limits · mandatesborrow rules · consentsshared objectOfferrate · max LTV · fill rangeholds no moneyshared objectPoolUSDC in, PoolShare outfloating rateshared objectv2 loan roomprivate_room_v2losing rate stays sealedshared objectLoanholds the SUI collateralLoanDeed · LenderClaimshared objectMarketLTV limit · liquidation lineits own feed onlyshared objectborrowerborrower desk: SUI treasury→ loan → cash treasurymoduleprice · pyth_oracleread → Readingspot + EMA, cannot be storedmodulePyth SUI/USDprice object on SuiPythv2 sale roomsale_room_v2 · prooflosing bids stay sealedshared objectShielded poolnotes · a ZK proof per spendSeal key serversv2 rooms: 2 of 3off-chainRelayerfee floor 0.01off-chainLEGENDOff-chain processOn-chain shared objectMove moduleCapability (key)Sealed / privateExternal serviceCall / transactionSealed data / keysReads
Scroll sideways to see the whole diagram.
Owner, agent, the Move package and its objects, the key servers, the relayer and Pyth, on Sui testnet.Source: docs/what-is-essey-on-sui.md · docs/how-it-works.md · docs/concepts/*.md · api/overview.md · sdk/overview.md · sdk/guides/sale-room.md · docs/concepts/sealed-rooms.md
START HERE

Read these first.

PageWhat it covers
What is Essey on SuiAn agent should start at Hand this to your agent and at https://essey.xyz/llms.txt.
Built today, private-only nextToday: Essey runs end to end on Sui testnet.
How it worksEvery loan on Essey on Sui moves through four phases: offer, fill, close and claim.
AgentCap & limitsAn AgentCap is the capability an agent's key holds to act on one treasury.
Sealed roomsA sealed room lets people bid without anyone being able to read the bids before bidding ends.
AuthenticationSign-in proves control of a Sui address by signing a challenge as a personal message.
QuickstartYou need: the deployment record (GET /v1/config, saved as is), an agent key file, and an account the owner has already created for that agent's address.
Chain helpers, errors, abortsResults of executed transactions, read-only calls, the SDK's error type and the Move abort map.