Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local…
Feishu Docx
Feishu/Lark Docs、Sheet、Bitable <-> Markdown | AI Agent-friendly knowledge base exporter and writer with OAuth 2.0, CLI, TUI & Claude Skills support - 飞书文档 <写入/导出> Markdown | AI…
Install: uvx feishu-docx export "https://my.feishu.cn/wiki/xxx"
Install
uvx feishu-docx export "https://my.feishu.cn/wiki/xxx"Install command taken from the project's README or registry entry. Always review code before running it.
README excerpt
Read full README on GitHub →feishu-docx
Feishu knowledge base export, writing, and cloud-space management tool with Markdown, WeChat import, CLI, TUI, and OAuth 2.0
中文 | English
🆕 Recent Updates (v0.2.8)
- PDF table line breaks and inline code combined with bold, italic, or strikethrough now render correctly, while other raw HTML remains escaped (#37)
- Card-view links retain their titles and destinations; encoded URLs are preserved correctly
- Refreshed project icon and added public-document Markdown/PDF end-to-end regression coverage
Upgrade with pip install --upgrade "feishu-docx[pdf]" for PDF export, or uv tool upgrade feishu-docx for an existing uv tool installation.
🎯 Why feishu-docx?
Let AI Agents read, write, and manage your Feishu/Lark knowledge base.
- 🤖 Built for AI — Works seamlessly with Claude/GPT Skills for document retrieval
- 📄 Full Coverage — Documents, Spreadsheets, Bitables, Wiki nodes, and WeChat articles
- ✍️ Write Back Support — Create docs, append content, and update specific blocks
- ☁️ Cloud-Space Management — List files, delete files, manage permissions, clear files safely
- 🔐 Authentication — One-time auth, automatic token refresh
- 🎨 Dual Interface — CLI + Beautiful TUI (Textual-based)
- 📦 Easy Install —
uv tool install feishu-docxorpip install feishu-docx
⚡ Quick Start (30 seconds)
Install
Recommended: uv tool install (isolated, no conflicts with system Python)
uv tool install feishu-docx
Optional features are installed separately to keep the core package lightweight:
# PDF export: --pdf, --pdf-template, --pdf-logo, syntax highlighting
uv tool install 'feishu-docx[pdf]'
# Browser-based export: export-browser
uv tool install 'feishu-docx[browser]'
playwright install chromium
Or run directly without installing:
uvx feishu-docx export "https://my.feishu.cn/wiki/xxx"
If you don't have uv yet: curl -LsSf https://astral.sh/uv/install.sh | sh
Alternative: pip install (works inside a virtual environment or with --break-system-packages)
pip install feishu-docx
Optional extras also work with pip:
pip install 'feishu-docx[pdf]'
pip install 'feishu-docx[browser]'
playwright install chromium
Quote extras such as
'feishu-docx[pdf]'in shells like zsh, otherwise the[]may be treated as a glob pattern.
⚠️
pip installoutside a virtual environment may fail withexternally-managed-environmenton modern Linux/macOS (PEP 668). Use a virtual environment oruv tool installinstead.
Configure and Export
# Configure credentials (one-time)
feishu-docx config set --app-id YOUR_APP_ID --app-secret YOUR_APP_SECRET
# Export! (auto-obtains tenant_access_token, no OAuth needed)
feishu-docx export "https://my.feishu.cn/wiki/KUIJwaBuGiwaSIkkKJ6cfVY8nSg"
# Create a Feishu doc directly from a WeChat article
feishu-docx create --url "https://mp.weixin.qq.com/s/xxxxx"
# Manage app cloud-space documents
feishu-docx drive ls --type docx
# Optional: Use OAuth mode for user-level permissions
# feishu-docx config set --auth-mode oauth && feishu-docx auth
🤖 Skills Support
Enable Agent to access your Feishu knowledge base directly!
This project includes a Claude Skill at .skills/feishu-docx/SKILL.md.
Supports OpenCode, Claude Code, Codex, Cursor, and more.
Similar plugs
Persistent Context Across Sessions for Every Agent, Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future…
Graphs that teach > graphs that impress. Turn any code into an interactive knowledge graph you can explore, search, and ask questions about. Works with Claude Code, Codex…
From vibe coding to agentic engineering - practice makes claude perfect
Agent skill that removes signs of AI-generated writing from text
Marketing skills for Claude Code and AI agents. CRO, copywriting, SEO, analytics, and growth engineering.