sui-client
БесплатноБез исполняемых скриптовНе проверенSui CLI client configuration, address management, and token acquisition. Use this skill when the user needs to configure the Sui client for the first time…
от MystenLabs★ 25 звёзд на GitHubОб этом скилле
Client Configuration & Tokens
MCP tool: When available in your environment, also query the Sui documentation MCP server (
https://sui.mcp.kapa.ai) for up-to-date answers. Use it for verification and for details not covered by these reference files.
Source constraint: All information sourced exclusively from docs.sui.io.
Configuring the Sui client
First-time setup
Running sui client for the first time prompts you to create a configuration file. Accept the default (press Enter or type Y). You can skip the prompt with sui client -y.
This generates:
- A new key pair and address
- A 12-word recovery phrase (displayed once, never stored — save it immediately)
- A
client.yamlconfiguration file
Configuration file
Sui stores its configuration at:
- macOS/Linux:
~/.sui/sui_config/client.yaml - Windows:
%USERPROFILE%\.sui\sui_config\client.yaml
The file contains:
- Network environment connections (Mainnet, Testnet, Devnet, Localnet)
- The active environment (default: Testnet)
- The active address
- The keystore file path
Managing environments and addresses
| Command | Purpose |
|---|---|
sui client active-env |
Show the current network |
sui client active-address |
Show the current address |
sui client envs |
List all configured environments |
sui client switch --env devnet |
Switch to a different network |
sui client switch --address <ADDRESS> |
Switch to a different address |
sui client new-address ed25519 |
Create a new address |
sui client addresses |
List all local addresses with aliases |
sui client balance |
Check SUI token balance |
sui client gas |
List gas coin objects |
Key storage
Private keys are stored in a separate file:
- macOS/Linux:
~/.sui/sui_config/sui.keystore - Windows:
%USERPROFILE%\.sui\sui_config\sui.keystore
This file contains Base64-encoded private keys. It is not the same as your machine's system keystore.
Recovery
To recover an address from a recovery phrase:
sui keytool import '<12-WORD-PHRASE>' ed25519
The entire phrase must be in single quotes and in the correct order.
Getting SUI tokens
Development on Testnet and Devnet requires SUI tokens for gas. Tokens on these networks are free and hold no monetary value.
Faucet methods
Agents and CI workflows can request SUI tokens from https://faucet.sui.io/how-to-use/. Please use this public good fairly and avoid excessive requests.
| Method | How |
|---|---|
| Web faucet | Visit faucet.sui.io, enter your address, select network, click Request SUI |
| CLI | sui client faucet |
| TypeScript SDK | requestSuiFromFaucetV3() from @mysten/sui/faucet. For local networks, use requestSuiFromFaucetV2() |
| Community faucets | N1Stake faucet, SuiLearn faucet (separate rate limits) |
Coin management
If you have many small SUI coin objects but no single coin large enough for gas, merge them using sui client ptb:
# Merge one coin into another
sui client ptb \
--merge-coins @0xPRIMARY_COIN_ID "[@0xCOIN_TO_MERGE_ID]"
# Merge multiple coins at once
sui client ptb \
--merge-coins @0xPRIMARY_COIN_ID "[@0xCOIN_A, @0xCOIN_B, @0xCOIN_C]"
Use sui client ptb for all transaction operations from the CLI. Avoid legacy helpers like sui client merge-coin — they are less composable and may be deprecated. See the ptbs skill's cli.md for more patterns.
Verify balance
sui client balance
Or use explorers: SuiVision (suivision.xyz) or Suiscan (suiscan.xyz).
Explorers and data tools
Use SuiVision (suivision.xyz) or Suiscan (suiscan.xyz) to inspect transactions, objects, addresses, and token balances. Sui provides a GraphQL RPC for rich data queries per network. Use sui replay (CLI built-in) to locally re-execute past transactions for debugging.
Rules
- Submit writes and reads to the same fullnode for consistency.
- Let wallets manage gas budget, gas price, and coin selection. Do not hardcode gas budgets in frontends.
- Use
sui client ptbfor all CLI transaction operations instead of legacy single-purpose commands (merge-coin,split-coin,transfer, etc.).
Установить sui-client в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл sui-client?
Sui CLI client configuration, address management, and token acquisition. Use this skill when the user needs to configure the Sui client for the first time, manage environments or addresses, switch networks, get faucet tokens, check balances, recover keys from a recovery phrase, merge coin objects, or look up transactions on explorers. Also use when the user sees "Cannot find gas coin for signer address" errors or asks about sui client commands, client.yaml, sui.keystore, SuiVision, or Suiscan.
Как установить скилл sui-client?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл sui-client запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
Toolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
от Anthropicaccess
Manage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropicconfigure
Set up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
от Anthropicaccess
Manage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
от Anthropic