Observed since 20 Oct, 19:15 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
CLI tool to add language learning cards to Anki
A CLI tool to add language learning cards to Anki, with automatic translation and audio generation.
Currently supports English to Mandarin Chinese translation with audio generation using two providers:
For related language learning resources, visit Oliver Steele's Language Learning Resources.
conversational (default): Natural, everyday languageformal: More polite expressions appropriate for business or formal situationswritten: Literary style suitable for written textsYou can install add2anki using either uv, or pipx, or pip:
Install uv if you don't have it already.
Install add2anki:
uv tool install add2anki
Install pipx if you don't have it already.
Install add2anki
pipx install add2anki
This method doesn't require a third-party tool, but it is not recommended as it will install add2anki in the current Python environment, which may cause conflicts with other packages.
pip install add2anki
Set the following environment variables:
# Required for translation
export OPENAI_API_KEY=your_openai_api_key
# Required only if using ElevenLabs
export ELEVENLABS_API_KEY=your_elevenlabs_api_key
# Basic usage (uses Google Translate TTS by default)
add2anki "Hello, how are you?"
# Start interactive mode
add2anki
add2anki will automatically detect suitable note types in your Anki collection. A suitable note type must have fields that match:
If multiple suitable note types are found, you'll be prompted to select one.
Similarly, if no deck is specified via the --deck option and no previously selected deck is found in the configuration, add2anki will display a list of available decks and prompt you to select one.
Your selections for both note type and deck will be saved for future use.
add2anki saves your preferences (deck name, note type, field mappings) in a configuration file:
%APPDATA%\add2anki\config.json~/.config/add2anki/config.jsonThis project relies on several excellent libraries:
Services:
MIT
Oliver Steele (@osteele)
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.0 | 9 Aug 2026 | 8 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 19:15 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:ca69579e98f1bf28cd2486b9eb291129962dd97cd9f5aa734355a3d64d7bf523