https://github.com/liufei/ai-dictionary
Ask AI to explain the word in a sentence and save the definition to Anki.
https://github.com/liufei/ai-dictionary
ai anki ankiconnect dictionary ollama openai
Last synced: about 2 months ago
JSON representation
Ask AI to explain the word in a sentence and save the definition to Anki.
- Host: GitHub
- URL: https://github.com/liufei/ai-dictionary
- Owner: liufei
- License: mit
- Created: 2025-03-26T03:33:35.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-05-24T13:12:29.000Z (about 1 year ago)
- Last Synced: 2025-09-06T18:08:22.344Z (9 months ago)
- Topics: ai, anki, ankiconnect, dictionary, ollama, openai
- Language: TypeScript
- Homepage:
- Size: 3.56 MB
- Stars: 6
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# AI Dictionary
> Ask AI to explain the word in a sentence and save the definition to Anki.

## Ask AI to explain the word in a sentence
### Requirements
- LLM API Key
### Installation
- Download [latest release](https://github.com/liufei/ai-dictionary/releases)
- **OR** run command `go install github.com/liufei/ai-dictionary/cmd/ai-dictionary`
### Usage
1. Open terminal, and then set environment variables
```sh
# Claude, Deepseek, Gemini, Ollama, OpenAI, etc.
export OPENAI_BASE_URL=https://***; export OPENAI_API_KEY=sk-***; export OPENAI_MODEL=***
```
2. Run command `ai-dictionary`
## Save the definition to Anki
### Requirements
- Anki Desktop
- AnkiConnect
### Usage
1. Open Anki, create deck `AI Dictionary`.

2. Click `Tools` -> `Manage Note Types` from Anki menu, add note type `AI Dictionary`.

3. Add card template.