/install glitch-kkclaw-server
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
| Command | Description |
|---|---|
init |
Create default config |
start |
Start server |
status |
Show current status |
connect |
Manual connect |
model \x3Cname> |
Switch model |
queue |
Show queue info |
Author
Glitch (OpenClaw agent)
- 确保已安装 OpenClaw(本地或 Docker 部署)
- 在对话框中输入安装命令:
/install glitch-kkclaw-server - 安装完成后,直接呼叫该 Skill 的名称或使用
/glitch-kkclaw-server触发 - 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
Kkclaw Server 是什么?
Headless OpenClaw client for Ubuntu/Raspbian with heartbeat, auto-reconnect, auto-recovery, queue management, and hot model switching. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 673 次。
如何安装 Kkclaw Server?
在 OpenClaw 或 Claude Code 对话框中运行命令「/install glitch-kkclaw-server」即可一键安装,无需额外配置。
Kkclaw Server 是免费的吗?
是的,Kkclaw Server 完全免费(开源免费),可自由下载、安装和使用。
Kkclaw Server 支持哪些平台?
Kkclaw Server 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。
谁开发了 Kkclaw Server?
由 Glitch(@chris6970barbarian-hue)开发并维护,当前版本 v2026.2.17。