Skip to main content

Openmd

Everything to Markdown — just beginning.

Turn what you can see but can't take out into Markdown your agents can use.

PyPI Python CI License: MIT

English · 简体中文 · 日本語 · 한국어

AI models keep getting smarter, but what they can read still depends on what you can feed them.

Much of the information that matters is stuck inside platforms: articles behind a login, the exact words spoken in a video, a long podcast conversation, an afternoon-long chat with an AI, a discussion in a group chat. You can see it. You just can't take it out.

Openmd aims to be a cornerstone: it turns that content into open, portable Markdown that people and agents can both read and use directly. Web articles, video platforms, office files, chat conversations — all of it can become raw material for your own knowledge base.

We build for AI-native work first. Openmd keeps the original text unchanged, attaches a receipt stating the source and how complete the result is, and rejects error pages and login walls outright. For an agent, "can I trust this material?" matters as much as "do I have it?"

Everything to Markdown. This is just the beginning.


Quick start

Openmd is a command-line tool and a Python module, openmd (package name openmd-cli). It requires Python 3.10 or newer and runs on Windows, macOS and Linux.

# Windows: one command installs everything (no Python needed beforehand; speech models are offered on first use)
powershell -ExecutionPolicy Bypass -c "irm https://raw.githubusercontent.com/baigao417/openmd/main/scripts/install.ps1 | iex"

# With Python already installed you can use pip (or uv tool install / pipx install)
pip install "openmd-cli[all]"

# Check your local environment and optional components
openmd doctor

# Update; uninstall the program (your data, settings, logins and models are kept by default)
openmd update
openmd uninstall

# Paste a link, press Enter, choose where to save
openmd

# Save one web page straight into a folder
openmd "https://example.com/article" -o ./notes

# For agents and scripts: no prompts, plus a machine-readable JSON receipt
openmd "https://example.com/article" -o ./notes --json

# Process a list of links (one per line); the batch command takes --out
openmd batch links.txt --out ./notes

Each link becomes Title.md in the folder you choose. Run logs go to ~/.openmd/runs/, never into your notes.

For local office documents or local audio/video transcription, install the optional extras:

# Everything below at once (recommended if you are not sure what you need)
pip install "openmd-cli[all]"

# Or pick only what you need:
# Document and image parsing
pip install "openmd-cli[document]"

# OCR for images and scanned pages
pip install "openmd-cli[ocr]"

# Optional Pandoc conversion fallback
pip install "openmd-cli[pandoc]"

# Local speech recognition (ASR) for audio and video
pip install "openmd-cli[asr]"

# Save video/audio files (Openmd-managed yt-dlp)
pip install "openmd-cli[media]"

# Native PDF text layer with per-glyph hidden-text filtering (PyMuPDF)
pip install "openmd-cli[ocr-router]"

[all] is about 1 GB of Python packages (models not included).

Everything else is optional too. A few programs cannot come from pip; you only need one when you hit the case below, and Openmd says so (openmd doctor, or a message with the next step when a file needs it):

Program Needed only for Without it
FFmpeg Audio and video Comes with [media] / [asr]; a system FFmpeg is used first when present
Local models (OCR / speech) Scanned PDFs, and audio or video without subtitles Images and screenshots still OCR on CPU with [ocr]; videos with subtitles still work; openmd doctor shows how to get a model
LibreOffice Best fidelity for old .doc / .ppt and image-only Office files The built-in reader still extracts the text, marked partial
Calibre Kindle books (MOBI / AZW3) Those two formats stop with install steps; nothing else changes
MinerU Best layout on Chinese scans, with --ocr-engine mineru The default OCR route is used

To connect Openmd to your own agent or automation pipeline, see the tool integration guide.

MCP for agents

Use CLI + SKILL.md with shell access; use MCP for discoverable typed tools and per-tool client approval. Install the optional extra, then start the stdio server. Claude Code:

pip install "openmd-cli[mcp]"
claude mcp add --transport stdio openmd -- openmd mcp

One-line uvx setup (no prior installation):

uvx --from "openmd-cli[mcp]" openmd mcp

Cursor: add the same stdio server in Cursor Settings → MCP → Add new MCP Server:

{
  "mcpServers": {
    "openmd": {"command": "openmd", "args": ["mcp"]}
  }
}

Windows: use an absolute executable path and UTF-8 process output when needed:

{
  "mcpServers": {
    "openmd": {"command": "C:\\path\\to\\openmd.exe", "args": ["mcp"], "env": {"PYTHONIOENCODING": "utf-8"}}
  }
}

Claude Desktop: add this to its MCP configuration; use an absolute executable path if needed.

{
  "mcpServers": {
    "openmd": {"command": "openmd", "args": ["mcp"]}
  }
}

The four tools are openmd_save, openmd_save_page, openmd_job and openmd_doctor. openmd_save accepts one source or up to 20 sources; openmd_job(action="cancel") cancels a queued or running job. Clients that send a progressToken receive queue progress, while polling remains available. Completed Markdown artifacts are exposed through openmd://jobs and openmd://job/{job_id} resources, with bounded reads. Output directories must be explicit absolute paths. HTML snapshots accept a string or an absolute file path, up to 2 MiB UTF-8. All five capability flags default off; explicitly grant network, browser, media, asr or cloud. The CLI capability flags are reused; MCP does not infer the daily CLI grants from an output directory and does not remember it. This stdio setup requires a local process launcher; remote connectors need their own transport bridge.


Why it fits in front of AI and knowledge bases

Openmd is not a knowledge base or a RAG retrieval system. It focuses on the foundational step: getting information out and getting it straight.

  1. Keep the original; leave interpretation to later steps By default Openmd keeps the full original text, captions or transcript, and only tidies paragraphs and whitespace. It does not summarize, translate or rewrite. People can check the exact wording, and no key details are lost before the text reaches an AI context.

  2. Source, metadata and timestamps included The Markdown can carry the title, author, original link and other metadata (as far as the source provides them). Audio and video transcripts keep timestamps and a note on the source and completeness. An optional structured package output is available for downstream tools.

  3. Invalid pages are rejected, not saved When Openmd recognizes an error page or a login wall, it rejects the result and reports it in the receipt instead of quietly saving a broken page as a normal-looking note. (Web pages vary too much to promise that every bad page is caught.)


What it can read today

Category Source Status Notes
Web and social Web articles Ready Works right after install
WeChat Official Account posts, X posts Ready Public posts work right after install: WeChat articles are read locally first (usually 5–20 s) and X needs no login; the browser extension and your existing access are used only when that fails
Save current page, login reminders Ready Requires the Openmd browser extension
Audio, video and transcripts YouTube (with captions), Xiaoyuzhou Ready Xiaoyuzhou shows a QR code in the terminal on first use; scan it once with the Xiaoyuzhou app (Discover → Scan) and the login then renews itself. This may get the account rate-limited or banned, so use a throwaway account
Bilibili, Xiaoe-tech Ready Needs the browser extension; Bilibili AI subtitles also need you to be logged in; Xiaoe-tech needs you to log in and open the course in the browser, and its login page is refused otherwise
Audio/video without subtitles, local media Needs extras Needs the [asr] extra (included in [all]) and a local speech model: Openmd offers to download one on first use (falling back to ModelScope when HuggingFace is unreachable) and detects models already on your machine
Local documents and images PDF, DOCX, PPTX, XLSX, images Needs extras Needs the [document] extra; complex layouts and scans may go through an extra OCR route
Workplace docs Feishu / Lark documents Partial Needs lark-cli installed and logged in on your machine, plus --enable-network-backends to allow network reads
AI chat Doubao, Gemini, Qwen, Yuanbao, Grok, DeepSeek (an open conversation page) Partial Needs the browser extension: click on the page to save what is already loaded, or let an agent hand the page over with --as-snapshot; covers the visible branch; model thinking is omitted by default
ChatGPT conversation pages; ChatGPT / Claude official export ZIP or JSON Experimental A ChatGPT page that does not render the user's prompts is saved as partial; official exports import locally, without a browser
Chat history QQ group export files (JSON / HTML / TXT) Paused Export parsing exists but is not yet offered as a stable feature; Openmd never reads or decrypts chat databases
Experimental Douyin, Xiaohongshu Experimental Needs the browser extension and login; these sites often block automated reads, so stability and full coverage are not promised. For a Xiaohongshu note, open it in the browser and click the extension, or let an agent open it in its own browser and pass the page to --as-snapshot; the background CLI read gives up after about 60 s; Douyin uses media download plus local ASR

Local document formats

The [document] extra is the baseline for local document parsing. This matrix was measured on a clean install; it describes native text and reports partial results honestly. Install [ocr] for images or scans and [pandoc] for an optional conversion fallback. See the format chains and limits.

Formats Status with [document] Optional enhancement / limitation
PDF with native text Available Scans need local OCR; table geometry is not certified
DOCX Partial Text is available; table shape is not certified for every sample
PPTX, XLSX, XLS Available Embedded image, notes, formula-cache and binary-image limits are reported
HTML, HTM, EPUB, RTF, ODT, ODS, ODP, FB2 Available or partial Local files; scripts do not run; complex layout may be partial
CSV, TSV, JSON, XML, IPYNB, MSG Available Large tables may be truncated; notebooks are never executed; MSG attachments are reported as gaps
DOC, PPT Partial text fallback Install LibreOffice for the preferred conversion; layout and active binary slide order are not certified
ZIP Partial, with per-entry status Mixed-media entries require ASR/OCR separately; archive resource limits apply
MOBI, AZW3 Requires Calibre Missing tool returns engine_unavailable; encrypted books are rejected without decryption

The Explorer / Finder / file-manager action is installed per user with openmd shell-menu install. Right-click a supported document to create a neighboring .md; right-click a folder to create a <folder>-md mirror that preserves subfolders. Repeated runs skip unchanged inputs and preserve edited Markdown. Same-name files in different formats keep their extensions in the Markdown filename. On Windows, install Openmd persistently with uv tool install openmd-cli or pipx install openmd-cli before adding the menu; temporary uvx cache installs are rejected. Scanned PDFs still need local OCR. For an optional MinerU route, install it yourself, configure OPENMD_MINERU or tools.mineru.executable, and use --ocr-engine mineru; AGPL and model terms apply. Windows 11 may show the classic HKCU menu under Show more options; a first-level packaged Explorer command is outside this lightweight installer. Use openmd shell-menu uninstall to remove it.

Run openmd doctor to see what is ready on your machine. If a link fails, Openmd prints the reason and one line to paste into a bug report.

Measured comparisons with Firecrawl, Jina, MarkItDown, Docling, MinerU and others in a fresh new-user environment, including where Openmd falls behind, are in the public benchmark report.


What the output looks like

---
title: "How we built the reading lamp"
author: "Example Studio"
url: "https://www.bilibili.com/video/BV..."
published: "2026-05-24"
platform: "bilibili"
---

# How we built the reading lamp

**00:00:00**

Today I want to show you the lamp we spent three months on and why the first two versions failed

**00:00:31**

The first prototype was too bright at night so we added a second light source under the shade

*来源:自动字幕;识别错误保持原样。*
  • YAML front matter that note apps (Obsidian, Logseq) and scripts can read.
  • Transcripts are split into paragraphs of roughly 30 seconds, about 450 characters, or a natural pause, each starting with its timestamp, so people can skim and agents can cite a moment.
  • The last line states where the text came from (original text, platform captions, auto captions, speech recognition …) and whether it is complete. The label is currently in Chinese.

Browser extension and local operation

  • Reuses the browser access you already have. Some routes — WeChat Official Accounts, X, Bilibili and others — work through the Openmd browser extension, and some content requires you to be logged in. The extension currently supports Chrome and Edge on Windows. Openmd only uses access you legitimately have; it does not promise to get around logins, paywalls, DRM or other access controls.
  • Local first, with clear network boundaries. Openmd runs locally, but reading online content necessarily contacts the original site, and some components may download on first use. Anything involving a cloud service must be turned on by you explicitly.

Install the extension:

  1. Run openmd browser-setup. It registers the local connection and opens the extension folder.
  2. Open chrome://extensions (or edge://extensions), turn on Developer mode, click Load unpacked, and choose that folder.
  3. Click the Openmd icon on any page to save it. Select several tabs to save them all, or right-click a selection to save every link in it.

On any public http(s) page, the right-click menu also offers Save with video/audio transcript and Save with video/audio file. Native transcript routes are not transcribed twice; file keeps public decoded media beside the Markdown when the route supports it. DRM, paywalled and encrypted media are not retained.

You can also download the extension ZIP from Releases, unzip it and load the unpacked folder after running openmd browser-setup.

  • Default browser behavior. Reads happen without a popup in inactive background tabs in an existing window; owned tabs start muted and close automatically when the job finishes.

Chrome may show a browser-provided bar saying that Openmd started debugging the browser; extensions cannot hide this notice.


Managed OpenCLI

OpenCLI is Openmd's managed browser and platform component. openmd opencli list and openmd opencli <site> <command> [args] pass through read-only commands and preserve their output and exit status. Writes and unknown commands fail closed unless you explicitly add --allow-write; Openmd does not print credential contents.


Configuration

Environment variable Effect
OPENMD_AUTO_INSTALL_TOOLS=0 Never download the browser reader component automatically
OPENMD_NPM_REGISTRY npm mirror used for that one-time download
OPENMD_SHOW_BROWSER=1 Keep the background browser window visible, for troubleshooting
OPENMD_DATA_DIR Where Openmd keeps its settings, logs and tools (default ~/.openmd)

More: tool integration, current routes, architecture map.


Where it's heading

Everything to Markdown is a long-term vision. These directions are being explored and are not delivered yet:

  • Web AI chat export reads the conversation page you already have open (extension click, or an agent's own browser via --as-snapshot); it never re-opens the link in the background. It is partial support: only the loaded, visible branch is saved. ChatGPT / Claude official exports can be imported offline with openmd go export.zip -o archive --chatgpt-export / --claude-export (JSON is also accepted; formats are auto-detected). Use --claude-title, --claude-since, --claude-until to filter Claude exports; non-text blocks and attachments become counted placeholders. Repeated imports preserve user edits.
  • E-books and more text formats: EPUB, RTF, MOBI, AZW3 and others.
  • Broader document parsing: better extraction from documents with complex layouts.

None of these counts as a delivered feature until it has been verified on real samples.


FAQ

Does Openmd summarize or clean up the text? No. It only changes whitespace and paragraph breaks. Summaries, translation and polishing are left to whatever tool you use next.

Where does my data go? Nowhere. Openmd runs locally, reads pages with your own network and browser, and writes files to the folder you choose. It never stores cookies or passwords.

Why is the package called openmd-cli? The name openmd on PyPI belongs to an unrelated project. Once installed, the command is still openmd.

A link didn't work. Run it again with --verbose to see which reader was tried, then open a link failure report with the line Openmd printed. Failing links are the most useful contribution there is. When the feedback package option is enabled, openmd report feedback <job-id> -o <dir> creates a sanitized package: failed link routes contain only bounded manifest.json and receipt.json, while every captured page route can retain sanitized structure.html, doctor.json, and README.txt for a later manual report. The extension popup's recent tasks list also offers “结果不对?生成问题报告”. Check the package before attaching it; raw page content, cookies, account data, and signed URL parameters are never included.


Contributing

Bug reports with a real link, new platform integrations and fixes are all welcome. Most new platforms need only a small JSON "tool card" — see adding a platform. Development works the same on Windows, macOS and Linux:

git clone https://github.com/baigao417/openmd && cd openmd
python scripts/dev_setup.py     # creates .venv, installs dev dependencies, checks ffmpeg / Node
python -m pytest

Every fix comes with a test that failed before it, and every "it works" claim comes with a real link that was actually run. Read CONTRIBUTING and the code standards before opening a pull request.


Acknowledgements and license

Openmd stands on the work of OpenCLI (browser reading, built in), trafilatura, youtube-transcript-api, Bilibili-Harvest (Lanbin07), faster-whisper and MarkItDown. Details and licenses: THIRD_PARTY_NOTICES.

Community: thanks to LINUX DO for the feedback and discussion.

Openmd is released under the MIT license. Respect the copyright of what you save; Openmd is meant for personal archiving and research.

Everything to Markdown — just beginning.

Metadata

Release files for openmd-cli 0.3.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for openmd-cli 0.3.0
File Size Uploaded Provenance Actions
openmd_cli-0.3.0.tar.gz 1.0 MB With provenance Details for openmd_cli-0.3.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for openmd-cli 0.3.0
File Interpreter ABI Platform Actions
openmd_cli-0.3.0-py3-none-any.whl Python 3 none any Details for openmd_cli-0.3.0-py3-none-any.whl

Total release size: 1.9 MB

Release files / openmd_cli-0.3.0.tar.gz

Download URL openmd_cli-0.3.0.tar.gz
Size 1.0 MB
Tags Source
SHA-256 checksum
How to use checksums
9e58ab95f6b21cf70b2e6d88d3094beea82faf8ad160eb9b2161d1cfb08461d0
BLAKE2b-256 checksum
How to use checksums
f3db8e00ed55d88c10cd609daaf0f23b6ef9520a0994b2fc5cb47b10999febf1
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Release files / openmd_cli-0.3.0-py3-none-any.whl

Download URL openmd_cli-0.3.0-py3-none-any.whl
Size 859.8 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a6377b78308bc1c7c04b7c795127b1bb1155c427cb1f1647b7f55afc4b9a3beb
BLAKE2b-256 checksum
How to use checksums
5190cba0ba5d423fc54d73b9450f772d697c9b3cf4a93e15d52f4428c1e5a40d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

Security for openmd-cli 0.3.0

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for openmd_cli-0.3.0.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 22, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page