Token导航 LogoToken导航

Agent Skill · 效率

mineru-ocr-local-api(mineru OCR 本地 API)

用于辅助 API 设计、接口文档、请求响应结构和服务集成说明。它适合让 Agent 梳理 endpoint、生成 OpenAPI 草稿、检查字段命名、整理错误码或辅助前后端联调。使用时需要确认真实业务语义、鉴权方式、分页和错误处理规则;涉及生成接口文档时,应避免凭空补字段,最好从现有代码、schema 或接口样例中提取事实。

mineru-ocr-local-api 是效率类 Agent Skill,可用宿主为 OpenClaw,通过ClawHub获取,权限为接触敏感数据;许可证为 MIT-0,第三方扫描已通过,按安装量在效率类的 21,003 个 Skill 里排第 8,568。

总安装 6,952周安装 284GitHub Stars 1下载 2,227核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
MIT-0
版本
1.1.4

安装方式

通过对话安装

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

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

命令行安装

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

ClawHubOpenClaw
openclaw skills install mineru-ocr-local-api

这个 Skill 是做什么的

效率类 Skill 把重复的整理、汇总、转换工作交给助手完成,减少手工复制粘贴。

该技能通过本地或托管 MinerU 运行时执行 OCR 文档解析。适合隐私敏感场景下的图像文字提取任务。支持复杂版式还原与多语言识别。mineru-ocr-local-api 属于效率类 Skill,可作为该场景下的辅助能力补充。

安装命令:openclaw skills install mineru-ocr-local-api;需指定 API 端点地址。注意本地部署对硬件性能有一定要求。

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 OpenClaw;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 openclaw skills install mineru-ocr-local-api;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

mineru-ocr-local-api 怎么安装?

在终端执行 openclaw skills install mineru-ocr-local-api。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

mineru-ocr-local-api 支持哪些 AI 工具?

公开资料标注支持 OpenClaw。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

mineru-ocr-local-api 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

mineru-ocr-local-api 是免费的吗?

来源标注的许可证是 MIT-0。本站不代收任何费用,也不托管安装包;能否商用、要不要署名,以许可证原文为准。

mineru-ocr-local-api 用的人多吗?

公开数据是累计安装 6,952 次,近一周安装 284 次,下载 2,227 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

mineru-ocr-local-api 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 专注 OpenClaw 一种宿主,触发方式和使用习惯不用来回切换。
  • 许可证明确为 MIT-0,商用和分发边界好判断。
  • 第三方扫描已通过,常见的高风险行为没有命中。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 OpenClaw,想直接扩展它能力的人。
  • 需要处理效率类任务、又不想每次都手写提示词的人。
  • 需要许可证清楚、并且有第三方扫描结果的团队项目。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要厂商级技术支持和 SLA 的生产系统。

效率类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
github

GitHub 代码协作 · OpenClaw

7,632,918545需要联网MIT-0通过
nano-pdf

Nano PDF 文档 · OpenClaw

4,249,476231需要联网MIT-0通过
auto-updater

自动更新程序 · OpenClaw

2,964,063386操作浏览器MIT-0通过
video-frames

视频帧 · OpenClaw

2,621,304112需要联网MIT-0通过
gemini

Gemini 助手 · OpenClaw

2,547,39648需要联网MIT-0有提醒
mineru-ocr-local-api

mineru OCR 本地 API · 本页

6,9521接触敏感数据MIT-0通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

name
mineru-ocr-local-api
description
Parse complex PDFs and document images with MinerU through either the hosted MinerU API or the local open-source MinerU runtime. Use when Codex, OpenClaw, Claude Code, or similar coding agents need MinerU-based OCR, layout-aware Markdown extraction, formula extraction, local-file upload to the MinerU API, local MinerU CLI parsing from https://github.com/opendatalab/MinerU, mode selection between api and local, task polling, archive download, or complete document text extraction.
metadata
openclaw
homepage
https://github.com/opendatalab/MinerU
primaryEnv
MINERU_API_TOKEN
requires
anyBins
envVars
required
false
description
Required for hosted MinerU API mode.
required
false
description
Optional MinerU API base URL override.
required
false
description
Optional HTTP timeout for MinerU API mode.
required
false
description
Optional polling timeout for MinerU API mode.
required
false
description
Optional polling interval for MinerU API mode.
required
false
description
Optional path to mineru or mineru.exe for local mode.
required
false
description
Optional Python interpreter for python -m mineru.cli.client.
required
false
description
Optional local MinerU backend override.
required
false
description
Optional local MinerU parse method override.
required
false
description
Optional local MinerU language hint.
required
false
description
Optional local MinerU model source override.
required
false
description
Optional local MinerU device override.
required
false
description
Optional timeout for local MinerU mode.
dependencies
type
pip
version
>=0.27
url
https://pypi.org/project/httpx/
repository
https://github.com/encode/httpx

MinerU OCR Local API

Hard Rules

  1. Use python scripts/mineru_caller.py for every MinerU request.
  2. Do not parse the document yourself as a fallback.
  3. If MinerU returns an error, show the error and stop.
  4. Treat the saved JSON envelope and generated artifact files as the source of truth.
  5. Prefer the top-level text field when the user asks for the full extracted document.

Choose The Mode

  • Use --mode api when the user wants the hosted MinerU service, already has MINERU_API_TOKEN, needs URL input, or wants the official cloud API workflow.
  • Use --mode local when the user wants the open-source MinerU runtime from https://github.com/opendatalab/MinerU, wants data to stay local, or explicitly asks for local parsing.
  • Use --mode auto only when the user does not care which mode is used. auto prefers API when MINERU_API_TOKEN is configured and falls back to local only for local files.

Standard Workflow

  1. For a hosted API parse from URL:
   python scripts/mineru_caller.py --mode api --file-url "https://example.com/paper.pdf" --pretty
  1. For a hosted API parse from a local file:
   python scripts/mineru_caller.py --mode api --file-path "C:/docs/paper.pdf" --pretty
  1. For a local open-source MinerU parse:
   python scripts/mineru_caller.py --mode local --file-path "C:/docs/paper.pdf" --pretty
  1. When the input is a local file and the user will need an IDE-accessible path, prefer saving beside the source file:
   python scripts/mineru_caller.py --mode local --file-path "C:/docs/paper.pdf" --download-dir "C:/docs/paper.mineru" --pretty
  1. Read these output fields before answering:

- mode: actual execution mode used - text: complete document Markdown from full.md or <file_stem>.md - result.submit: raw task-creation response for API URL parsing - result.batch: raw upload-batch response for API local-file parsing - result.poll: final API task-status payload - result.local: local MinerU CLI invocation summary - artifacts.full_md_path: absolute path to the main Markdown file - artifacts.local_parse_dir: local MinerU parse directory when using --mode local - artifacts.downloaded_zip: downloaded MinerU archive when using --mode api

Useful Flags

  • --mode api|local|auto: choose hosted API, local runtime, or automatic selection
  • --no-wait: return after submission without polling; API mode only
  • --no-download: skip downloading full_zip_url; API mode only
  • --download-dir DIR: store API downloads or local MinerU outputs in a specific directory
  • --language en: pass a language hint
  • --ocr: force OCR mode
  • --disable-formula: turn off formula extraction
  • --local-cmd PATH: explicit path to mineru.exe or mineru
  • --local-python PATH: explicit Python path for python -m mineru.cli.client
  • --local-backend pipeline: choose the local MinerU backend
  • --local-method auto|txt|ocr: choose the local MinerU parse method
  • --local-model-source modelscope: useful in environments where Hugging Face access is restricted
  • --local-device cpu: force a local inference device when needed

Present Results

  • If the user asks for all text, show the top-level text field.
  • If the user asks where files were saved, report the paths in artifacts.
  • If the output is large, give the saved file paths first and then the requested excerpt or summary.
  • If API mode completed but archive download failed, report artifacts.full_zip_url.

Configuration

For API mode:

MINERU_API_TOKEN
MINERU_API_BASE_URL=https://mineru.net
MINERU_API_TIMEOUT=60
MINERU_API_POLL_TIMEOUT=900
MINERU_API_POLL_INTERVAL=5

Windows PowerShell examples:

$env:MINERU_API_TOKEN="YOUR_MINERU_TOKEN"
setx MINERU_API_TOKEN "YOUR_MINERU_TOKEN"

Use the first command for the current terminal only. Use setx to persist it for future terminals, then restart Codex/Cursor or open a new terminal.

For local mode, configure at least one runtime entry point:

MINERU_LOCAL_CMD=C:\path\	o\mineru.exe
MINERU_LOCAL_PYTHON=C:\path\	o\python.exe
MINERU_LOCAL_BACKEND=pipeline
MINERU_LOCAL_METHOD=auto
MINERU_LOCAL_LANG=ch
MINERU_LOCAL_MODEL_SOURCE=modelscope
MINERU_LOCAL_DEVICE_MODE=cpu
MINERU_LOCAL_TIMEOUT=3600

Local mode only supports --file-path. It does not accept --file-url.

Error Handling

  • Missing API token: show the configuration error, tell the user to set MINERU_API_TOKEN, and include one-shot plus persistent commands.
  • Missing local runtime: show the configuration error and stop.
  • Failed task or failed local CLI run: show the error and stop.
  • Poll timeout: tell the user the task id and that polling timed out.
  • API archive download TLS error: rely on the built-in curl fallback before reporting failure.
  • Missing expected output files: return any artifact paths that do exist and report the missing output.

References

  • references/output_schema.md: JSON envelope and artifact layout for both modes.

Load the reference file when:

  • You need to explain which saved files matter.
  • You need to inspect mode-specific artifacts such as downloaded_zip, local_parse_dir, middle_json, or content_list.

Verification

Validate the skill folder:

python /path/to/quick_validate.py /path/to/mineru-ocr-api-local

Run a local runtime check against a sample PDF:

python scripts/mineru_caller.py --mode local --file-path "D:/path/to/file.pdf" --pretty --stdout

Run an API runtime check against a remote PDF:

python scripts/mineru_caller.py --mode api --file-url "https://example.com/file.pdf" --pretty --stdout

平台分布

OpenClaw

80.99%
按下载量换算1,804

安全审计

VirusTotal

通过

ClawScan

通过

Static analysis

通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills