返回顶部
o

openclaw-api-control

Control a hosted OpenClaw instance through the OpenClaw as a Service API. Use when the user asks to talk to OpenClaw over API, send a folder or file to OpenClaw, read or write files in the OpenClaw workspace, run commands on OpenClaw, list or create hosted OpenClaw instances, or wire another agent to OpenClaw using an API key.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 0.1.1
安全检测
已通过
131
下载量
0
收藏
概述
安装方式
版本历史

openclaw-api-control

# OpenClaw API Control ## Overview Use the hosted OpenClaw API instead of the browser UI when an agent should operate an existing OpenClaw instance directly. Required environment variables: - `OPENCLAW_API_KEY` - `OPENCLAW_API_BASE_URL` Optional environment variables: - `OPENCLAW_INSTANCE_ID` Defaults: - If `OPENCLAW_API_BASE_URL` is missing, use `https://openclaw-as-a-service.com/api` - If `OPENCLAW_INSTANCE_ID` is missing, discover a ready instance automatically ## When To Use - “Send this folder to my OpenClaw” - “Upload these files into the OpenClaw workspace” - “Ask my OpenClaw to continue this task” - “Run this command on my hosted OpenClaw” - “Read `/workspace/...` from OpenClaw” - “Create an OpenClaw instance through the API” ## Workflow 1. Verify `OPENCLAW_API_KEY` is present. 2. Use `scripts/openclaw_api_client.mjs root` or `instances list` to confirm connectivity. 3. Resolve the target instance: - Prefer `OPENCLAW_INSTANCE_ID` - Otherwise pick the first `ready` instance from `instances list` 4. Choose the right action: - Chat: `chat send` - Recent history: `chat tail` - Files or folders: `files read`, `files write`, `files upload-tree` - Commands: `terminal exec` 5. Report the exact API action and result back to the user. ## Commands ### Discover API root ```bash node scripts/openclaw_api_client.mjs root ``` ### List instances ```bash node scripts/openclaw_api_client.mjs instances list ``` ### Create an instance ```bash node scripts/openclaw_api_client.mjs instances create --invite-code YOUR_CODE ``` ### Send a chat message ```bash node scripts/openclaw_api_client.mjs chat send --message "Continue the task in /workspace" ``` ### Stream a chat message ```bash node scripts/openclaw_api_client.mjs chat send --stream --message "Narrate each step while you work" ``` ### Upload a folder into `/workspace` ```bash node scripts/openclaw_api_client.mjs files upload-tree --src ./my-project --dest /workspace/my-project ``` ### Read a file ```bash node scripts/openclaw_api_client.mjs files read --path /workspace/README.md ``` ### Run a command ```bash node scripts/openclaw_api_client.mjs terminal exec --command "pwd && ls -la /workspace" ``` ## Notes - `files upload-tree` only uploads text-like files and skips likely binary files. - `chat tail` automatically reuses the latest chat session when no session id is supplied. - The helper prints JSON for machine-friendly reuse. ## Resources - `scripts/openclaw_api_client.mjs` - Minimal Node client for OpenClaw API operations

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 openclaw-api-control-1776118823 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 openclaw-api-control-1776118823 技能

通过命令行安装

skillhub install openclaw-api-control-1776118823

下载 Zip 包

⬇ 下载 openclaw-api-control v0.1.1

文件大小: 5.7 KB | 发布时间: 2026-4-14 14:09

v0.1.1 最新 2026-4-14 14:09
Add env var declarations and security metadata to resolve ClawHub scanner flags

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部