
anki-llm
CLI用大模型批量生成、改写 Anki 记忆卡片并用语音合成配音,终端界面可逐张挑选再导入,也有 JSON 查询命令供 agent 读写卡组。需要 Anki 桌面版与 AnkiConnect 插件,以及 OpenAI、DeepSeek 等 API Key 或本地 Ollama。
Bulk-process, generate, and improve Anki flashcards with LLMs and text-to-speech. anki-llm combines reviewable file workflows, direct deck updates, and an interactive generation TUI in one scriptable CLI.
Docs: anki-llm.raine.dev
Also from the author of anki-llm: aven, one queue for every project, with a keyboard-driven TUI for you and a CLI for your agents.
What people say
- "What's next get AI to answer your flashcards for you?" - grei_earl on Reddit
- "I love this. The README is extremely detailed and clear, and using AnkiConnect to edit decks in-place avoids the usual apkg headaches." - rahimnathwani on Hacker News
- "This is cool!" - Hsaeedx on Reddit
Why anki-llm?
-
Process files or decks. Export notes to reviewable CSV or YAML, process them with automatic resume, and import the result, or update a deck directly with previews, snapshots, and rollback support.
-
Generate cards interactively. Create several cards for a term, compare them in a terminal UI, edit or regenerate candidates, catch duplicates, and import only the cards you choose.
-
Keep workflows in plain files. Store prompts, note types, and per-project settings in a workspace that can be reviewed, versioned, and shared.
-
Add text-to-speech. Fill audio fields in bulk or synthesize audio while generating cards, with voice browsing, caching, and multiple TTS providers.
-
Edit note types with normal tools. Pull card template HTML and CSS into a workspace, edit them in your preferred editor or coding agent, and safely push them back to Anki.
-
Bring your preferred model. Use OpenAI, Gemini, DeepSeek, xAI, OpenRouter, Ollama, or any OpenAI-compatible chat completions endpoint.
-
Give agents structured Anki access.
anki-llm queryexposes AnkiConnect through a JSON-oriented CLI for collection inspection and agent-driven workflows.
Quick start
Install with the release script:
curl -fsSL https://raw.githubusercontent.com/raine/anki-llm/main/scripts/install.sh | bash
Or install with Homebrew:
brew install raine/anki-llm/anki-llm
Or install from crates.io:
cargo install anki-llm
Install the
AnkiConnect add-on and keep Anki
Desktop running for commands that read or change your collection. File-only LLM
processing with process-file can run while Anki is closed.
Set an API key for your provider. For example, with OpenAI:
export OPENAI_API_KEY="your-api-key"
Check the resolved model, workspace, credentials, and Anki connection without changing your collection:
anki-llm doctor
Continue with the getting started guide to create a workspace and run your first processing or generation workflow.
Documentation
- What is anki-llm?
- Getting started
- Core concepts
- Process a file
- Process a deck
- Write prompts
- Use workspaces
- Generate cards
- Configure processing steps
- Text-to-speech
- Manage note types
- Work with agents
- Command reference
- Prompt reference
- Models and providers
- TTS providers
- Configuration
- AnkiConnect reference
- Troubleshooting
- FAQ
- Changelog
- LLM-readable docs
Recipes:
Development
Install the local quality tools and run the full read-only check suite:
just install-quality-tools
just check
just check writes full command output to target/check-logs. Use
just format or just clippy-fix when source files should be modified.
License
anki-llm is available under the MIT License.
相關資源

notebooklm-py
CLI非官方 Python 库与 CLI,让 agent 操控 Google NotebookLM(现更名 Gemini Notebook):批量导入资料、基于来源带引用问答,生成播客、视频、幻灯片、测验与闪卡并批量下载,自带 agent skill。依赖未公开接口,需登录 Google 账号。
teng-lin/notebooklm-py20.2k
VideoCaptioner
CLI卡卡字幕助手的命令行版:把课程、讲座、访谈视频转成字幕,再用大模型断句校对、翻译并烧录回视频。必剪识别与必应翻译免费可用,大模型优化需自备 API Key,需 Python 3.10–3.12。
WEIFENG2333/VideoCaptioner16.5k
F5-TTS
CLI开源零样本语音合成,提供 f5-tts_infer-cli 命令行,给几秒参考录音就能用相同音色朗读中英文,适合给课件、视频配音。需要 Python、PyTorch 和 FFmpeg,最好有 GPU;预训练模型仅限非商业使用,克隆他人声音须经本人同意。
SWivid/F5-TTS15.6k
Podcastfy
CLI开源的 NotebookLM 播客功能替代品,把网页、PDF、图片、YouTube 视频或文字转成两人对话式播客音频,适合老师把讲义、作者把文章做成音频节目。默认需要 Gemini 与 OpenAI API Key,也可用本地模型加免费的 Edge 语音。
souzatharsis/podcastfy6.8k
Gemini Notebook (NotebookLM) CLI & MCP Server
CLI非官方的 NotebookLM(现名 Gemini Notebook)命令行 nlm 与 MCP 服务器:老师和学生可让 AI 批量建笔记本、导入网页和文档,生成音频概述、测验、闪卡、思维导图和幻灯片,用于备课与复习。依赖未公开接口,需登录 Google 账号,可能随官方改版失效。
jacob-bd/gemini-notebook-mcp-cli6.5k
Piper
CLI本地运行的神经网络语音合成引擎,离线把文字转成语音,支持中文在内的数十种语言音色,适合老师制作听力材料、给文章或课件配旁白。需要 Python,首次使用要先下载对应音色模型;项目目前在招募维护者。
OHF-Voice/piper1-gpl6.3k