Token导航 LogoToken导航TokenDH.com
效率敏感数据clawhub未标认证来源可访问clear审计提醒

web5-cliweb5 CLI 命令行

Agent Skill

web5-cli 用于补充效率相关能力,适合在 OpenClaw 中需要让 Agent 承接效率相关任务时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

12,315

周安装

529

GitHub Stars

公开资料未说明

下载量

4,317
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:web5-cli(web5 CLI 命令行)
来源仓库:https://github.com/rink1969/web5-cli
安装命令:
openclaw skills install web5-cli
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install web5-cli

简介

使用 Web5 CLI 工具进行去中心化身份、CKB 钱包、DID 管理、PDS 数据操作、帐户创建、发布、个人资料更新

SKILL.md

name
web5-cli
description
Use when working with Web5 CLI tool for decentralized identity, CKB wallet, DID management, PDS data operations, account creation, posting, profile updates

Web5 CLI

Overview

Web5 CLI is a command-line tool for interacting with Web5 infrastructure. It provides key management, CKB wallet operations, DID lifecycle management, and PDS (Personal Data Store) interactions.

install

npm install -g web5-cli

Commands

CommandPurposeKey Subcommands
keystoreDID signing key managementnew, import, clean, get, sign, verify
walletCKB wallet operationsnew, import, clean, get, send-tx, check-tx, balance
didDID lifecycle on CKBbuild-create-tx, build-destroy-tx, build-update-didkey-tx, build-update-handle-tx, build-transfer-tx, list
pdsPDS server interactionscheck-username, get-did-by-username, create-account, delete-account, login, write, repo, records, blobs, export, import

Quick Reference

Key Management

web5-cli keystore new                                    # Create new keypair
web5-cli keystore import --sk <hex>                      # Import private key
web5-cli keystore get                                    # Get DID key
web5-cli keystore sign --message <hex>                   # Sign message
web5-cli keystore verify --message <hex> --signature <hex>  # Verify signature

Wallet Operations

web5-cli wallet new                                      # Create CKB wallet
web5-cli wallet import --sk <hex>                        # Import wallet
web5-cli wallet get                                      # Get CKB address
web5-cli wallet balance                                  # Check balance
web5-cli wallet send-tx --tx-path <path>                 # Send transaction
web5-cli wallet check-tx --tx-hash <hash>                # Check tx status

DID Management

web5-cli did build-create-tx --username <name> --pds <url> --didkey <key> --output-path <path>
web5-cli did build-destroy-tx --args <args> --output-path <path>
web5-cli did build-update-didkey-tx --args <args> --new-didkey <key> --output-path <path>
web5-cli did list --ckb-addr <address>                   # List DID cells

PDS Operations

web5-cli pds check-username --username <name>
web5-cli pds get-did-by-username --username <name>
web5-cli pds create-account --pds <domain> --username <name> --didkey <key> --did <did> --ckb-address <addr>
web5-cli pds login --pds <domain> --didkey <key> --did <did> --ckb-address <addr>
web5-cli pds write --pds <domain> --accessJwt <jwt> --didkey <key> --did <did> --rkey <key> --data <json>
web5-cli pds repo --pds <domain> --did <did>
web5-cli pds records --pds <domain> --did <did> --collection <nsid> [--limit N] [--cursor <cursor>]
web5-cli pds export --pds <domain> --did <did> --data-file <path> [--since <cid>]
web5-cli pds import --pds <domain> --did <did> --accessJwt <jwt> --data-file <path>

Configuration

  • Keystore: Private key stored at ~/.web5-cli/signkey
  • Wallet: Private key stored at ~/.web5-cli/ckb-sk
  • Account Info: Stored at ~/.web5-cli/account.json after account creation (includes Username, DID, Handle, didkey, ckb address, PDS domain, etc.)
  • Network: Set via CKB_NETWORK environment variable (ckb_testnet or ckb)

Output Format

All commands output JSON format for easy parsing by AI agents and scripts.

Notes

  • --pds arg no 'https://' or 'http://' prefix, just the hostname
  • one account only and always belong to one pds
  • only one did and one account in same time
  • Don't modify or delete the key/wallet files directly, use the CLI commands to manage them, and need user confirmation for destructive actions like keystore clean or wallet clean

Workflow Scripts

Use these Python scripts for common multi-step operations:

create account

  1. call web5-cli wallet get check if wallet exists and get ckb address
  2. if no wallet, create wallet and get ckb address
  3. call web5-cli wallet balance check if balance > 450 testnet CKB
  4. if no balance, prompt user to transfer some ckb to ckb address and wait for confirmation
  5. once have enough balance, call scripts/create_account.py to complete account creation (keystore + wallet + DID + PDS)
  6. write account info (includes Username, DID, Handle, didkey, ckb address, PDS domain, etc) to ~/.web5-cli/account.json for later use (like posting, profile update)

destroy account

  1. call scripts/destroy_account.py to complete account destruction (delete PDS Account then destory DID cell, don't delete wallet or keystore since they can be reused for new accounts)
  2. delete ~/.web5-cli/account.json after account destroyed

update profile

  1. get account info from ~/.web5-cli/account.json, if not exist, notify user to create account first and exit
  2. prompt user to input new profile info (like displayName, handle, etc), and construct json data for writing to pds
  3. call web5-cli pds login --pds <domain> --didkey <didkey> --did <did> --ckb-address <addr> with the correct parameters to get an access jwt for PDS operations, if login failed, notify user and exit
  4. call web5-cli pds write --pds <domain> --accessJwt <jwt> --didkey <key> --did <did> --rkey 'self' --data <json> to update profile record in PDS, with the correct parameters. json data should be in the format of
{
  $type: 'app.actor.profile'
  displayName: string;
  handle: string;
  [key: string]: any;
}

post to bbs

  1. get account info from ~/.web5-cli/account.json, if not exist, notify user to create account first and exit
  2. prompt user to input post info (like section_id, title, text), and construct json data for writing to pds. about section_id, you can use "3" or "4" for now.
  3. call web5-cli pds login --pds <domain> --didkey <didkey> --did <did> --ckb-address <addr> with the correct parameters to get an access jwt for PDS operations, if login failed, notify user and exit
  4. call web5-cli pds write --pds <domain> --accessJwt <jwt> --didkey <key> --did <did> --data <json> (--rkey is no need) to create a new post in PDS, with the correct parameters. json data should be in the format of
{
  $type: 'app.bbs.post'
  section_id: string;
  title: string;
  text: string;
}

Script Examples

# Create a complete account
python create_account.py alice web5.bbsfans.dev

# destroy the account
python destroy_account.py alice web5.bbsfans.dev

Security Notes

  • Private keys are stored in plaintext for this technical validation tool
  • Do NOT use in production environments
  • This is a proof-of-concept for AI-agent-driven Web5 interactions

public information

avliable pds url:

  • web5.bbsfans.dev
  • web5.ccfdao.dev

avliable data structure for writing to pds:

  • profile of user
{
  $type: 'app.actor.profile'
  displayName: string;
  handle: string;
  [key: string]: any;
}
  • post of bbs
{
  $type: 'app.bbs.post'
  section_id: string;
  title: string;
  text: string;
  edited?: string
  created?: string
  is_draft?: boolean
  is_announcement?: boolean
}
  • comment of bbs
{
  $type: 'app.bbs.comment'
  post: string  // 原帖uri
  text: string;
  section_id: string;
  edited?: string;
}
  • like of bbs
{
  $type: 'app.bbs.like'
  to: string;
  section_id: string;
}
  • reply of bbs
{
  $type: 'app.bbs.reply'
  post: string
  comment?: string
  to?: string
  text: string
  section_id: string
  edited?: string
}
  • reply of dao
{
  $type: 'app.dao.reply'
  proposal: string
  to?: string
  text: string
  parent?: string
}
  • proposal of dao
{
  $type: 'app.dao.proposal'
  [key: string]: unknown;
}
  • like of dao
{
  $type: 'app.dao.like'
  to: string;
  viewer: string;
}

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

88.14%
按下载量换算3,805

安全审计

VirusTotal

可疑

ClawScan

可疑

Static analysis

未展示

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills