Operate the deepbook CLI for DeepBook reads (REST/SSE), global ~/.deepbook config/account management, on-chain spot trading, top-level swap execution, balance-manager ops, and margin trading.
数据来源:ClawHub。 在 ClawSkills 查看
选择你使用的 Agent
方法一:命令行安装(推荐)
推荐(无需提前安装 clawhub)
npx clawhub@latest --dir ~/.claude/skills install deepbook-cli或使用 clawhub CLI(需提前安装)
clawhub --dir ~/.claude/skills install deepbook-cli⚠️ 需要 Node.js 18+,没有 Node?请使用下方方法二直接下载 ZIP。 安装 Node.js →
方法二:手动下载安装(无需 Node)
下载 ZIP,解压后将文件夹放到以下路径,重启 Agent 即可:
安装路径
~/.claude/skills/deepbook-cli/💡解压后将文件夹放到上方路径,重启 Agent 即可生效
--- name: deepbook-cli description: Operate the deepbook CLI for DeepBook reads (REST/SSE), global ~/.deepbook config/account management, on-chain spot trading, top-level swap execution, balance-manager ops, and margin trading. ---
Use this skill when the user wants to use deepbook end to end: market data, wallet/config setup, and on-chain execution (spot, swap, manager, margin).
Check if deepbook is installed:
deepbook --version
If not, install it:
npm install -g deepbook-cli
deepbook-cli project directory.~/.deepbook/config.json exists (auto-created on first run).~/.deepbook (works from any path).mainnet/testnet are aliases used consistently for both provider-side reads/streams and on-chain RPC.
--json--provider --base-url --stream-base-url --network --rpc-url --private-key --address --manager --trade-cap - deepbook providers - deepbook pools - deepbook orderbook (alias: deepbook book ) - deepbook trades - deepbook ohlcv - deepbook stream ... - deepbook spot ... - deepbook swap ... - deepbook margin ... - deepbook manager ... - deepbook config ... - deepbook account ...
deepbook config: - show - set-network - set-provider - set-rpc-url - set-address - set-trade-cap - set-read-key [apiKey] - set-stream-key - set-provider-base-url - set-provider-stream-base-url - import-key [privateKey]
deepbook account: - details - list - balance - import - use
deepbook stream: - trades
deepbook spot: - pools - buy - sell - limit
deepbook swap: - base-for-quote - quote-for-base
deepbook margin: - pools - managers - deposit - market - limit - position - close
deepbook manager: - ls - create - deposit - withdraw - balance
deepbook providersdeepbook poolsdeepbook orderbook deepbook trades deepbook ohlcv deepbook stream trades deepbook spot poolsdeepbook spot buy --quantity [--price ] [--manager ] deepbook spot sell --quantity [--price ] [--manager ] deepbook spot limit --side --price --quantity [--manager ] deepbook spot limit --cancel [--manager ] deepbook config showdeepbook config set-network deepbook config set-provider deepbook config set-rpc-url deepbook config set-address deepbook config set-trade-cap deepbook config set-read-key [apiKey] (or --stdin)deepbook config set-stream-key [apiKey] (or --stdin)deepbook config set-provider-base-url deepbook config set-provider-stream-base-url deepbook config import-key [privateKey] (or --stdin, optional --alias)deepbook account detailsdeepbook account listdeepbook account balance [--coin ] deepbook account import [privateKey] (or --stdin)deepbook account use deepbook swap base-for-quote --amount deepbook swap quote-for-base --amount deepbook margin poolsdeepbook margin managersdeepbook margin deposit --coin --amount [--margin-manager ] deepbook margin market --side --quantity [--margin-manager ] deepbook margin limit --side --price --quantity [--margin-manager ] deepbook margin position [--margin-manager ] deepbook margin close [--margin-manager ] + either: - --full - OR --side
deepbook manager lsdeepbook manager createdeepbook manager deposit --coin --amount [--manager ] deepbook manager withdraw --coin --amount [--manager ] deepbook manager balance --coin [--manager ] deepbook margin close --full --withdraw deepbook margin close --full --non-reduce-only deepbook margin close --side --quantity --reduce-only --no-repay
deepbook swap quote-for-base) is a direct pool swap with exact-input semantics.deepbook spot buy --quantity ... ) is an orderbook market order and uses a balance manager.execution.kind and execution.type/direction so the mode is explicit.--dry-run first for all state-changing commands. - Margin managers are generic typed objects: MarginManager. - The margin manager type must match the exact pool pair being traded. - Example: MarginManager works with DEEP_USDC, not DEEP_SUI.
- If --margin-manager is omitted, CLI auto-selects a compatible manager for that pool, or creates one in-transaction if none exists. - If --margin-manager is provided, CLI treats it as explicit and strict: it must match signer + pool; no fallback or auto-create is performed.
- Margin market/limit orders auto-deposit a fee buffer before placing the order. - With --no-pay-with-deep, buffer is deposited in trade asset collateral (base for sell, quote for buy). - Without --no-pay-with-deep, buffer is deposited as DEEP into the margin manager.
- deepbook margin close now auto-normalizes inferred quantity to pool lot-size/min-size. - If reduce-only full close cannot satisfy lot-size exactly, CLI auto-switches to non-reduce-only and rounds up, then repays debt in the same transaction. - If user explicitly passes --reduce-only, CLI keeps reduce-only semantics and errors when full close cannot be represented as a valid lot-size quantity.
Use this when executing a real spot trade through a balance manager.
- deepbook manager ls
- deepbook manager create
DEEP_SUI buy, fund SUI): - deepbook manager deposit --coin SUI --amount 1 --manager
- deepbook manager balance --coin SUI --manager
- deepbook spot buy DEEP_SUI --quantity 38 --manager
- deepbook spot buy DEEP_SUI --quantity 38 --manager
- deepbook manager withdraw --coin DEEP --amount 38 --manager - optional recipient: --recipient
- deepbook manager balance --coin DEEP --manager
...
安装 DeepBook CLI. Watch, Make & Take the Sui Market 后,可以对 AI 说这些话来触发它
Help me get started with DeepBook CLI. Watch, Make & Take the Sui Market
Explains what DeepBook CLI. Watch, Make & Take the Sui Market does, walks through the setup, and runs a quick demo based on your current project
Use DeepBook CLI. Watch, Make & Take the Sui Market to operate the deepbook CLI for DeepBook reads (REST/SSE), global ~/
Invokes DeepBook CLI. Watch, Make & Take the Sui Market with the right parameters and returns the result directly in the conversation
What can I do with DeepBook CLI. Watch, Make & Take the Sui Market in my marketing & growth workflow?
将技能文件夹放到 ~/.claude/skills/deepbook-cli/ 目录(个人级,所有项目可用),或 .claude/skills/deepbook-cli/(项目级)。重启 AI 客户端后,用 /deepbook-cli 主动调用,或让 AI 根据上下文自动发现并使用。
DeepBook CLI. Watch, Make & Take the Sui Market 支持 Claude、Cursor、OpenClaw,可与这些 AI 平台无缝集成,扩展其能力。
DeepBook CLI. Watch, Make & Take the Sui Market 可免费安装使用。请查阅仓库了解许可证信息。
Operate the deepbook CLI for DeepBook reads (REST/SSE), global ~/.deepbook config/account management, on-chain spot trading, top-level swap execution, balance-manager ops, and margin trading.
Lists the top use cases for DeepBook CLI. Watch, Make & Take the Sui Market, with example commands for each scenario
Automate my marketing & growth tasks using DeepBook CLI. Watch, Make & Take the Sui Market
Identifies repetitive steps in your workflow and sets up DeepBook CLI. Watch, Make & Take the Sui Market to handle them automatically
DeepBook CLI. Watch, Make & Take the Sui Market 属于「Marketing & Growth」分类,该分类的技能帮助 AI 智能体在此领域执行专业任务。