Sui CLI Usage

Guidance for the Sui command-line tool, which lets developers manage keys, choose Sui networks, inspect blockchain objects, build and publish Move packages, and run transactions.

In plain words
What is it for?
Use it to switch between local, test, and main networks, manage accounts, build and publish Move code, inspect objects, and call Move functions.
Why use it?
It puts common Sui development and network tasks into clear terminal commands instead of requiring separate tools or interfaces.

Skill for Claude CodeCodex

Part of the sui-stack-dev plugin — 6 skills, 3 commands, 2 agents shipped together

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/0x-j/sui-stack-claude-code-plugin/sui-cli-usage
Any agent
npx skills add 0x-j/sui-stack-claude-code-plugin --skill sui-cli-usage
Clone the repo
git clone --depth 1 https://github.com/0x-j/sui-stack-claude-code-plugin

Made for: Claude Code, Codex.

Or install sui-stack-dev, the plugin that ships this one along with the rest of its 6 skills, 3 commands, 2 agents.

Per session 71 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,028 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00071 $0.03028
Opus 5 $0.00036 $0.01514
Sonnet 5 $0.00014 $0.00606
Haiku 4.5 $0.00007 $0.00303

Measured 3d ago against content hash 71c7428382e2, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

Sui CLI Usage scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 3d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/sui-cli-usage/SKILL.md · 556 lines

How it starts

The opening of the file, as written. The whole thing — 556 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Sui CLI Usage

Provides expert guidance for using the Sui command-line interface (CLI) for development workflows, network management, object inspection, and contract interaction.

Overview

The Sui CLI is the primary tool for interacting with Sui networks from the command line. It handles key management, network configuration, contract deployment, and transaction execution.

Core commands:

  • sui client - Interact with Sui network
  • sui move - Build, test, and publish Move packages
  • sui keytool - Manage cryptographic keys
  • sui console - Interactive Sui shell

Installation

Install Sui CLI

# Using Homebrew (macOS/Linux)
brew install sui

# Using cargo (any platform)
cargo install --locked --git https://github.com/MystenLabs/sui.git --branch mainnet sui

Verify Installation

sui --version
# Output: sui 1.x.x

Network Management

View Active Network

# Show current network configuration
sui client active-env

# List all configured networks
sui client envs

Switch Networks

# Switch to testnet
sui client switch --env testnet

# Switch to mainnet
sui client switch --env mainnet

# Switch to devnet
sui client switch --env devnet

# Switch to local network
sui client switch --env localnet

Add Custom Network

# Add custom RPC endpoint
sui client new-env --alias custom --rpc https://custom-rpc.example.com:443

# Switch to custom network
sui client switch --env custom

Key Management

Create New Address

# Generate new address (ed25519)
sui client new-address ed25519

# Generate new address (secp256k1)
sui client new-address secp256k1

# Generate new address (secp256r1)
sui client new-address secp256r1

List Addresses

# Show all addresses in keystore
sui keytool list

# Show active address
sui client active-address

Switch Active Address

# Switch to specific address
sui client switch --address 0x...

Export/Import Keys

Read the full file on GitHub · 556 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 3d ago First seen · 556 lines · 71 tokens per session scan A 71c7428382e2

Subscribe to this mod's changes

Sui CLI Usage is a skill published in the GitHub repository 0x-j/sui-stack-claude-code-plugin (10 stars, last pushed 6mo ago), licensed MIT. It adds 71 tokens to every session and 3,028 once invoked, about $0.0004 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.