Token导航 LogoToken导航TokenDH.com
研究检索需要联网clawhub未标认证来源可访问clear审计提醒

cpbox-llm-contextcpbox LLM context 搜索

Agent Skill

cpbox-llm-context 用于查找、检索和筛选相关信息,适合在 OpenClaw 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

5,414

周安装

219

GitHub Stars

2

下载量

1,699
OpenClaw

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT-0

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:cpbox-llm-context(cpbox LLM context 搜索)
来源仓库:https://github.com/sprintmint/cpbox-llm-context
安装命令:
openclaw skills install cpbox-llm-context
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 OpenClaw 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

ClawHubOpenClaw
openclaw skills install cpbox-llm-context

简介

用于 RAG/LLM 场景下获取预处理的 Web 内容,包括文本、表格和代码。

  • 支持按复杂度调整输出长度,优化 LLM 上下文加载效率。
  • 通过 clawhub 安装,需指定 URL 和过滤条件。
  • 提取内容可能包含噪声,建议人工清洗后使用。
  • 不涉及语义理解,仅做信息抽取和格式化。cpbox-llm-context 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

name
llm-context
description
USE FOR RAG/LLM grounding. Returns pre-extracted web content (text, tables, code) optimized for LLMs. GET + POST. Adjust max_tokens/count based on complexity. Supports Goggles, local/POI. For AI answers use answers. Recommended for anyone building AI/agentic applications.

LLM Context

Paid LLM Context proxy via x402 pay-per-use (HTTP 402).

Prerequisites: This skill requires x402-payment. Complete the setup steps before first use.

Service URLs

RoleDomain
API Providerhttps://www.cpbox.io
Facilitatorhttps://www.cppay.finance

Endpoint (Agent Interface)

GET  /api/x402/llm-context
POST /api/x402/llm-context/post

Payment Flow (x402 Protocol)

  1. First request (no PAYMENT-SIGNATURE) -> 402 Payment Required with requirements JSON
  2. Client signs (EIP-712) -> PAYMENT-SIGNATURE
  3. Retry with PAYMENT-SIGNATURE -> Server settles and returns JSON

With @springmint/x402-payment or x402-sdk-go, payment is automatic.

LLM Context delivers pre-extracted, relevance-ranked web content optimized for grounding LLM responses in real-time search results. Unlike traditional web search APIs that return links and snippets, LLM Context extracts the actual page content—text chunks, tables, code blocks, and structured data—so your LLM or AI agent can reason over it directly.

LLM Context vs AI Grounding

| Feature | LLM Context (this) | AI Grounding (answers) | |--|--|--| | Output | Raw extracted content for YOUR LLM | End-to-end AI answers with citations | | Interface | REST API (GET/POST) | OpenAI-compatible /chat/completions | | Searches | Single search per request | Multi-search (iterative research) | | Speed | Fast (<1s) | Slower | | Plan | Search | Answers | | Endpoint | /res/v1/llm/context | /res/v1/chat/completions | | Best for | AI agents, RAG pipelines, tool calls | Chat interfaces, research mode |

Endpoint

GET  https://www.cpbox.io/api/x402/llm-context
POST https://www.cpbox.io/api/x402/llm-context/post

Authentication: handled by x402 payment middleware

Optional Headers:

  • Accept-Encoding: gzip — Enable gzip compression

Quick Start

GET Request

curl -s "https://www.cpbox.io/api/x402/llm-context?q=tallest+mountains+in+the+world" \
  -H "Accept: application/json"

POST Request (JSON body)

curl -s --compressed -X POST "https://www.cpbox.io/api/x402/llm-context/post" \
  -H "Accept: application/json" \
  -H "Accept-Encoding: gzip" \
  -H "Content-Type: application/json" \
  -d '{"q": "tallest mountains in the world"}'

With Goggles (Inline)

curl -s "https://www.cpbox.io/api/x402/llm-context" \
  -H "Accept: application/json" \
  -G \
  --data-urlencode "q=rust programming" \
  --data-urlencode 'goggles=$discard
$site=docs.rs
$site=rust-lang.org'

Using with x402-payment

npx @springmint/x402-payment \
  --url "https://www.cpbox.io/api/x402/llm-context?q=rust+ownership&maximum_number_of_tokens=4096" \
  --method GET

Parameters

Query Parameters

| Parameter | Type | Required | Default | Description | |--|--|--|--|--| | q | string | Yes | - | Search query (1-400 chars, max 50 words) | | country | string | No | US | Search country (2-letter country code or ALL) | | search_lang | string | No | en | Language preference (2+ char language code) | | count | int | No | 20 | Max search results to consider (1-50) |

Context Size Parameters

| Parameter | Type | Required | Default | Description | |--|--|--|--|--| | maximum_number_of_urls | int | No | 20 | Max URLs in response (1-50) | | maximum_number_of_tokens | int | No | 8192 | Approximate max tokens in context (1024-32768) | | maximum_number_of_snippets | int | No | 50 | Max snippets across all URLs (1-100) | | maximum_number_of_tokens_per_url | int | No | 4096 | Max tokens per individual URL (512-8192) | | maximum_number_of_snippets_per_url | int | No | 50 | Max snippets per individual URL (1-100) |

Filtering & Local Parameters

| Parameter | Type | Required | Default | Description | |--|--|--|--|--| | context_threshold_mode | string | No | balanced | Relevance threshold for including content (strict/balanced/lenient) | | enable_local | bool | No | null | Local recall control (true/false/null, see below) | | goggles | string/list | No | null | Goggle URL or inline definition for custom re-ranking |

Context Size Guidelines

| Task Type | count | max_tokens | Example | |--|--|--|--| | Simple factual | 5 | 2048 | "What year was Python created?" | | Standard queries | 20 | 8192 | "Best practices for React hooks" | | Complex research | 50 | 16384 | "Compare AI frameworks for production" |

Larger context windows provide more information but increase latency and cost (of your inference). Start with defaults and adjust.

Threshold Modes

| Mode | Behavior | |--|--| | strict | Higher threshold — fewer but more relevant results | | balanced | Default — good balance between coverage and relevance | | lenient | Lower threshold — more results, may include less relevant content |

Local Recall

The enable_local parameter controls location-aware recall:

| Value | Behavior | |--|--| | null (not set) | Auto-detect — local recall enabled when any location header is provided | | true | Force local — always use local recall, even without location headers | | false | Force standard — always use standard web ranking, even with location headers |

For most use cases, omit enable_local and let the API auto-detect from location headers.

Location Headers

| Header | Type | Description | |--|--|--| | X-Loc-Lat | float | Latitude (-90.0 to 90.0) | | X-Loc-Long | float | Longitude (-180.0 to 180.0) | | X-Loc-City | string | City name | | X-Loc-State | string | State/region code (ISO 3166-2) | | X-Loc-State-Name | string | State/region name | | X-Loc-Country | string | 2-letter country code | | X-Loc-Postal-Code | string | Postal code |

Priority: X-Loc-Lat + X-Loc-Long take precedence. When provided, text-based headers (City, State, Country, Postal-Code) are not used for location resolution. Provide text-based headers only when you don't have coordinates.

Example: With Coordinates

curl -s "https://www.cpbox.io/api/x402/llm-context" \
  -H "Accept: application/json" \
  -H "X-Loc-Lat: 37.7749" \
  -H "X-Loc-Long: -122.4194" \
  -G \
  --data-urlencode "q=best coffee shops near me"

Example: With Place Name

curl -s "https://www.cpbox.io/api/x402/llm-context" \
  -H "Accept: application/json" \
  -H "X-Loc-City: San Francisco" \
  -H "X-Loc-State: CA" \
  -H "X-Loc-Country: US" \
  -G \
  --data-urlencode "q=best coffee shops near me"

Goggles (Custom Ranking)

Goggles let you control which sources ground your LLM — essential for RAG quality.

| Use Case | Goggle Rules | |--|--| | Official docs only | $discard\ $site=docs.python.org | | Exclude user content | $discard,site=reddit.com\ $discard,site=stackoverflow.com | | Academic sources | $discard\ $site=arxiv.org\ $site=.edu | | No paywalls | $discard,site=medium.com |

| Method | Example | |--|--| | Hosted | --data-urlencode "goggles=https://<hosted-goggle-url>" | | Inline | --data-urlencode 'goggles=$discard\ $site=example.com' |

Hosted goggles should be hosted on a public URL and include ! name:, ! description:, ! author: headers. Inline rules need no registration.

Syntax: $boost=N / $downrank=N (1–10), $discard, $site=example.com. Combine with commas: $site=example.com,boost=3. Separate rules with \ (%0A).

Allow list: $discard\ $site=docs.python.org\ $site=developer.mozilla.orgBlock list: $discard,site=pinterest.com\ $discard,site=quora.com

Resources: See your upstream provider's Goggles documentation.

Response Format

Standard Response

{
  "grounding": {
    "generic": [
      {
        "url": "https://example.com/page",
        "title": "Page Title",
        "snippets": [
          "Relevant text chunk extracted from the page...",
          "Another relevant passage from the same page..."
        ]
      }
    ],
    "map": []
  },
  "sources": {
    "https://example.com/page": {
      "title": "Page Title",
      "hostname": "example.com",
      "age": ["Wednesday, January 15, 2025", "2025-01-15", "392 days ago"]
    }
  }
}

Local Response (with enable_local)

{
  "grounding": {
    "generic": [...],
    "poi": {
      "name": "Business Name",
      "url": "https://business.com",
      "title": "Title of business.com website",
      "snippets": ["Business details and information..."]
    },
    "map": [
      {
        "name": "Place Name",
        "url": "https://place.com",
        "title": "Title of place.com website",
        "snippets": ["Place information and details..."]
      }
    ]
  },
  "sources": {
    "https://business.com": {
      "title": "Business Name",
      "hostname": "business.com",
      "age": null
    }
  }
}

Response Fields

| Field | Type | Description | |--|--|--| | grounding | object | Container for all grounding content by type | | grounding.generic | array | Array of URL objects with extracted content (main grounding data) | | grounding.generic[].url | string | Source URL | | grounding.generic[].title | string | Page title | | grounding.generic[].snippets | array | Extracted smart chunks relevant to the query | | grounding.poi | object/null | Point of interest data (only with local recall) | | grounding.poi.name | string/null | Point of interest name | | grounding.poi.url | string/null | POI source URL | | grounding.poi.title | string/null | POI page title | | grounding.poi.snippets | array/null | POI text snippets | | grounding.map | array | Map/place results (only with local recall) | | grounding.map[].name | string/null | Place name | | grounding.map[].url | string/null | Place source URL | | grounding.map[].title | string/null | Place page title | | grounding.map[].snippets | array/null | Place text snippets | | sources | object | Metadata for all referenced URLs, keyed by URL | | sources[url].title | string | Page title | | sources[url].hostname | string | Source hostname | | sources[url].age | array/null | Page modification dates (when available) |

Note: Snippets may contain plain text OR JSON-serialized structured data (tables, schemas, code blocks). LLMs handle this mixed format well.

Use Cases

  • AI Agents: Give your agent a web search tool that returns ready-to-use content in a single call
  • RAG Pipelines: Ground LLM responses in fresh, relevant web content
  • AI Assistants & Chatbots: Provide factual answers backed by real sources
  • Question Answering: Retrieve focused context for specific queries
  • Fact Checking: Verify claims against current web content
  • Content Research: Gather source material on any topic with one API call

Best Practices

  • Token budget: Start with defaults (maximum_number_of_tokens=8192, count=20). Reduce for simple lookups, increase for complex research.
  • Source quality: Use Goggles to restrict to trusted sources. Set context_threshold_mode=strict when precision > recall.
  • Performance: Use smallest count and maximum_number_of_tokens that meet your needs. For local queries, provide location headers.

适合场景

01

OpenClaw 用户查找和安装 Skill 时

02

用户想查找某类 Agent Skill 时

03

需要根据任务场景推荐可安装能力包时

04

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

OpenClaw

98.03%
按下载量换算1,666

安全审计

VirusTotal

通过

ClawScan

可疑

Static analysis

通过

权限和风险

需要联网

该 Skill 可能需要联网访问来源站点、仓库或外部 API;具体网络访问范围需要结合源码和 README 复核。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills