/install clawfetch
clawfetch (OpenClaw Skill)
Use the published clawfetch npm CLI to convert a single web page into normalized markdown with a small metadata header.
This skill is a thin wrapper around the public clawfetch package:
- It does not vendor the clawfetch source code.
- It does not perform any hidden git clones.
- It only installs the
clawfetchnpm package in this skill directory via a separate, explicit bootstrap step.
Typical use cases for agents:
- Fetch a WeChat / blog / docs article into markdown for later indexing.
- Fetch a GitHub repository README (raw) and store it into a knowledge base.
- Fetch a Reddit thread as a structured "post + comments" markdown document.
The CLI emits a header like:
--- METADATA ---
Title: ...
Author: ...
Site: ...
FinalURL: ...
Extraction: readability|fallback-container|body-innerText|github-raw-fast-path|reddit-rss
FallbackSelector: ... # only when not readability
--- MARKDOWN ---
\x3Cmarkdown>
Installation (skill-level)
This skill assumes:
node/npmare available in the OpenClaw container.- Network access to npm to install the
clawfetchpackage and its dependencies.
1. Install the skill into your workspace
Use the OpenClaw CLI to pull the skill from ClawHub into your active workspace:
openclaw skills install clawfetch
This creates a directory similar to:
~/.openclaw/workspace/skills/clawfetch
At this point only the skill wrapper files exist (SKILL.md, README, manifest,
bootstrap_deps.sh, etc.). The actual npm package with the scraper logic is
not installed yet.
2. Bootstrap the npm CLI once (required)
From the skill directory, run the bootstrap script to install the npm package locally:
cd ~/.openclaw/workspace/skills/clawfetch
bash bootstrap_deps.sh
This script is small and reviewable; it only calls:
npm install [email protected]
Key points:
- OpenClaw's
skills installdoes not currently auto-run this bootstrap step. Agents or humans must callbootstrap_deps.shexplicitly. - The install happens inside the skill directory. No global npm state is modified.
After this completes, the CLI entrypoint is available at:
~/.openclaw/workspace/skills/clawfetch/node_modules/clawfetch/clawfetch.js
Runtime usage (for agents)
After the bootstrap step, agents can invoke the CLI from this directory as:
node node_modules/clawfetch/clawfetch.js \x3Curl> [--max-comments N] [--no-reddit-rss]
Recommended patterns:
- General articles / docs
- Use the default mode, which launches headless Chromium via Playwright, then uses Readability + Turndown to extract the main article body.
- GitHub repositories
- Pass the repository URL (e.g.
https://github.com/owner/repo). - clawfetch will attempt a raw README fast-path from
raw.githubusercontent.combefore falling back to browser mode.
- Pass the repository URL (e.g.
- Reddit threads
- Pass the thread URL (e.g.
https://www.reddit.com/r/.../comments/.../). - By default, clawfetch will:
- Convert the URL to
.rssand fetch the Atom feed using a normal desktop browser User-Agent. - Render the first entry as the main post (
## Post: ...). - Render subsequent entries as comments (
### Comment by ...), limited by--max-comments(default 50;0means no limit).
- Convert the URL to
- Use
--no-reddit-rssto force browser scraping instead of RSS.
- Pass the thread URL (e.g.
Safety / non-suspicious behaviour
- This skill does not:
- Clone any git repositories at runtime.
- Download arbitrary source trees into the skill directory.
- Run hidden package managers beyond the explicit
npm installin the bootstrap step.
- All heavy work (Playwright, Readability, Turndown) comes from the
published
clawfetchpackage and its declared npm dependencies.
Agents should treat this skill as a read-mostly web → markdown tool and avoid using it for arbitrary scripting or filesystem operations beyond its intended CLI interface.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install clawfetch - After installation, invoke the skill by name or use
/clawfetch - Provide required inputs per the skill's parameter spec and get structured output
What is Claw Web Fetch?
Web page → Markdown scraper skill that wraps the clawfetch Node CLI to fetch articles, GitHub READMEs, and Reddit threads into normalized markdown with metad... It is an AI Agent Skill for Claude Code / OpenClaw, with 388 downloads so far.
How do I install Claw Web Fetch?
Run "/install clawfetch" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Claw Web Fetch free?
Yes, Claw Web Fetch is completely free, licensed under MIT-0. You can download, install and use it at no cost.
Which platforms does Claw Web Fetch support?
Claw Web Fetch is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).
Who created Claw Web Fetch?
It is built and maintained by Ernestyu (@ernestyu); the current version is v0.1.8.