360 Secure SkillHub
360 安全技能中心

deshell - the web & search in markdown

该 Skill 提供 deshell 命令行工具,可将网页转换为 Markdown、执行网页搜索、截图、渲染页面、获取原始内容并支持绕过缓存,使用环境变量配置 API Key 与额外请求头。

mikel
mikel
热度 29.18
最近更新 2026-05-11 17:26:25
分类:搜索依赖:代码执行 / 第三方 API应用场景:研究 / 工作流

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add deshell
Metadata
name
deshell
description
Fetch web pages as clean Markdown and search the web via the DeShell proxy
version
1.5.0
metadata
{"openclaw":{"emoji":"🔍","requires":{"bins":["node","npm","curl"],"env":["DESHELL_API_KEY","DESHELL_PROXY_URL"]},"primaryEnv":"DESHELL_API_KEY","install":[{"kind":"node","package":"@deshell/mcp","bins":["deshell"]}]}}

DeShell Skill

Gives agents discoverable, consistent access to the DeShell proxy — no manual URL construction, no remembering headers or API keys.

DeShell converts web pages into clean Markdown, saving 60–80% of tokens for LLM consumption.

Setup

  1. Get your API key from https://deshell.ai (sign up or use your existing key)

  2. Install the deshell CLI manually (one-time):

    npm install @deshell/mcp
    
  3. Set the DESHELL_API_KEY environment variable

Commands

# Fetch any URL as clean Markdown
deshell fetch https://example.com

# Search the web and get results as Markdown
deshell search "best practices for Go error handling"

# Multi-word queries work naturally — no quoting needed
deshell search top 10 AI companies 2025

# Take a screenshot of a web page and return it as an image
deshell screenshot https://example.com

# Render a web page (such as a single page javascript app) before trying to extract markdown
deshell render https://example.com

# Fetch a URL and return its raw content bypassing any attempt to render markdown
deshell raw https://example.com

# Fetch a URL and return its content without using the cache
deshell nocache https://example.com

Options

Environment Variable Default Description
DESHELL_API_KEY (none) API key
DESHELL_PROXY_URL https://proxy.deshell.ai/ Proxy base URL
DESHELL_EXTRA_HEADERS (none) Comma-separated extra headers in Header-Name:value format

Output

  • deshell fetch — returns page content as Markdown on stdout
  • deshell search — returns search results with titles, URLs, descriptions, and page content as Markdown on stdout
  • Errors are written to stderr; non-zero exit code on failure

Extra Headers

To pass additional DeShell headers, use comma-separated Header-Name:value pairs:

# Single header
DESHELL_EXTRA_HEADERS="X-DeShell-No-Cache:true" deshell fetch https://example.com

# Multiple headers
DESHELL_EXTRA_HEADERS="X-DeShell-No-Cache:true,X-DeShell-Max-Tokens:2000" deshell fetch https://example.com

Examples

# Research a topic
deshell search "OpenClaw agent framework"

# Read documentation
deshell fetch https://docs.github.com/en/rest

# Force fresh fetch (bypass cache)
DESHELL_EXTRA_HEADERS="X-DeShell-No-Cache:true" deshell fetch https://news.ycombinator.com

Fallback — Direct curl

If you prefer not to install npm packages, you can call the proxy directly with curl:

# Fetch a page
curl -s "https://proxy.deshell.ai/https://example.com" \
  -H "X-DeShell-Key: YOUR_API_KEY"

# Search the web
curl -s "https://proxy.deshell.ai/search?q=your+query" \
  -H "X-DeShell-Key: YOUR_API_KEY" \
  -H "Accept: text/markdown"