Cetus Protocol SDK v2 for Openclaw

A comprehensive suite of SDKs for building and automating DeFi operations on the Sui blockchain using Cetus Protocol.

k66inthesky
v1.0.0
Feb 12, 2026
0
1.9k
0

Install & Download

1. ClawHub CLI

The fastest way to install a skill directly from the registry.

npx clawhub@latest install cetus

2. Manual Installation

Copy the skill folder to one of these locations

Global
~/.openclaw/skills/
Workspace
<project>/skills/

Priority: Workspace > Local > Bundled

3. Prompt Installation

Copy this prompt to OpenClaw to install it automatically.

Help me install cetus using Clawhub. If Clawhub is not installed, install it first (npm i -g clawhub).

Prefer to download?

Get the raw skill files in a ZIP archive.

What is Cetus Protocol SDK v2?

The Cetus Protocol SDK v2 provides a modular and robust framework for interacting with the premier decentralized exchange and liquidity protocol on the Sui blockchain. By leveraging these Openclaw Skills, developers can programmatically access concentrated liquidity (CLMM), dynamic liquidity (DLMM), and automated vault management with high efficiency.

This toolkit is designed for building sophisticated financial applications, ranging from simple token swaps to complex yield farming and governance strategies. These Openclaw Skills empower developers to create AI-driven agents capable of managing liquidity, executing limit orders, and performing dollar-cost averaging (DCA) autonomously on-chain.

Cetus Protocol SDK v2 Use Cases

  • Automating multi-DEX token swaps using the Cetus Aggregator for optimal pricing.
  • Programmatic management of concentrated liquidity positions in CLMM and DLMM pools.
  • Developing automated yield farming bots using the Farms SDK to harvest rewards.
  • Implementing time-weighted investment strategies with the DCA SDK.
  • Executing precise on-chain limit orders for professional-grade trading automation.

How Cetus Protocol SDK v2 Works

  1. Initialize the required module SDK (such as CLMM, DLMM, or Aggregator) using the standardized factory pattern.
  2. Configure the network environment by specifying the Sui mainnet or testnet and providing custom RPC endpoints.
  3. Authorize the agent by setting the sender's wallet address for transaction signing.
  4. Fetch real-time market data or quotes using methods like preSwapQuote or getPoolList.
  5. Generate and execute transaction payloads on the Sui blockchain using the integrated FullClient utility.

Cetus Protocol SDK v2 Setup

To start using these Openclaw Skills, install the core packages via npm:

npm install @cetusprotocol/common-sdk @cetusprotocol/sui-clmm-sdk

Initialize the SDK in your TypeScript environment:

import { CetusClmmSDK } from '@cetusprotocol/sui-clmm-sdk';

const sdk = CetusClmmSDK.createSDK({ env: 'mainnet' });
sdk.setSenderAddress('0xYOUR_SUI_ADDRESS');

Cetus Protocol SDK v2 Data Schema & Taxonomy

The SDK organizes DeFi data into specific modules to maintain clarity and performance:

Module Core Data Objects Purpose
CLMM Pools, Ticks, Positions Concentrated liquidity management
Aggregator Routes, Quotes, Hops Multi-DEX trade optimization
xCETUS veNFTs, Lock Objects Governance and dividend tracking
DCA Order Metadata, Cycles Automated periodic purchase tracking
Limit Order Status, Price Bounds Precise trade execution logging

Cetus Protocol SDK v2 Advanced Features

  • Smart swap routing across multiple Sui DEXs including DeepBook, Kriya, and Aftermath via the Aggregator SDK.
  • One-click liquidity provision using the Zap SDK which supports flexible input modes like FixedOneSide and FlexibleBoth.
  • Irreversible liquidity locking through the Burn SDK while maintaining the ability to collect fees and rewards.
  • Advanced discrete bin-based liquidity strategies with dynamic fee structures via the DLMM SDK.
  • Comprehensive batch operation support for harvesting rewards across multiple farms simultaneously.

SKILL.md


Loading

Related Openclaw Skills

METADATA

Github Stars: 0
forks: 0

Featured*