DEVELOPERS

构建 AI 原生
扩展与集成

REST API · SKILL.md 规范 · CLI SDK · Webhook 事件系统
5 分钟上手,从技能开发到企业级 API 集成

查看 API 文档 技能开发指南
☁️
REST API
版本检测 · 技能注册 · TrayTool
🧠
技能开发
SKILL.md 规范 · 发布流程
📦
CLI & SDK
npm openclaw · 命令参考
🔔
Webhook
事件推送 · 触发规范
pithclaw.cloud / developers
# Quick Start — 自定义技能开发
$ mkdir my-skill && cd my-skill
$ touch SKILL.md
# SKILL.md 最小示例
---
id: my.weather
name: 天气查询
trigger:
  type: keyword
  value: "天气|weather|气温"
---
$ openclaw skills install .
✓ Skill 'my.weather' registered
$ openclaw gateway restart
✓ Gateway ready on :18789

开发者文档

完整的 API 参考、技能开发规范与 SDK 集成指南

Base URL: https://pithclaw.xyz/v1 (规划中)
PithClaw 发行版
GET
/pithclaw/releases/latest
最新版本信息 + sha256
GET
/pithclaw/releases
全版本历史列表
POST
/pithclaw/update/check
批量组件版本对比
FEAIA 服务
GET
/feaia/tray/latest
TrayTool 最新版本
GET
/feaia/roles/list
官方角色包目录
POST
/feaia/auth/token
云端 JWT 签发(可选)
技能注册表
GET
/pithclaw/skills/registry
全技能目录
GET
/pithclaw/skills/{id}
技能元数据
POST
/pithclaw/skills/publish
发布技能(需 Token)
SpryClawX 中继
WS
/spryclaw/relay
跨网络设备同步
GET
/spryclaw/latest
SpryClawX 版本信息
响应示例 — /v1/pithclaw/releases/latest
{ "version": "1.1.0", "released_at": "2026-04-06T00:00:00Z", "components": { "pithclaw": { "version": "1.1.0", "sha256": "a3f2b9..." }, "feaia_tray": { "version": "1.0.2", "type": "important" }, "spryclawx": { "version": "1.1.2" }, "node_lts": { "version": "v22.16.0" } }, "download_url": "https://gitee.com/voxvoy/pithclaw/releases/v1.1.0" }
查看完整 REST API 文档 →
技能包格式规范 v1.0 — 每个技能是一个目录,包含 SKILL.md 元数据文件
SKILL.md — 完整字段规范
--- id: your-org.skill-name # 唯一标识,点分格式 name: 技能显示名称 description: 一句话描述技能功能 version: 1.0.0 author: yourname platform: feaia # feaia | openclaw | universal trigger: type: keyword # keyword | intent | schedule | webhook value: "天气|weather|气温|forecast" # 正则或关键字,| 分隔 permissions: - network_outbound # 所需权限声明 - file_read output: type: text # text | card | image | action --- # 技能主体 Markdown ## 功能描述 查询指定城市当日天气,返回温度、天气状况和建议。 ## 使用示例 - 北京今天天气 - What's the weather in Shanghai? ## API 集成 - 数据源:OpenWeatherMap / 和风天气 - 请求方式:GET,需要 apiKey 配置
开发与发布流程
📝
1. 编写 SKILL.md
填写元数据、触发关键字、权限声明、使用示例
🧪
2. 本地测试
openclaw skills install . 安装到本地,验证触发与响应
🚀
3. 发布到注册表
提交 PR 到 gitee.com/voxvoy/pithclaw-skills,通过审核后上线
查看完整技能开发指南 →
OpenClaw CLI — 安装后通过 openclaw 命令访问所有功能
CLI 完整命令参考
# 核心命令 openclaw # 启动交互式 AI 对话 openclaw start # 后台启动 Gateway openclaw stop # 停止 Gateway openclaw restart # 重启 Gateway openclaw status # 查看运行状态 # 配置管理 openclaw config list # 查看所有配置 openclaw config set llm.provider deepseek openclaw config set llm.apiKey sk-xxxxx openclaw config set gateway.port 18789 # 技能管理 openclaw skills list # 列出已安装技能 openclaw skills install ./my-skill openclaw skills install @community/stock openclaw skills enable weather openclaw skills disable email # 渠道管理(Bot 接入) openclaw channels add --channel qqbot --token "AppID:Secret" openclaw channels list openclaw channels remove qqbot # 插件管理 openclaw plugins install @sliverp/qqbot@latest openclaw plugins list openclaw plugins update # 诊断 openclaw doctor # 环境诊断 openclaw logs --tail 50 # 查看最近日志 openclaw version # 版本信息
🔌
Gateway HTTP API
本地 127.0.0.1:18789 REST 接口,Token 鉴权,JSON 通信
🪟
Electron IPC
pithclaw:* 命名空间,contextBridge 沙箱,支持白名单 invoke
📚
npm 包
npm i openclaw 程序化接入,Node.js / TypeScript 支持
查看完整 SDK 文档 →
Webhook 让你的应用实时接收 PithClaw 事件推送
💬
message.received
收到用户消息时触发,含渠道、内容、Session ID
✅
skill.triggered
技能被匹配触发,含 skill_id、触发词、置信度
🔄
gateway.status
Gateway 启动/停止/重启状态变更推送
Webhook Payload 示例
POST https://your-server.com/webhook Content-Type: application/json X-PithClaw-Signature: sha256=... { "event": "skill.triggered", "timestamp": 1743868800000, "skill_id": "my-org.weather", "trigger": "北京今天天气", "channel": "qqbot", "session_id": "sess_a3f2b9c1", "user_id": "qq_12345678" }
查看完整 Webhook 规范 →
18789
Gateway 默认端口
52
内置技能数量
7+
支持聊天平台
MIT
开源协议

开始构建

从安装 PithClaw 开始,5 分钟内发布你的第一个技能

🚀 安装 PithClaw ⭐ Gitee 开源 ← 返回首页