Card Assistant — LLM Chat Panel (OpenRouter, Ollama & Gemini)

AnkiWeb addon 940044876

Provides a dockable side-panel chat assistant for asking LLM questions about the current flashcard while reviewing, supporting OpenRouter, local Ollama, and Google Gemini with streaming, context-aware responses.
AI-generated summary; may contain mistakes.

ai

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
2 (👍 2 · 👎 0)
Updated
2026-02-27
Anki versions
2.1.66~
License
MIT (from the license file in the package)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
JavaScript, Python, JSON
Description language
en

Maintenance

stale

  • Last update or commit: 2026-02-27 (247 days before the snapshot).
  • Commits in the last year: 4.
  • Issues: 0 open, 0 closed.
  • Pull requests: 0 open, 0 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.502.1.66+2026-02-27
History across monthly snapshots

Loading…

Similar addons

Anki AI Grader

Lets you answer flashcards by typing, speaking, or handwriting, then has a chosen LLM grade the answer as correct, partly, or totally wrong and explain mistakes.

aischedulingreview-flowquiz

1 votes 21% approval 👍 1 · 👎 0 ⭐ 0 Anki 2.1.1~ Updated 2026-10-11
AnkiExplain

Adds an Explain button and dockable sidebar that uses Gemini AI to generate flashcard explanations, mnemonics, related concepts, and follow-up chat, with streaming responses and customizable prompts.

aireview-flowshortcutsaccessibility

6 votes 61% approval 👍 6 · 👎 0 Anki 2.1.1~ Updated 2026-02-12
Ankify

Turns clipboard text into Anki flashcards using a chosen AI provider directly in the Add window, with review, regeneration, note-type mapping, and specialization options.

card-creationaishortcutscloze

1 votes 21% approval 👍 1 · 👎 0 ⭐ 0 Anki 2.1.1~ Updated 2026-10-27

Description

A dockable side-panel chat assistant that lets you ask an LLM questions about your flashcards while reviewing.

!! Requires either an OpenRouter account with credits, a local Ollama installation, or a free Google Gemini API key — I suggest asking your preferred AI chatbot how to set this up !!

Features

  • Streams responses in real-time in a side panel during review
  • Works with any note type — card fields are extracted automatically
  • Supports OpenRouter (hundreds of models), local Ollama, and Google Gemini (free-tier models available)
  • Each provider remembers its own selected model independently
  • Markdown rendering (code blocks, lists, headings, etc.)
  • Customisable system prompt, temperature, max tokens, font size, and panel width
  • Context-aware — sends the current card's content to the LLM automatically
  • Collapsible panel to stay out of your way

Setup

  1. Install the add-on and restart Anki
  2. Click the ⚙ gear icon in the panel (or Tools → Add-ons → Config)
  3. Choose OpenRouter, Ollama, or Gemini as your provider
  4. For OpenRouter: paste your API key from https://openrouter.ai
  5. For Ollama: make sure Ollama is running locally
  6. For Gemini: paste your API key from https://aistudio.google.com/apikey
  7. Click "Refresh" to load models, then "Test Connection" to verify

Usage
Start reviewing cards — the panel appears on the right. Type a question and press Enter. The chat resets automatically when you move to the next card.

Source Code
https://github.com/miniminkus/anki-llm-chat

README

Card Assistant — LLM Chat for Anki

Add-on Code: 940044876 — ankiweb.net/shared/info/940044876

A side-panel chat assistant that lets you ask questions about your flashcards while reviewing. Connects to OpenRouter (hundreds of models), a local Ollama instance, or Google Gemini (free-tier models available).

Features

  • Streams responses in a dockable side panel during review
  • Works with any note type — fields are extracted automatically
  • Supports OpenRouter, Ollama, and Gemini as providers, each remembering its own model
  • Markdown rendering (code blocks, lists, headings, etc.)
  • Customisable system prompt, temperature, max tokens, font size, and panel width
  • Context-aware: sends the current card's fields to the LLM automatically
  • Collapse/expand the panel to stay out of your way

Installation

  1. Download or clone this repository
  2. Copy the folder into your Anki add-ons directory:
    • macOS: ~/Library/Application Support/Anki2/addons21/
    • Windows: %APPDATA%\Anki2\addons21\
    • Linux: ~/.local/share/Anki2/addons21/
  3. Rename the folder to card_assistant (must match the package name)
  4. Restart Anki

Configuration

Open Tools > Add-ons > Card Assistant > Config or click the gear icon in the panel.

OpenRouter

  1. Get an API key from openrouter.ai
  2. Select "OpenRouter" as provider
  3. Paste your API key
  4. Click "Refresh" to load available models, or type a model ID directly
  5. Click "Test Connection" to verify everything works

Ollama

  1. Install Ollama and pull a model (e.g. ollama pull llama3)
  2. Select "Ollama" as provider
  3. Set the URL (default: http://localhost:11434)
  4. Click "Refresh" to see your local models
  5. Click "Test Connection" to verify

Gemini

  1. Get a free API key from aistudio.google.com/apikey
  2. Select "Gemini" as provider
  3. Paste your API key
  4. Click "Refresh" to load available models, or type a model ID directly
  5. Click "Test Connection" to verify

Usage

  1. Start reviewing cards — the panel appears automatically on the right
  2. Type a question about the current card and press Enter
  3. The assistant streams its response with the card's content as context
  4. Click the stop button to cancel a response mid-stream
  5. The chat resets when you move to the next card

Requirements

  • Anki 2.1.50+
  • Internet connection (for OpenRouter/Gemini) or a running Ollama server

License

MIT