Anki add-on: AI Grader

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 Open "Environment Variables" from System Settings. (You can access it by searching "environment" in your start menu (windows button). Add a new user variable: Variable name: OPENAI_API_KEY or GEMINI_API_KEY Variable value: your_api_key_here 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!!

GitHub repository: yuwayanagitani/anki-ai-grader
Repository description: An add-on that scores typed-answer cards (e.g., “Type in the Answer”) using AI or a local fallback, then shows the result as a badge and/or tooltip.
Languages: Python
Topics: anki-addon