npm openclaw — 官方 Node.js/TypeScript SDK,完整封装 Gateway REST API、技能系统、SpryClawX 同步客户端。
| 参数 | 类型 | 必填 | 说明 |
|---|---|---|---|
| id | string | 必填 | 技能唯一 ID |
| input | object | 必填 | 技能输入参数 |
| options | InvokeOptions | 可选 | timeout_ms, retries |
pip install openclaw — 支持同步和 async/await 两种调用模式,兼容 Python 3.9+。
dotnet add package OpenClaw.SDK — .NET 8+ 原生 SDK,内置 FEAIA TrayTool 集成支持,async/await 全覆盖。
openclaw 命令行工具 — 管理 Gateway、调用技能、查询状态、管理角色包。随 PithClaw 一键安装自动部署。
openclaw。| 命令 | 说明 |
|---|---|
openclaw start openclaw start --port 18789 --model qwen2.5 |
启动 OpenClaw Gateway。--port 指定端口,--model 预加载模型。 |
openclaw stop |
优雅停止当前运行的 Gateway 进程。 |
openclaw status |
显示 Gateway 运行状态、版本、已加载模型和技能数量。 |
openclaw restart |
重启 Gateway,保持配置不变。 |
| 命令 | 说明 |
|---|---|
openclaw skill list |
列出所有已注册技能及其状态。 |
openclaw skill install <path> openclaw skill install ./my-skill/ |
从本地目录安装技能。读取 SKILL.md,启动技能进程,自动注册到 Gateway。 |
openclaw skill remove <id> |
从 Gateway 注销技能并停止其进程。 |
openclaw skill invoke <id> [input] openclaw skill invoke web-search '{"query":"test"}' |
从命令行直接调用技能,输入为 JSON 字符串。 |
| 命令 | 说明 |
|---|---|
openclaw model list |
列出本地已下载的模型。 |
openclaw model pull <name> openclaw model pull qwen2.5:7b |
从模型仓库下载指定模型。支持 HuggingFace 和 Ollama 格式。 |
openclaw model use <name> |
将指定模型设为 Gateway 默认模型。 |
| 命令 | 说明 |
|---|---|
openclaw config get [key] |
查看全部或指定配置项的当前值。 |
openclaw config set <key> <value> openclaw config set gateway.port 18790 |
设置指定配置项的值,立即生效(重启后持久化)。 |
openclaw logs [--follow] |
查看 Gateway 运行日志。--follow 实时追踪输出。 |
openclaw doctor |
运行环境自检:检查 Gateway 状态、模型、技能、FEAIA 连接、网络端点等。输出诊断报告。 |