Ask AI to explain the word in a sentence and save the definition to Anki.


- LLM API Key
- Download latest release
- OR run command
go install github.com/liufei/ai-dictionary/cmd/ai-dictionary
- Open terminal, and then set environment variables
# Claude, Deepseek, Gemini, Ollama, OpenAI, etc. export OPENAI_BASE_URL=https://***; export OPENAI_API_KEY=sk-***; export OPENAI_MODEL=***
- Run command
ai-dictionary
- Anki Desktop
- AnkiConnect
- Open Anki, create deck
AI Dictionary
.

- Click
Tools
->Manage Note Types
from Anki menu, add note typeAI Dictionary
.

- Add card template.
