← Back to Skills Marketplace
kwdb

KWDB Install

by KWDB · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ Security Clean
58
Downloads
0
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install kwdb-install-deploy
Description
Triggered when the user wants to install or deploy KaiwuDB (kwdb, kaiwudb). Helps users complete script-based deployment of KaiwuDB clusters, including confi...
README (SKILL.md)

KWDB Install

Overview

This skill provides script-based deployment for KaiwuDB, suitable for bare-metal or container deployment in Linux environments. Supports single-replica and multi-replica cluster deployments with complete deployment workflow guidance.

Mandatory Rules

The following three rules must be strictly followed:

1. Prohibit Guessing Installation Parameters

Do not guess or assume any installation parameters and proceed with installation unless explicitly specified by the user.

  • All configuration parameters (ports, IPs, data directories, security modes, etc.) must be confirmed with the user one by one
  • Even if the user says "use defaults", the default values must be explicitly listed and confirmed with the user
  • The installation package path must be explicitly provided by the user and must not be guessed

2. Must Read Logs on Installation Failure

When the installation command fails, you must read the log files in the log/ directory under the same path as the installation script to obtain detailed failure information.

Log file path: /opt/kaiwudb/\x3Cpackage-name>/log/ or kaiwudb_install/log/

# After installation failure, first read the logs
ls -la log/
cat log/install.log  # or the latest generated log file

3. Exit After Reporting Failure, Prohibit Arbitrary Retries

After installation failure, you must:

  1. Clearly display the error information obtained from the logs to the user
  2. Explain possible causes
  3. Exit the installation process, do not retry on your own
  4. Wait for user instructions before deciding on the next step

Exception: Only when the user explicitly requests "retry", you may execute the installation command again.

Prerequisites

System Requirements

  • Hardware:
    • Memory: At least 8 GB RAM (16 GB recommended)
    • CPU: At least 2 cores (4 cores recommended)
    • Disk: At least 50 GB available space (SSD recommended)
  • Operating System:
    • CentOS 7/8
    • Ubuntu 18.04/20.04/22.04
  • Network: All nodes must have network connectivity

User Permissions

  • SSH passwordless login configured between nodes
  • User must be root or have sudo privileges
  • For container deployment, non-root users must be in the docker group

Deployment Steps

Step 1: Confirm Deployment Mode

First, I need to confirm the deployment mode you need:

Ask: "Please select the deployment mode: single-node deployment (single) or cluster deployment (cluster)?"

Step 1.1: Confirm Cluster Replica Count - Cluster Mode Only

If cluster deployment is selected, I need to further confirm the number of replicas:

Ask: "Please select the cluster deployment type: single-replica cluster (single-replica) or multi-replica cluster (multi-replica)?"

Step 2: Confirm Installation Package Location

Next, I need to confirm the location of the KaiwuDB installation package with you. The installation package should be a .tar.gz file with KaiwuDB as the prefix, for example: KaiwuDB-1.0.0.tar.gz.

Ask: "Please provide the full path (including filename) of the KaiwuDB installation package. The installation package should be a tar.gz file with KaiwuDB as the prefix, for example /path/to/KaiwuDB-1.0.0.tar.gz."

Note: You must wait for the user to provide the exact path and must not guess on your own.

Step 3: Verify Installation Package

After confirming the installation package location, verify that the file exists and has the correct format:

# Check if the installation package exists
if [ ! -f "$INSTALL_PACKAGE_PATH" ]; then
    echo "Error: Installation package does not exist, please check if the path is correct"
    exit 1
fi

# Check filename format
if [[ "$(basename $INSTALL_PACKAGE_PATH)" != KaiwuDB*.tar.gz ]]; then
    echo "Error: Installation package filename is incorrect. It should be a tar.gz file with KaiwuDB as the prefix"
    exit 1
fi

Step 4: Extract Installation Package and Configure

# Create installation directory
sudo mkdir -p /opt/kaiwudb

# Extract installation package
tar -xzf "$INSTALL_PACKAGE_PATH" -C /opt/kaiwudb

# Enter installation directory
cd /opt/kaiwudb/kaiwudb_install

Step 5: Configure deploy.cfg File

I will ask you about each configuration item step by step according to the deployment mode you selected, and then modify the deploy.cfg configuration file based on your answers.

Mandatory: Unless the user voluntarily says "all defaults" or explicitly specifies parameter values, each item must be confirmed one by one. Even if the user selects default values, the defaults must be displayed and confirmed.

Global Configuration (global) - Common to All Modes

  1. Security Mode (secure_mode):

    • Ask: "Please select the security mode: insecure (non-secure mode), tls (TLS secure mode, default), tlcp (TLCP secure mode)"
  2. Management User (management_user):

    • Ask: "Please enter the KaiwuDB management username (default: kaiwudb)"
  3. RESTful Port (rest_port):

    • Ask: "Please enter the KaiwuDB Web service port (default: 8080)"
  4. KaiwuDB Service Port (kaiwudb_port):

    • Ask: "Please enter the KaiwuDB service port (default: 26257)"
  5. BRPC Port (brpc_port):

    • Ask: "Please enter the KaiwuDB time-series engine communication port (default: 27257)"
  6. Data Directory (data_root):

    • Ask: "Please enter the KaiwuDB data storage directory (default: /var/lib/kaiwudb)"
  7. CPU Resource Usage (cpu):

    • Ask: "Please enter the proportion of CPU resources occupied by KaiwuDB service (0-1, default: unlimited)"

Local Node Configuration (local) - Common to All Modes

  1. Local Node IP Address (local_node_ip):
    • Ask: "Please enter the IP address of the local node (used for external services)"
    • Note: This parameter has no default value and must be provided by the user

Cluster Configuration (cluster) - Cluster Mode Only

  1. Other Cluster Node IP Addresses (cluster_node_ips):

    • Ask: "Please enter the IP addresses of other cluster nodes (multiple addresses separated by commas)"
  2. SSH Port (ssh_port):

    • Ask: "Please enter the SSH service port of the remote node (default: 22)"
  3. SSH Username (ssh_user):

    • Ask: "Please enter the SSH login username for the remote node"

Based on your answers, I will automatically generate the corresponding deploy.cfg configuration file. The cluster configuration section will be automatically omitted for single-node deployment.

Step 6: Execute Installation Command

Execute the corresponding installation command based on your selection:

Single-node deployment:

./deploy.sh install --single

Single-replica cluster deployment:

./deploy.sh install --single-replica

Multi-replica cluster deployment:

./deploy.sh install --multi-replica

Important: Before execution, all configuration parameters must be displayed to the user and confirmed before proceeding.

Step 7: Confirm Installation Information

After checking that the configuration is correct, enter Y or y. If you need to return to modify the configuration file, enter N or n.

================= KaiwuDB Basic Info =================
Deploy Mode: bare-metal
Management User: kaiwudb
Start Mode: single
RESTful Port: 8080
KaiwuDB Port: 26257
BRPC Port: 27257
Data Root: /var/lib/kaiwudb
Secure Mode: tls
CPU Usage Limit: 1
Local Node Address: 192.168.122.221
=========================================================
Please confirm the installation information above(Y/n):

Step 8: Handle Installation Failure

If the installation command execution fails (returns a non-zero exit code), the following operations must be performed:

# 1. Enter the log directory
cd log/

# 2. List log files
ls -la

# 3. Read the latest log file (usually install.log or a file with a timestamp)
cat install.log
# or
tail -100 \x3Clatest log file>

Report failure information to the user:

  1. Clearly display the error information extracted from the logs
  2. Explain possible causes (refer to references/troubleshooting.md)
  3. Exit the installation process, do not retry on your own
  4. Wait for further user instructions

Example report format:

Installation failed!

Error information (from logs):
[Specific error content extracted from log/install.log]

Possible causes:
- [Possible causes analyzed based on the error information]

Please check the above issues and let me know if you need to retry or have other instructions.

Step 9: Initialize and Start Cluster - Cluster Mode Only

After successful installation, execute:

./deploy.sh cluster -i
# or
./deploy.sh cluster --init

Step 10: Check Status

Check service status:

systemctl status kaiwudb

Check cluster status (cluster mode only):

./deploy.sh cluster -s
# or
./deploy.sh cluster --status
# or use the convenience script
kw-status

Step 11: Configure Auto-start on Boot (Optional)

systemctl enable kaiwudb

Resources

references/

Contains KaiwuDB related documents:

  • installation_guide.md - Detailed installation guide
  • troubleshooting.md - Common issues and solutions

assets/

Contains KaiwuDB configuration file templates and resources:

  • deploy.cfg - Deployment configuration file template
Usage Guidance
Before installing, make sure you are on the intended Linux server, use an official KaiwuDB package, verify its integrity, review every configuration value, and understand that sudo, SSH, Docker, and systemctl actions can persistently change the machine or cluster.
Capability Analysis
Type: OpenClaw Skill Name: kwdb-install-deploy Version: 1.0.0 The skill bundle provides a legitimate and highly controlled workflow for deploying KaiwuDB. It includes explicit safety instructions in SKILL.md that prevent the AI agent from guessing installation parameters or performing autonomous retries, requiring user confirmation at every critical step. The operations, such as extracting packages to /opt/kaiwudb and managing services via systemctl, are standard for database administration and show no signs of malicious intent or data exfiltration.
Capability Assessment
Purpose & Capability
The deployment workflow matches the stated purpose and repeatedly asks for user confirmation; it still includes privileged service installation, configuration changes, and cluster initialization.
Instruction Scope
The instructions prohibit guessing parameters, require explicit user confirmation, require reading logs after failure, and tell the agent not to retry without user direction.
Install Mechanism
This is an instruction-only skill that relies on a user-supplied KaiwuDB tar.gz and its deploy.sh script; no packaged code, checksum, signature check, or install spec is included.
Credentials
The documentation targets Linux/CentOS/Ubuntu and uses sudo, tar, systemctl, SSH, and possibly Docker, while the registry metadata declares no OS or binary requirements.
Persistence & Privilege
Root/sudo privileges and optional systemctl enablement are expected for database deployment, but they can create persistent services and affect the host or cluster.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install kwdb-install-deploy
  3. After installation, invoke the skill by name or use /kwdb-install-deploy
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
kwdb-install-deploy 1.0.0 - Initial release of KWDB Install skill for guided script-based KaiwuDB deployment. - Step-by-step workflow ensures all installation/configuration parameters are explicitly confirmed with the user. - Strict handling rules: prohibits parameter guessing, reads and reports errors from logs on failure, and never retries without user request. - Supports both single-node and cluster (single/multi-replica) deployments in Linux environments. - Verifies prerequisites and installation package before proceeding. - Automates generation and confirmation of configuration, followed by safe command execution and status check.
Metadata
Slug kwdb-install-deploy
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is KWDB Install?

Triggered when the user wants to install or deploy KaiwuDB (kwdb, kaiwudb). Helps users complete script-based deployment of KaiwuDB clusters, including confi... It is an AI Agent Skill for Claude Code / OpenClaw, with 58 downloads so far.

How do I install KWDB Install?

Run "/install kwdb-install-deploy" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is KWDB Install free?

Yes, KWDB Install is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does KWDB Install support?

KWDB Install is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created KWDB Install?

It is built and maintained by KWDB (@kwdb); the current version is v1.0.0.

💬 Comments