AI Grader

AnkiWeb addon 1150481237

Scores typed flashcard answers with a 0–100% AI similarity grade, optional partial credit, automatic Again/Hard/Good/Easy selection, and OpenAI or Gemini support.
AI-generated summary; may contain mistakes.

aischedulingreview-flowquiz

Open on AnkiWeb GitHub Find alternatives

AnkiWeb

Votes
2 (👍 2 · 👎 0)
Updated
2025-12-16
Anki versions
23.10~
License
MIT (from the GitHub repository)
Virus scan
No ClamAV match A match does not prove malware. No match does not prove that the code is safe.
Languages
Python, JSON
Description language
en

Maintenance

stale

  • Last update or commit: 2025-12-24 (312 days before the snapshot).
  • GitHub Actions workflows: 1.
  • Commits in the last year: 19.
  • Issues: 0 open, 1 closed.
  • Pull requests: 0 open, 1 merged.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
23.10+2025-12-16
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
AttendingAI

Grades written Anki answers using an LLM, retrieves supporting material via semantic RAG, offers tutor explanations, analytics, batch assessment, and optional interval suggestions.

aischedulingreview-flowstatisticsquiz

1 votes 21% approval 👍 1 · 👎 0 ⭐ 1 Anki 25.02.6~ Updated 2026-01-10
auto rate typed answer has 1 fork →

Automatically rates typed answers as hard, good, or easy based on configurable response-time thresholds, with options for handling mismatches, multiple answer fields, and confirming ratings.

schedulingreview-flowquiz

16 votes 81% approval 👍 16 · 👎 0 Anki 2.1.50~ Updated 2021-12-06

Description




Typed answers deserve more than “right or wrong.”

Get fair, percentage-based grading (0–100%) for typed answers — including partial credit.
Make your reviews more honest, more motivating, and more useful.

Key features

• Scores typed answers with a 0–100% similarity score
• Optional auto-selection of Again/Hard/Good/Easy by thresholds
• Supports OpenAI, Gemini, and local fallback grading

How to use

Type your answer, flip the card, and see the score; optionally let Enter/Space choose the recommended button.
Attention: This addon works only with cards with {{type:}} on your templates. You can add it through "Card" button on your anki card brower.
If your answer field is "Back", then {{type:Back}} is the appropriate form.

Source code

GitHub: https://github.com/yuwayanagitani/anki-ai-grader


==================================================

Manual

1. You can access to the config via "Tool" → "Add-ons" → "AI Grader"

2. Here, You can choose your preferable provider from OpenAI or Gemini.



3. Here, You can set your API key for each provider, and select your preferable model. (You can get API key from the provider's website)

 

You don't have to input your API key if you already set it on your computer as an environmental variable


4. Here, you can control the scoring behavior of this add-on.



The "Answer field name" should be the exact name of the answer field of your card type. (Default is "Back".)


==================================================

API Key Required

This add-on uses external AI services and requires your own API key.
Supported providers include OpenAI and Google Gemini.
No API key is included or provided by this add-on.

How to Set the API Key (Environment Variable)

The API key must be stored as an environment variable so that Anki can access it securely.

macOS
Run the following command in Terminal:
launchctl setenv OPENAI_API_KEY your_api_key_here
or for Gemini:
launchctl setenv GEMINI_API_KEY your_api_key_here
Restart Anki after setting the variable.

Note: On macOS, environment variables set with launchctl may be cleared after an OS reboot.
To avoid re-setting them every time, define the variables persistently using a LaunchAgent or your shell profile.

Windows

  1. Open "Environment Variables" from System Settings. (You can access it by searching "environment" in your start menu (windows button).
  2. Add a new user variable:
      Variable name: OPENAI_API_KEY or GEMINI_API_KEY
      Variable value: your_api_key_here
  3. Restart Anki after saving.

Once the environment variable is set, the add-on will automatically detect it on startup.


==================================================

Updates

  • v0.2.0 - Short feedback on your answer is available. More accurate scoring based on your question.

==================================================

Supports

This tool is built to support medical students and residents.
Support via thumbing up 👍 on this page and Buy Me a Coffee ☕ motivates me a lot!!


README

🧠 AI Grader for Anki (AI Grade Assigner)

AI Grader (a.k.a AI Grade Assigner) is an Anki add-on that uses AI to automatically evaluate your flashcard answers and assign a grade, helping you optimize review timing and identify spots for improvement.


🔗 AnkiWeb Page

This add-on is officially published on AnkiWeb:

👉 https://ankiweb.net/shared/info/1150481237

Installing from AnkiWeb is recommended for the easiest setup and automatic updates.


🎯 Overview

AI Grader enhances your review workflow by:

  • 📝 Using AI to grade card responses based on your typed answer
  • 📊 Providing consistent, context-aware grading beyond manual selection
  • 🔄 Supporting batch grading for cards selected in the Browser
  • ⚙️ Allowing configuration of grading criteria and output fields

Instead of relying solely on manual buttons (Again/Hard/Good/Easy), this add-on can suggest grades using language models, ideal for self-study, language labs, or complex open-ended answer cards.


🚀 How It Works

  1. During review or in the Browser, trigger AI Grader.
  2. The add-on sends your card question + your answer to the AI provider.
  3. The model returns a suggested grade (e.g., “Good”, “Hard”).
  4. The grade can be written to your Anki fields or used to inform your manual selection.

This can help you:

  • Get instant feedback when you’re unsure about your recall strength.
  • Review more consistently across study sessions.
  • Spot patterns in mistakes and adjust your focus.

📦 Installation

⬇️ From AnkiWeb (Recommended)

  1. Open Anki
  2. Go to Tools → Add-Ons → Browse & Install
  3. Search for AI Grade Assigner
  4. Install and restart Anki

📁 Manual Installation (GitHub)

  1. Clone or download this repository
  2. Place it into: Anki2/addons21/anki-ai-grader
  3. Restart Anki

🔑 API Key Setup

AI Grader needs an API key for the selected AI provider.

Provider Environment Variable
OpenAI OPENAI_API_KEY
Gemini GEMINI_API_KEY

API keys can be set via:

  • System environment variables, or
  • The add-on Settings / Config dialog

⚙️ Configuration

Open:

Tools → Add-Ons → AI Grader → Config

Key options include:

  • Provider selection (OpenAI / Gemini)
  • Model name
  • Which fields to read for question/answer
  • Output destination (graded field, tag appending, note update)
  • Grading style and thresholds

🧪 Usage

Review Mode

While reviewing:

  1. Answer the card as usual
  2. Trigger AI Grader from the Reviewer menu
  3. View the suggested grade
  4. Accept or manually override

Batch Grading

In the Browser:

  1. Select multiple cards
  2. Run AI Grader: Grade selected cards
  3. Suggested grades will be written to configured fields or tags

This is useful when you want to retrospectively evaluate a deck or track performance over time.


⚠️ Notes on Privacy

Card contents (questions and your answers) are sent to external AI services for grading.
Avoid sending sensitive or personal information unless you understand the provider’s privacy policy.


🛠 Troubleshooting

Issue Solution
“No current card” Run during review or select cards in Browser
Grades not applied Check field mapping in Config
API errors Verify API key and internet connection
Slow response Choose a lighter AI model

📜 License

MIT License


🔧 Related Add-Ons

These add-ons form an AI-powered ecosystem for Anki:

  • AI Card Explainer — Generates natural explanations
  • AI Card Translator — Translates cards on the fly
  • AI Card Splitter — Breaks complex cards into pieces
  • HTML Exporter for Anki — Export cards to HTML / PDF

Together they enhance your study flow with AI-assisted quality, understanding, and review automation.