AI-powered Anki card generator for vocabulary, phrases, sentences, and STEM concepts, powered by litellm
pip install ankinote-ai==0.6.3 Copy PIP instructions
AI-powered Anki card generator — vocabulary, phrases, sentences, and STEM concepts
AnkiNote is an automated Anki flashcard generator that uses litellm to support a wide range of AI providers — Gemini, GPT, Claude, DeepSeek, and more — for generating definitions, examples, mnemonics, and images, then syncs directly with Anki through AnkiConnect.
# Install from PyPI uv pip install ankinote-ai # Or install the CLI/GUI as an isolated uv tool uv tool install ankinote-ai AnkiNote has two front ends that share the same card-generation engine:
# From a uv-managed checkout uv run ankinote-gui # Or, if installed as a tool / into a venv ankinote-gui This opens http://localhost:8080 in a browser (set ANKINOTE_SHOW=false to skip auto-open, e.g. on a headless server). The UI has six pages, reachable from the left drawer: Word, Phrases, Sentences, STEM, Card Types (note type + deck setup), and Settings.
Switch with ANKI_BACKEND=connect / collection (see the env var table below); both work identically from the Web UI and CLI.
Generating a card for chameleon from the Word page:
Nothing needs to be in a .env file for web UI use; every credential lives in the browser-saved settings file and is applied to the process at save time.
A few things are process-level, not per-user settings, so they're still env vars:
The in-process (collection) backend additionally requires the ankinote-ai[headless] extra. It synchronizes with AnkiWeb at startup, after each note save or note-type setup batch, and every five minutes. A fresh collection blocks writes until its initial sync completes; an initialized collection remains writable offline. A required full sync blocks writes until you resolve the upload/download choice, in the Settings page or via ankinote anki sync.
Data is stored in the directory containing the collection file (e.g., ~/.local/share/ankinote/). Beside the collection file, .sync.json stores credential-free status, .credentials.json stores saved login credentials with mode 0600, .account retains an account binding after logout, and .backups/ holds recoverable collection backups made before full sync. Logout removes the saved credential and pauses synchronization without deleting the collection or media. Use a different data directory to switch accounts. Open a collection from only one process at a time.
Published images (multi-arch amd64 + arm64): ghcr.io/ignity21/ankinote-ai and ignity21/ankinote-ai (Docker Hub), tags latest, . , and the exact version.
cd deploy/standard # GUI + an AnkiConnect you already run # or: cd deploy/headless # standalone service — no Anki app, syncs itself to AnkiWeb cp .env.example .env # set ANKINOTE_STORAGE_SECRET (+ AnkiWeb login for headless) docker compose up -d # http://localhost:8080 AI provider keys are added in the web UI (Settings page), not .env. See deploy/README.md for the difference between the stacks, the AnkiConnect host setup, and building locally. The published image bundles the anki library, so both backends work without a custom build.
For scripting and batch runs, ankinote provides word / phrase / sentence / stem subcommands. It reads provider profiles and the Anki backend from the same settings.json the Web UI writes — run bare ankinote for an interactive menu to manage them, or pass --profile/--image-profile to pick one by name (ankinote profiles list --json shows what's configured); .env / environment variables still work as a fallback. See the CLI usage guide for setup and the full command reference — most users should start with the Web UI above instead.
# Clone the repository git clone https://github.com/ignity21/ankinote-ai.git cd ankinote-ai # Install the project and development dependencies uv sync # Run tests make test # Format code make format # Type checking make check Documentation CLI Usage Guide Note Types Skill — for using AnkiNote with AI coding assistants 📄 License MIT License - see LICENSE file for details
All 2 files in this release have provenance metadata.
ai anki flashcards google-ai language-learning vocabulary
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Nov 1, 2026.
All 2 files in this release have been uploaded with provenance metadata.
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.




