Install
openclaw skills install opencliUse the local OpenCLI source install at `/Users/ShiXin/Documents/Workspace/github-project/opencli` as the primary `opencli` skill. Load this when the user explicitly asks to use OpenCLI or `skill opencli`, or when a task maps well to OpenCLI adapters/external-CLI passthrough instead of generic browser automation. Covers capability discovery, browser-bridge health checks, Twitter/X routing, and stable command invocation.
openclaw skills install opencliThis is the canonical OpenCLI skill for this workspace.
Use it when the user says any of:
opencliskill opencliuse OpenCLI用 opencliAlso use it when a request is better handled by an existing OpenCLI adapter than by ad-hoc browser driving.
Always invoke OpenCLI through this wrapper first:
/Users/ShiXin/.openclaw/skills/opencli/scripts/opencli.sh <args...>
Wrapper behavior:
/Users/ShiXin/Documents/Workspace/github-project/opencli/dist/main.jsopencli binary only if the source build is unavailableThis avoids old global installs and keeps behavior aligned with the source repo.
Version: local source build 1.7.7 (source repo) | global npm 1.7.8 (fallback).
自动同步: 本地 source repo 由 cron job 每周二技能升级检查(每周二 09:00)自动同步 origin/main。无需手动更新。
Do not hard-code site command lists from memory.
At the start of a task, prefer:
/Users/ShiXin/.openclaw/skills/opencli/scripts/opencli.sh list -f json
/Users/ShiXin/.openclaw/skills/opencli/scripts/opencli.sh <site> --help
/Users/ShiXin/.openclaw/skills/opencli/scripts/opencli.sh <site> <command> --help
Important top-level commands currently available from the local source build include:
listvalidateverifyexplore|probesynthesizegeneraterecordcascadedoctorplugininstallregistergh, docker, lark-cli, vercelRun this when checking the browser bridge:
/Users/ShiXin/.openclaw/skills/opencli/scripts/opencli.sh doctor --no-live
Interpretation:
doctor only diagnoses the browser bridgePUBLIC or non-browser discovery commands can still work when doctor is not green-f json for agent use--help before assuming argument shapesUse the correct command for the job:
# Search uses a positional query, not --query
/Users/ShiXin/.openclaw/skills/opencli/scripts/opencli.sh twitter search "OpenAI" --limit 10 -f json
# Single tweet / thread by tweet ID or status URL
/Users/ShiXin/.openclaw/skills/opencli/scripts/opencli.sh twitter thread 2047128854389465296 -f json
# Long-form article / note-tweet-like article content
/Users/ShiXin/.openclaw/skills/opencli/scripts/opencli.sh twitter article 2047128854389465296 -f json
Important routing notes:
twitter search is opencli twitter search <query>opencli twitter id ... subcommandtwitter thread over twitter searchtwitter search depends on search results and indexing; it is not the right primitive for direct-ID retrievalopencli gh ...scripts/opencli.sh — canonical wrapperreferences/commands.md — validated command cookbook/Users/ShiXin/Documents/Workspace/github-project/opencli/skills/opencli-usage/SKILL.md