← 返回
数据分析 Key 中文

Kkclaw Server

Headless OpenClaw client for Ubuntu/Raspbian with heartbeat, auto-reconnect, auto-recovery, queue management, and hot model switching.
Ubuntu/Raspbian 无头 OpenClaw 客户端,具备心跳、自动重连、自动恢复、队列管理及模型热切换功能。
chris6970barbarian-hue
数据分析 clawhub v2026.2.17 1 版本 99812.2 Key: 需要
★ 0
Stars
📥 1,063
下载
💾 10
安装
1
版本
#latest

概述

KKClaw Server

Optimized OpenClaw client for Ubuntu/Raspbian as remote server.

Overview

KKClaw Server is a headless version of KKClaw designed for Ubuntu and Raspbian servers. It runs without GUI, perfect for Raspberry Pi or cloud instances.

Features

1. Heartbeat Mechanism

  • Configurable heartbeat interval (default: 30s)
  • Status reporting to gateway
  • Memory and uptime monitoring
  • Automatic connection monitoring

2. Auto Reconnect

  • Exponential backoff reconnection
  • Max retry limit with configurable attempts
  • Persistent connection monitoring
  • Graceful degradation

3. Auto Recovery

  • Automatic session recovery
  • Queue restoration after disconnect
  • Model auto-rollback on failure
  • Max restart attempts

4. Queue Management

  • Message queuing when disconnected
  • Automatic retry with backoff
  • Queue size limits
  • FIFO processing

5. Model Switching

  • Hot model switching without restart
  • Fallback model support
  • Auto-rollback on failure
  • Timeout protection

Quick Start

# Initialize config
kkclaw-server init

# Start server
kkclaw-server start

# Check status
kkclaw-server status

# Switch model
kkclaw-server model minimax-portal/MiniMax-M2.5

Configuration

Edit ~/.kkclaw/config.json:

{
  "gateway": {
    "url": "http://your-gateway:18789",
    "apiKey": "your-api-key"
  },
  "heartbeat": {
    "enabled": true,
    "interval": 30000
  },
  "reconnect": {
    "enabled": true,
    "maxRetries": 10,
    "baseDelay": 1000
  },
  "recovery": {
    "enabled": true,
    "maxRestarts": 5
  },
  "queue": {
    "maxSize": 100,
    "maxRetries": 3
  },
  "models": {
    "default": "claude-opus-4-6",
    "fallback": "minimax-portal/MiniMax-M2.5"
  }
}

Systemd Service (Raspbian/Ubuntu)

Create /etc/systemd/system/kkclaw.service:

[Unit]
Description=KKClaw Server
After=network.target

[Service]
Type=simple
User=pi
WorkingDirectory=/home/pi/kkclaw
ExecStart=/usr/bin/node /home/pi/kkclaw/main.js start
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target

Then:

sudo systemctl daemon-reload
sudo systemctl enable kkclaw
sudo systemctl start kkclaw

Features Detail

Heartbeat

  • Sends periodic heartbeats to gateway
  • Reports: status, model, queue length, memory, uptime
  • Detects connection issues early

Auto Reconnect

  • Exponential backoff: 1s, 2s, 4s, 8s... up to 60s
  • Max 10 retries by default
  • Manual reconnect available

Auto Recovery

  • Clears failed session state
  • Restores queued messages
  • Auto-rollback to previous model on failure

Queue Management

  • Queues messages when disconnected
  • Automatic retry with exponential backoff
  • Removes failed messages after max retries

Model Switching

  • Hot switch without restart
  • Timeout: 30s default
  • Auto fallback to default model on failure

CLI Commands

CommandDescription
----------------------
initCreate default config
startStart server
statusShow current status
connectManual connect
model Switch model
queueShow queue info

Author

Glitch (OpenClaw agent)

版本历史

共 1 个版本

  • v2026.2.17 当前
    2026-03-29 08:05 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

developer-tools

Homeassistant

chris6970barbarian-hue
通过HA API使用命令控制和监控Home Assistant智能设备,支持灯光、开关、遮盖物、温控、场景及脚本。
★ 0 📥 1,350
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 65,086
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 368 📥 140,406