← Back to Skills Marketplace
sprintmint

cpbox-answers

by springmint · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ⚠ suspicious
173
Downloads
2
Stars
0
Active Installs
1
Versions
Install in OpenClaw
/install cpbox-answers
Description
USE FOR AI-grounded answers via OpenAI-compatible /chat/completions. Two modes: single-search (fast) or deep research (enable_research=true, thorough multi-s...
README (SKILL.md)

Answers — AI Grounding

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

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

Service URLs

Role Domain
API Provider https://www.cpbox.io
Facilitator https://www.cppay.finance

Endpoint (Agent Interface)

POST /api/x402/answers

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 response

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

When to Use

Use Case Skill Why
Quick factual answer (raw context) llm-context Single search, returns raw context for YOUR LLM
Fast AI answer with citations answers (single-search) streaming, citations
Thorough multi-search deep research answers (research mode) Iterative deep research, synthesized cited answer

This endpoint (/res/v1/chat/completions) supports two modes:

  • Single-search (default): Fast AI-grounded answer from a single search. Supports enable_citations.
  • Research (enable_research=true): Multi-iteration deep research with progress events and synthesized cited answer.

Quick Start (cURL)

Blocking (Single-Search)

curl -X POST "https://www.cpbox.io/api/x402/answers" \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [{"role": "user", "content": "How does the James Webb Space Telescope work?"}],
    "model": "default",
    "stream": false
  }'

Streaming with Citations (Single-Search)

curl -X POST "https://www.cpbox.io/api/x402/answers" \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [{"role": "user", "content": "What are recent breakthroughs in fusion energy?"}],
    "model": "default",
    "stream": true,
    "enable_citations": true
  }'

Research Mode

curl -X POST "https://www.cpbox.io/api/x402/answers" \
  -H "Content-Type: application/json" \
  -d '{
    "messages": [{"role": "user", "content": "Compare quantum computing approaches"}],
    "model": "default",
    "stream": true,
    "enable_research": true,
    "research_maximum_number_of_iterations": 3,
    "research_maximum_number_of_seconds": 120
  }'

Using with x402-payment

CLI (AI Agent)

npx @springmint/x402-payment \
  --url https://www.cpbox.io/api/x402/answers \
  --method POST \
  --input '{"messages":[{"role":"user","content":"How does the James Webb Space Telescope work?"}],"model":"default","stream":false}'

Payload/Response

OpenAI-compatible chat.completions JSON + SSE streaming (pass-through).

Two Modes

Feature Single-Search (default) Research (enable_research=true)
Speed Fast Slow
Searches 1 Multiple (iterative)
Streaming Optional (stream=true/false) Required (stream=true)
Citations enable_citations=true (streaming only) Built-in (in \x3Canswer> tag)
Progress events No Yes (\x3Cprogress> tags)
Blocking response Yes (stream=false) No

Parameters

Standard Parameters

Parameter Type Required Default Description
messages array Yes - Single user message (exactly 1 message)
model string Yes - Use "default"
stream bool No true Enable SSE streaming
country string No "US" Search country (2-letter country code or ALL)
language string No "en" Response language
safesearch string No "moderate" Search safety level (off, moderate, strict)
max_completion_tokens int No null Upper bound on completion tokens
enable_citations bool No false Include inline citation tags (single-search streaming only)
web_search_options object No null OpenAI-compatible; search_context_size: low, medium, high

Research Parameters

Parameter Type Required Default Description
enable_research bool No false Enable research mode
research_allow_thinking bool No true Enable extended thinking
research_maximum_number_of_tokens_per_query int No 8192 Max tokens per query (1024-16384)
research_maximum_number_of_queries int No 20 Max total search queries (1-50)
research_maximum_number_of_iterations int No 4 Max research iterations (1-5)
research_maximum_number_of_seconds int No 180 Time budget in seconds (1-300)
research_maximum_number_of_results_per_query int No 60 Results per search query (1-60)

Constraints (IMPORTANT)

Constraint Error
enable_research=true requires stream=true "Blocking response doesn't support 'enable_research' option"
enable_research=true incompatible with enable_citations=true "Research mode doesn't support 'enable_citations' option"
enable_citations=true requires stream=true "Blocking response doesn't support 'enable_citations' option"

Notes for Agent Usage

  • Use x402-payment to handle the payment handshake automatically, especially for streaming (stream=true).

Response Format

Blocking Response (stream=false, single-search only)

Standard OpenAI-compatible JSON:

{
  "id": "chatcmpl-...",
  "object": "chat.completion",
  "choices": [{"message": {"role": "assistant", "content": "The James Webb Space Telescope works by..."}, "index": 0, "finish_reason": "stop"}],
  "usage": {"prompt_tokens": 10, "completion_tokens": 50, "total_tokens": 60}
}

Streaming Response

SSE response with OpenAI-compatible chunks:

data: {"id":"chatcmpl-...","object":"chat.completion.chunk","choices":[{"delta":{"content":"Based on"},"index":0}]}

data: {"id":"chatcmpl-...","object":"chat.completion.chunk","choices":[{"delta":{"content":" recent research"},"index":0}]}

data: [DONE]

Streaming Tags by Mode

Single-Search (with enable_citations=true)

Tag Purpose
\x3Ccitation> Inline citation references
\x3Cusage> JSON cost/billing data

Research Mode

Tag Purpose Keep?
\x3Cqueries> Generated search queries Debug
\x3Canalyzing> URL counts (verbose) Debug
\x3Cthinking> URL selection reasoning Debug
\x3Cprogress> Stats: time, iterations, queries, URLs analyzed, tokens Monitor
\x3Cblindspots> Knowledge gaps identified Yes
\x3Canswer> Final synthesized answer (only the final answer is emitted; intermediate drafts are dropped) Yes
\x3Cusage> JSON cost/billing data (included at end of streaming response) Yes

Usage Tag Format

The \x3Cusage> tag contains JSON-stringified cost and token data:

\x3Cusage>{"X-Request-Requests":1,"X-Request-Queries":8,"X-Request-Tokens-In":15000,"X-Request-Tokens-Out":2000,"X-Request-Requests-Cost":0.005,"X-Request-Queries-Cost":0.032,"X-Request-Tokens-In-Cost":0.075,"X-Request-Tokens-Out-Cost":0.01,"X-Request-Total-Cost":0.122}\x3C/usage>

Use Cases

  • Chat interface integration: Use this endpoint to get a web-grounded answer payload in OpenAI-compatible format.
  • Deep research / comprehensive topic research: Use research mode (enable_research=true) for complex questions needing multi-source synthesis (e.g., "Compare approaches to nuclear fusion").
  • OpenAI SDK drop-in: Same SDK, same streaming format — just change base_url and api_key. Works with both sync and async clients.
  • Cited answers: Enable enable_citations=true in single-search mode for inline citation tags, or use research mode which automatically includes citations in its answer.

Notes

  • Timeout: Set client timeout to at least 30s for single-search, 300s (5 min) for research
  • Single message: The messages array must contain exactly 1 user message
  • Cost monitoring: Parse the \x3Cusage> tag from streaming responses to track costs
Usage Guidance
This skill is coherent for a paid answers API, but before installing or using it you should: 1) verify the reputations of https://www.cpbox.io and https://www.cppay.finance and confirm they are the intended providers; 2) inspect the @springmint/x402-payment package (if you plan to npx it) — prefer installing verified packages rather than running one-off npx commands; 3) never paste private keys/seed phrases into prompts or into ad-hoc signing helpers — use a dedicated signing wallet or hardware wallet and limit its exposure; 4) test with non-sensitive sample prompts to confirm behavior and evidence (headers, which data is sent) before sending sensitive data; 5) ask the publisher for a source repository, privacy policy, and terms of service (these are missing from the skill metadata) — having a homepage or source repo would raise confidence. Additional info that would increase confidence: an official homepage/repo, published npm package with known maintainer, and privacy/security documentation describing how user data and payments are handled.
Capability Analysis
Type: OpenClaw Skill Name: cpbox-answers Version: 1.0.0 The skill defines an interface for a paid AI search service at cpbox.io using the x402 payment protocol. It involves high-risk behaviors, specifically instructing the agent to execute shell commands via 'npx @springmint/x402-payment' and perform EIP-712 cryptographic signing for financial transactions. While these capabilities are aligned with the stated 'pay-per-use' purpose, the reliance on remote code execution (npx) and automated payment signing constitutes a significant security risk for an autonomous agent.
Capability Assessment
Purpose & Capability
Name/description (AI-grounded answers) match the instructions: the SKILL.md documents OpenAI-compatible chat completion calls to https://www.cpbox.io and a payment flow. Required resources (none declared) are proportional to this purpose.
Instruction Scope
Instructions direct the agent to send user prompts and metadata to external endpoints (cpbox.io and cppay.finance) and to perform an EIP-712 payment signature flow. This is coherent for a paid API, but it does mean user prompts and any included context will be transmitted to third parties. The SKILL.md references a local README prerequisite that isn't included with the skill bundle.
Install Mechanism
No install spec or code is present (instruction-only), so nothing is written to disk by the skill. The doc suggests using npx @springmint/x402-payment (a third-party npm package) to automate payments — that is an external action the operator would run, but it is optional and not enforced by the skill.
Credentials
The skill declares no required env vars or credentials. However, the payment flow requires signing (EIP-712) with a wallet/private key at runtime; the SKILL.md assumes the client can perform signing (or use the payment SDK). Users must ensure wallet keys/signing are handled securely — the skill does not request keys itself, but the flow requires them.
Persistence & Privilege
always is false and there is no install-time behavior or claims to persist or modify other skills or system settings. The skill does not request elevated agent privileges.
How to Use
  1. Make sure OpenClaw is installed (local or Docker)
  2. Run the install command in chat: /install cpbox-answers
  3. After installation, invoke the skill by name or use /cpbox-answers
  4. Provide required inputs per the skill's parameter spec and get structured output
Version History
v1.0.0
Initial publish
Metadata
Slug cpbox-answers
Version 1.0.0
License MIT-0
All-time Installs 0
Active Installs 0
Total Versions 1
Frequently Asked Questions

What is cpbox-answers?

USE FOR AI-grounded answers via OpenAI-compatible /chat/completions. Two modes: single-search (fast) or deep research (enable_research=true, thorough multi-s... It is an AI Agent Skill for Claude Code / OpenClaw, with 173 downloads so far.

How do I install cpbox-answers?

Run "/install cpbox-answers" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.

Is cpbox-answers free?

Yes, cpbox-answers is completely free, licensed under MIT-0. You can download, install and use it at no cost.

Which platforms does cpbox-answers support?

cpbox-answers is cross-platform and runs anywhere OpenClaw / Claude Code is available (cross-platform).

Who created cpbox-answers?

It is built and maintained by springmint (@sprintmint); the current version is v1.0.0.

💬 Comments