Baidu Qianfan Tools

v1.1.0

百度千帆工具箱 - 集成百度千帆平台多种免费 API | Baidu Qianfan Tools - Integrate Baidu Qianfan Platform APIs

0· 443·3 current·3 all-time

Install

OpenClaw Prompt Flow

Install with OpenClaw

Best for remote or guided setup. Copy the exact prompt, then paste it into OpenClaw for yingyangdao/qianfan-tools.

Previewing Install & Setup.
Prompt PreviewInstall & Setup
Install the skill "Baidu Qianfan Tools" (yingyangdao/qianfan-tools) from ClawHub.
Skill page: https://clawhub.ai/yingyangdao/qianfan-tools
Keep the work scoped to this skill only.
After install, inspect the skill metadata and help me finish setup.
Required env vars: BAIDU_API_KEY
Use only the metadata you can verify from ClawHub; do not invent missing requirements.
Ask before making any broader environment changes.

Command Line

CLI Commands

Use the direct CLI path if you want to install manually and keep every step visible.

OpenClaw CLI

Canonical install target

openclaw skills install yingyangdao/qianfan-tools

ClawHub CLI

Package manager switcher

npx clawhub@latest install qianfan-tools
Security Scan
VirusTotalVirusTotal
Benign
View report →
OpenClawOpenClaw
Benign
high confidence
Purpose & Capability
The skill name, description, and code files all match: the scripts call Baidu Qianfan endpoints under https://qianfan.baidubce.com/v2 and only require a BAIDU_API_KEY. Minor mismatch: SKILL metadata declares no required binaries, but the runtime instructions and files assume Node.js (node) and npm to run the scripts and install the axios dependency (package.json). This is an expected operational detail but should be disclosed.
Instruction Scope
SKILL.md instructions stay within the stated purpose (telling the user to set BAIDU_API_KEY, optionally create a local config.json, and run node scripts). One small inconsistency: SKILL.md suggests editing ~/.openclaw/openclaw.json for platform config, but the code only reads a local config.json in the skill folder (shared.js). The scripts do not attempt to read other system files or unrelated environment variables.
Install Mechanism
No install spec is provided (instruction-only), and all network activity in the code targets the Qianfan base URL. package.json lists only axios as a dependency; there are no downloads from arbitrary URLs or extract operations. Risk is low assuming you run these scripts locally within a Node environment.
Credentials
The only requested credential is BAIDU_API_KEY (declared as primary). The code uses that API key solely to authorize requests to the qianfan API. There are no additional unrelated secrets requested and shared.js falls back to a local config.json only.
Persistence & Privilege
The skill does not request always:true, does not modify other skills or system-wide settings, and does not persist credentials beyond using the provided BAIDU_API_KEY (and a local config.json fallback). Autonomous invocation is allowed by default but that is normal for skills.
Assessment
This skill is internally consistent with its stated purpose: it calls Baidu Qianfan endpoints and needs a BAIDU_API_KEY. Before installing, note: (1) you will need Node.js/npm to run the scripts and to install dependencies (package.json lists axios) — the registry metadata does not declare Node as a required binary; (2) the SKILL.md suggests editing ~/.openclaw/openclaw.json for platform config, but the code only reads a local config.json in the skill folder, so platform config may be required for hosted use; (3) verify the API key you provide has only the Qianfan permissions you intend (principle of least privilege) and be aware of billing/quota implications described in the README; (4) run npm install in the skill directory before executing scripts if you use this locally, and avoid pasting your BAIDU_API_KEY into public places.

Like a lobster shell, security has layers — review code before you run it.

Runtime requirements

🔧 Clawdis
EnvBAIDU_API_KEY
Primary envBAIDU_API_KEY
latestvk973yfy56aqqe86z090a6341b582fh0f
443downloads
0stars
4versions
Updated 1mo ago
v1.1.0
MIT-0

百度千帆工具箱 | Baidu Qianfan Tools

集成百度千帆平台 API,一个技能搞定多个工具! Integrate Baidu Qianfan Platform APIs - one skill for multiple tools!

📋 功能列表 | Features

✅ 已测试可用 | Tested & Working

功能脚本描述
智能搜索ai-search.js搜索 + AI 总结,返回结构化结果
百度热搜hotword.js获取实时热搜榜单

🔧 支持的 API (需开通) | Supported APIs (Requires Activation)

功能脚本描述赠送额度
文本生成chat.js文心大模型对话-
续写continue.js文本续写-
图像生成image.jsAI 绘图-
通用 OCRocr.js图片文字识别-
作文识别ocr-essay.js手写作文 OCR10次/天
PPT生成ppt.js智能 PPT5次/天
百度学术academic.js学术搜索1000次/天

🚀 快速开始 | Quick Start

1. 配置 API Key | Configure API Key

在 Skills 配置页面填写 BAIDU_API_KEY,或编辑 ~/.openclaw/openclaw.json

{
  "skills": {
    "entries": {
      "qianfan-tools": {
        "env": {
          "BAIDU_API_KEY": "你的百度千帆 API Key"
        }
      }
    }
  }
}

本地使用 | Local usage:

cp config.example.json config.json
# 编辑 config.json 填入 apiKey

2. 使用方式 | Usage

cd skills/qianfan-tools
export BAIDU_API_KEY="你的APIKey"

# 智能搜索 | Smart Search
node scripts/ai-search.js "查询内容" [数量]

# 百度热搜 | Baidu Hot Search
node scripts/hotword.js

# 文本对话 (需开通) | Text Chat (requires activation)
node scripts/chat.js "你好"

# 图像生成 (需开通) | Image Generation (requires activation)
node scripts/image.js "一只可爱的猫"

# OCR 文字识别 (需开通) | OCR (requires activation)
node scripts/ocr.js <图片URL>

# PPT生成 (需开通) | PPT Generation (requires activation)
node scripts/ppt.js "主题内容"

# 百度学术 (需开通) | Academic Search (requires activation)
node scripts/academic.js "关键词" [数量]

📊 API 额度参考 | API Quota Reference

API每日赠送基础定价
智能搜索生成100次0.036元/次
百度搜索1000次0.036元/次
百度百科1000次0.036元/次
百度热搜10次0.06元/次
PPT生成5次2.5元/次
初中作文识别10次0.03元/次
高中作文识别10次0.05元/次
百度学术1000次0.07-0.66元/次

⚠️ 注意事项 | Notes

  1. API Key 获取: 访问 百度千帆控制台 创建 API Key
  2. 额度查询: 部分 API 需要在千帆平台开通才能使用
  3. 免费额度: 每日赠送额度用完后将按量计费

📁 项目结构 | Project Structure

qianfan-tools/
├── SKILL.md              # 本文档
├── _meta.json            # 元数据
├── package.json          # 依赖
├── config.example.json   # 配置模板
└── scripts/
    ├── shared.js         # 共享工具
    ├── ai-search.js      # 智能搜索 ✅
    ├── hotword.js        # 百度热搜 ✅
    ├── chat.js           # 文本对话
    ├── continue.js       # 文本续写
    ├── image.js          # 图像生成
    ├── ocr.js            # 通用 OCR
    ├── ocr-essay.js     # 作文 OCR
    ├── ppt.js            # PPT生成
    └── academic.js       # 百度学术

🔗 相关链接 | Links


提示: 本技能复用一个 API Key,统一管理更方便! Tip: This skill uses one API Key for all tools - unified management!

Comments

Loading comments...