Introduction¶
When building knowledge bases, long text summaries, or RAG in DeepSeek Harness (DSH), you often face scanned PDFs, old versions of Word/PPT, and a batch of images: there is no stable one-click batch OCR locally, and manually running the interface for a single file makes it hard to estimate page count and cost. Below is an introduction to the community plugin @deepwhale-cn/dsh-ocr-batch: it processes PDFs, Word, PPT, and images in a specified directory via the DeepSeek official OCR interface, outputting Markdown-style text; by default, it only estimates page count and cost, and only performs actual upload and execution after adding --confirm.
What is this¶
@deepwhale-cn/dsh-ocr-batch is published on GitHub by the maintainer feely0208 (feely0208/dsh-ocr-batch), the npm package name is @deepwhale-cn/dsh-ocr-batch, the version in the current documentation is 0.1.0, and the license is MIT. It is a skill-type plugin: after installation, the DSH agent calls the CLI according to the skill instructions, and there is no independent panel interface.
During execution, target files are uploaded to the DeepSeek official interface (api.deepseek.com), using your own API Key, and the cost is borne by you. The plugin is declared as an online plugin, uploading target files only to the DeepSeek OCR interface.
Core Features¶
The explicitly defined capabilities in the documentation are as follows:
- Perform batch OCR on PDFs, Word, PPT, and images within a directory, converting them to text (Markdown format).
- First estimate the page count and cost; only when
--confirmis passed will files be actually sent and OCR executed. The page count is based on thepage_countreturned by the server. - The API Key is provided via the environment variable
DEEPSEEK_API_KEYor the parameter--key-file. - The rate snapshot date in the README is 2026-11-13, with a limited-time price of 1.5 RMB per thousand pages (actual billing is based on DeepSeek’s side).
Runtime environment requirements (from package.json): Node.js >=18; DSH >=0.1.0-rc.6 and <0.3.0.
Installation and Enablement¶
To install in DSH, please use the original command from the README, do not manually concatenate github:owner/repo format:
dsh plugin --profile web add @deepwhale-cn/dsh-ocr-batch
After installation, the agent calls the CLI according to the skill; you can also use npx directly in a Node environment to run the same package.
The plugin runs under DSH process permissions. Before installation, it is recommended to check the repository source code and the MIT license yourself to confirm that the upload behavior and Key usage comply with your compliance requirements.
Typical Usage¶
The reproducible examples given in the README consist of two steps: first estimate, then confirm execution.
Estimate page count and cost for a directory (no upload, no OCR execution):
npx @deepwhale-cn/dsh-ocr-batch --dir <directory>
After confirmation, actually call the interface and perform batch conversion:
npx @deepwhale-cn/dsh-ocr-batch --dir <directory> --confirm
Replace <directory> with the path containing the PDF/Word/PPT/images to be processed. If DEEPSEEK_API_KEY is not set, you can use --key-file to point to a file containing the Key.
Applicable Scenarios and Notes¶
Suitable for DSH users or agent workflows that need to process a whole directory of documents locally at once and want to see the page count and cost before deciding whether to call the official OCR. Not suitable for environments that cannot accept outbound file uploads or cannot use a DeepSeek API Key.
Please note:
- By default, upload will not happen; if you forget to add
--confirm, you will only get an estimate and no OCR results will be generated. - Costs and page counts are based on DeepSeek server statistics; the unit price in the README is only a snapshot description for a certain day.
- Community directory pages (such as feely0208/dsh-ocr-batch on skillhub.cn) and GitHub are community information sources. They have no official affiliation with DeepSeek/Huafan, nor are they official app stores.
Conclusion¶
Through the steps above, you can transform the workflow of processing “scanned documents and office docs in a whole directory → estimate cost first → then batch OCR to text” into a CLI capability that can be handed over to the DSH agent to call, reducing the cost of manually running the interface for each file one by one. For further installation instructions and issue feedback, see the GitHub repository and the plugin directory page https://www.skillhub.cn/plugins/feely0208/dsh-ocr-batch.