| summary | CLI reference: commands, flags, config, lockfile, sync behavior. | ||
|---|---|---|---|
| read_when |
|
CLI package: packages/clawhub/ (published as clawhub, bin: clawhub).
From this repo you can run it via the wrapper script:
bun clawhub --help--workdir <dir>: working directory (default: cwd; falls back to Clawdbot workspace if configured)--dir <dir>: install dir under workdir (default:skills)--site <url>: base URL for browser login (default:https://clawhub.ai)--registry <url>: API base URL (default: discovered, elsehttps://clawhub.ai)--no-input: disable prompts
Env equivalents:
CLAWHUB_SITE(legacyCLAWDHUB_SITE)CLAWHUB_REGISTRY(legacyCLAWDHUB_REGISTRY)CLAWHUB_WORKDIR(legacyCLAWDHUB_WORKDIR)
The CLI respects standard HTTP proxy environment variables for systems behind corporate proxies or restricted networks:
HTTPS_PROXY/https_proxyHTTP_PROXY/http_proxyNO_PROXY/no_proxy
When any of these variables is set, the CLI routes outbound requests through
the specified proxy. HTTPS_PROXY is used for HTTPS requests, HTTP_PROXY
for plain HTTP. NO_PROXY / no_proxy is respected to bypass the proxy for
specific hosts or domains.
This is required on systems where direct outbound connections are blocked (e.g. Docker containers, Hetzner VPS with proxy-only internet, corporate firewalls).
Example:
export HTTPS_PROXY=http://proxy.example.com:3128
export NO_PROXY=localhost,127.0.0.1
clawhub search "my query"When no proxy variable is set, behavior is unchanged (direct connections).
Stores your API token + cached registry URL.
- macOS:
~/Library/Application Support/clawhub/config.json - Linux/XDG:
$XDG_CONFIG_HOME/clawhub/config.jsonor~/.config/clawhub/config.json - Windows:
%APPDATA%\\clawhub\\config.json - Legacy fallback: if
clawhub/config.jsondoes not exist yet butclawdhub/config.jsondoes, the CLI reuses the legacy path - override:
CLAWHUB_CONFIG_PATH(legacyCLAWDHUB_CONFIG_PATH)
- Default: opens browser to
<site>/cli/authand completes via loopback callback. - Headless:
clawhub login --token clh_...
- Verifies the stored token via
/api/v1/whoami.
- Adds/removes a skill from your highlights.
- Calls
POST /api/v1/stars/<slug>andDELETE /api/v1/stars/<slug>. --yesskips confirmation.
- Calls
/api/v1/search?q=....
- Lists latest updated skills via
/api/v1/skills?limit=...(sorted byupdatedAtdesc). - Flags:
--limit <n>(1-200, default: 25)--sort newest|downloads|rating|installs|installsAllTime|trending(default: newest)--json(machine-readable output)
- Output:
<slug> v<version> <age> <summary>(summary truncated to 50 chars).
- Fetches skill metadata and version files without installing.
--version <version>: inspect a specific version (default: latest).--tag <tag>: inspect a tagged version (e.g.latest).--versions: list version history (first page).--limit <n>: max versions to list (1-200).--files: list files for the selected version.--file <path>: fetch raw file content (text files only; 200KB limit).--json: machine-readable output.
- Resolves latest version via
/api/v1/skills/<slug>. - Downloads zip via
/api/v1/download. - Extracts into
<workdir>/<dir>/<slug>. - Writes:
<workdir>/.clawhub/lock.json(legacy.clawdhub)<skill>/.clawhub/origin.json(legacy.clawdhub)
- Removes
<workdir>/<dir>/<slug>and deletes the lockfile entry. - Interactive: asks for confirmation.
- Non-interactive (
--no-input): requires--yes.
- Reads
<workdir>/.clawhub/lock.json(legacy.clawdhub).
- Computes fingerprint from local files.
- If fingerprint matches a known version: no prompt.
- If fingerprint does not match:
- refuses by default
- overwrites with
--force(or prompt, if interactive)
- Publishes via
POST /api/v1/skills(multipart). - Requires semver:
--version 1.2.3. - Publishing a skill means it is released under
MIT-0on ClawHub. - Published skills are free to use, modify, and redistribute without attribution.
- Legacy alias:
publish <path>.
- Soft-delete a skill (owner, moderator, or admin).
- Calls
DELETE /api/v1/skills/{slug}. --yesskips confirmation.
- Restore a hidden skill (owner, moderator, or admin).
- Calls
POST /api/v1/skills/{slug}/undelete. --yesskips confirmation.
- Hide a skill (owner, moderator, or admin).
- Alias for
delete.
- Unhide a skill (owner, moderator, or admin).
- Alias for
undelete.
- Rename an owned skill and keep the previous slug as a redirect alias.
- Calls
POST /api/v1/skills/{slug}/rename. --yesskips confirmation.
- Merge one owned skill into another owned skill.
- The source slug stops listing publicly and becomes a redirect alias to the target.
- Calls
POST /api/v1/skills/{sourceSlug}/merge. --yesskips confirmation.
- Ownership transfer workflow.
- Subcommands:
transfer request <slug> <handle> [--message "..."] [--yes]transfer list [--outgoing]transfer accept <slug> [--yes]transfer reject <slug> [--yes]transfer cancel <slug> [--yes]
- Endpoints:
POST /api/v1/skills/{slug}/transferPOST /api/v1/skills/{slug}/transfer/acceptPOST /api/v1/skills/{slug}/transfer/rejectPOST /api/v1/skills/{slug}/transfer/cancelGET /api/v1/transfers/incomingGET /api/v1/transfers/outgoing
- Ban a user and delete owned skills (moderator/admin only).
- Calls
POST /api/v1/users/ban. --idtreats the argument as a user id instead of a handle.--fuzzyresolves the handle via fuzzy user search (admin only).--reasonrecords an optional ban reason.--yesskips confirmation.
- Change a user role (admin only).
- Calls
POST /api/v1/users/role. --idtreats the argument as a user id instead of a handle.--fuzzyresolves the handle via fuzzy user search (admin only).--yesskips confirmation.
- Publishes a code plugin or bundle plugin via
POST /api/v1/packages. <source>accepts:- Local folder path:
./my-plugin - GitHub repo:
owner/repoorowner/repo@ref - GitHub URL:
https://github.com/owner/repo
- Local folder path:
- Metadata is auto-detected from
package.json,openclaw.plugin.json, andopenclaw.bundle.json. - For GitHub sources, source attribution is auto-populated from the repo, resolved commit, ref, and subpath.
- For local folders, source attribution is auto-detected from local git when the origin remote points at GitHub.
- External code plugins must declare
openclaw.compat.pluginApiandopenclaw.build.openclawVersionexplicitly. Top-levelpackage.json.versionis not used as a fallback for publish validation. --dry-runpreviews the resolved publish payload without uploading.--jsonemits machine-readable output for CI.--owner <handle>lets admins publish under a shared owner account while keeping their own token as the actor.- Existing flags (
--family,--name,--version,--source-repo,--source-commit,--source-ref,--source-path) still work as overrides. - Private GitHub repos require
GITHUB_TOKEN.
ClawHub also ships an official reusable workflow at
/.github/workflows/package-publish.yml
for plugin repos.
Typical caller setup:
name: Package Publish
on:
pull_request:
workflow_dispatch:
push:
tags:
- "v*"
jobs:
dry-run:
if: github.event_name == 'pull_request'
uses: openclaw/clawhub/.github/workflows/package-publish.yml@main
with:
dry_run: true
publish:
if: github.event_name == 'workflow_dispatch' || startsWith(github.ref, 'refs/tags/')
permissions:
contents: read
id-token: write
uses: openclaw/clawhub/.github/workflows/package-publish.yml@main
with:
dry_run: false
secrets:
clawhub_token: ${{ secrets.CLAWHUB_TOKEN }}Notes:
- The reusable workflow defaults
sourceto the caller repo. pull_requestshould usedry_run: trueso CI stays non-polluting.- Real publishes should be limited to trusted events such as
workflow_dispatchor tag pushes. - Trusted publishing without a secret only works on
workflow_dispatch; tag pushes still needclawhub_token. - Keep
clawhub_tokenavailable for first publish, untrusted packages, or break-glass publishes. - The workflow uploads the JSON result as an artifact and exposes it as workflow outputs.
- Scans for local skill folders and publishes new/changed ones.
- Roots can be any folder: a skills directory or a single skill folder with
SKILL.md. - Auto-adds Clawdbot skill roots when
~/.clawdbot/clawdbot.jsonis present:agent.workspace/skills(main agent)routing.agents.*.workspace/skills(per-agent)~/.clawdbot/skills(shared)skills.load.extraDirs(shared packs)
- Respects
CLAWDBOT_CONFIG_PATH/CLAWDBOT_STATE_DIRandOPENCLAW_CONFIG_PATH/OPENCLAW_STATE_DIR. - Flags:
--root <dir...>extra scan roots--allupload without prompting--dry-runshow plan only--bump patch|minor|major(default: patch)--changelog <text>(non-interactive)--tags a,b,c(default: latest)--concurrency <n>(default: 4)
Telemetry:
- Sent during
syncwhen logged in, unlessCLAWHUB_DISABLE_TELEMETRY=1(legacyCLAWDHUB_DISABLE_TELEMETRY=1). - Details:
docs/telemetry.md.