Openmd
Everything to Markdown — just beginning.
Turn what you can see but can't take out into Markdown your agents can use.

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.
On headless Linux servers (without DISPLAY or WAYLAND_DISPLAY), Openmd automatically detects the headless environment (shown as headless in openmd doctor), skips browser-dependent routes, and does not install or start the OpenCLI background process. Under --json, --yes, batch, MCP, or non-TTY execution, runs never prompt or wait for QR scans; when something is missing, they fail immediately with missing (such as yt-dlp, asr:baseline, ocr:chain) and install steps in next_action. For X posts, frontmatter also provides author_handle, published_at, views, likes, reposts, replies, bookmarks (omitted when unavailable), quote, thread, thread_count, and thread_coverage.
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.
-
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.
-
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.
-
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