AnkiForge v0.1.1 - AI-Powered Flashcard Generation

AnkiWeb addon 1482895298

Generates AI flashcards from words, questions, or notes via OpenRouter, with five modes, media, code highlighting, batch support, and cost estimates.
AI-generated summary; may contain mistakes.

card-creationaiformattingappearancecard-templatesservice-client

Open on AnkiWeb GitHub Ask about alternatives

AnkiWeb

Rating
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-03-22
Anki versions
25.09.2~
Description language
en

Maintenance

stale

  • Last update or commit was 193 days before the snapshot (2026-03-22).
  • The repository has 17 test files.

GitHub

Repository
xpom1/ankiforge Β· more by xpom1
Stars
⭐ 2 · forks 1 · open issues 0
Last commit
2026-03-22
License
GPL-3.0
Languages
Python
Tests
17

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
23.0925.09.2+2026-03-22
History across monthly snapshots

Loading…

Similar addons

Ankify

Turns clipboard study material into Anki flashcards inside the Add window using your chosen AI provider, with queue review, custom note-type mapping, and card-quality prompts.

card-creationaishortcutscard-templatescloze

Rating 1 πŸ‘ 1 Β· πŸ‘Ž 0 ⭐ 0 Anki 2.1.1~ Updated 2026-09-07
vocbuilderAI

Generates vocabulary and math flashcards via multiple LLM providers, with text-to-speech, Japanese support, and customizable decks.

card-creationai

Rating 3 πŸ‘ 1 Β· πŸ‘Ž 2 ⭐ 4 Anki 23.10.1~ Updated 2025-07-08

README

AnkiForge

AI-powered flashcard generation for Anki β€” create high-quality cards in seconds using any LLM via OpenRouter.

<!-- Replace with actual screenshot after taking them --> AnkiForge β€” Mode Selection


What is AnkiForge?

AnkiForge is a free, open-source Anki add-on that generates flashcards using AI. Instead of spending hours writing cards by hand, just type a few words or paste your study notes β€” AnkiForge creates complete, ready-to-study cards with definitions, examples, audio, and images.

It works with any model available on OpenRouter (GPT-4o, Claude, Gemini, Llama, and 200+ others), so you choose the price/quality balance that works for you.

Features

5 Generation Modes

Mode What you give it What you get back
Language Cards A list of words Definition, example sentence, IPA transcription, audio pronunciation, and a photo for each word
Questions β†’ Answers Your questions Detailed AI-generated answers as Q&A flashcards
From Material Any study text (notes, articles, textbook pages) 10–30 atomic Q&A cards extracted from key facts
QA + Image Your questions Answers with AI-generated illustrations
QA + Audio Your questions Answers with text-to-speech narration

Why AnkiForge?

  • Any LLM model β€” pick from 200+ models on OpenRouter, from free to state-of-the-art
  • Cost estimation β€” see the price before generating, track actual spending in real time
  • Custom prompts β€” tweak AI instructions for any mode to fit your study style
  • Code highlighting β€” cards render code blocks with syntax highlighting via highlight.js
  • Batch generation β€” enter multiple words or questions at once
  • Progress tracking β€” real-time progress bar with cancel support
  • Beautiful card templates β€” styled HTML/CSS cards that look great in both light and dark mode

Screenshots

Mode Selection

Mode Selection

Language Cards β€” Input

Language Input

Language Card β€” Front & Back

Front Back
Front Back

From Material β€” Input

Material Input

Questions β†’ Answers β€” Result

QA Card Result

Settings

Settings

Installation

From AnkiWeb (recommended)

  1. Open Anki
  2. Go to Tools β†’ Add-ons β†’ Get Add-ons...
  3. Paste the add-on code: 1482895298
  4. Restart Anki

Manual install

  1. Download the latest .ankiaddon file from Releases
  2. In Anki, go to Tools β†’ Add-ons
  3. Click Install from file... and select the downloaded file
  4. Restart Anki

Setup

1. Get an OpenRouter API Key

  1. Create an account at openrouter.ai
  2. Go to Keys and generate a new API key
  3. Add credits (starting from $5 is enough for thousands of cards)

2. Configure AnkiForge

  1. In Anki: Tools β†’ AnkiForge Settings
  2. Paste your API key
  3. Pick models for text, image, and audio generation
  4. Click OK

3. Generate your first cards

  1. Click the AnkiForge button in the toolbar (or Tools β†’ AnkiForge)
  2. Choose a generation mode
  3. Type words, questions, or paste study material
  4. Pick a target deck (or type a new name to create one)
  5. Click Generate

Pricing

AnkiForge is free. You only pay for AI usage through OpenRouter.

Mode Cost per card*
Questions β†’ Answers ~$0.001
Language (text only) ~$0.002
Language (text + audio + image) ~$0.01
From Material ~$0.001 per card
QA + Image ~$0.01
QA + Audio ~$0.003

* Estimates for GPT-4o-mini. Actual cost depends on the model you choose. AnkiForge shows the estimated cost before generation.

Requirements

  • Anki 23.10+ (Qt6)
  • OpenRouter account with API key
  • Internet connection

Development

git clone https://github.com/Xpom1/AnkiForge.git
cd AnkiForge

uv sync                          # install dependencies
uv run pytest                    # run tests with coverage
uv run ruff check src/ tests/    # lint
uv run ruff format src/ tests/   # format
uv run mypy src/                 # type check

Project Structure

src/ankiforge/
β”œβ”€β”€ __init__.py               # Entry point β€” registers add-on in Anki
β”œβ”€β”€ models.py                 # Dataclasses: CardRequest, GeneratedCard, AddonConfig
β”œβ”€β”€ config/
β”‚   β”œβ”€β”€ manager.py            # Read/write config via Anki API + JSON fallback
β”‚   └── dialog.py             # Settings dialog (API key, model pickers, balance)
β”œβ”€β”€ openrouter/
β”‚   β”œβ”€β”€ client.py             # HTTP client with retry/backoff
β”‚   β”œβ”€β”€ models.py             # Model, Modality types
β”‚   └── exceptions.py         # Typed exception hierarchy
β”œβ”€β”€ generators/
β”‚   β”œβ”€β”€ language.py           # Word β†’ definition + example + audio + image
β”‚   β”œβ”€β”€ questions.py          # Question β†’ detailed answer
β”‚   β”œβ”€β”€ material.py           # Text β†’ atomic QA cards (2-phase map-reduce)
β”‚   β”œβ”€β”€ image.py              # Question β†’ answer + AI illustration
β”‚   └── audio.py              # Question β†’ answer + TTS audio
β”œβ”€β”€ anki_bridge/
β”‚   β”œβ”€β”€ deck_manager.py       # Deck CRUD
β”‚   β”œβ”€β”€ media_manager.py      # Save audio/images to Anki media folder
β”‚   └── note_types.py         # 4 note types with HTML/CSS templates
└── ui/
    β”œβ”€β”€ main_button.py        # Toolbar & deck browser button
    β”œβ”€β”€ generate_dialog.py    # Mode selection, input dialog, generation logic
    β”œβ”€β”€ progress_widget.py    # Progress bar with cancel
    └── styles.py             # Shared QSS styles

Support the Project

AnkiForge is free and open source. If you find it useful, consider supporting development:

EVM: 0x34f58CF2BE6073f12b2c3c6aE9f8c31983A3f5fE <br>Networks: Ethereum, Base, Arbitrum, Avalanche

License

GPL-3.0 β€” see LICENSE