Skip to main content

AnkiNote

AnkiNote logo

Turn any word, sentence, or STEM problem into a ready-to-review Anki card in seconds.

PyPI version Python versions License Codecov

English | 简体中文 | 繁體中文 | 日本語 | Español | Français


AnkiNote demo: type a word, generate the card, flip to the back

Making great Anki cards shouldn't take longer than reviewing them. AnkiNote is an AI-powered Anki card studio that turns a single word, phrase, sentence, or STEM problem into a complete, styled flashcard — with explanations, examples, memory hooks, custom illustrations, and native-sounding audio — and saves it straight into your Anki.

No manual formatting. No copy-pasting between ChatGPT and Anki. Bring your own API key, run it anywhere, and review on your phone, tablet, or desktop.


✨ Why AnkiNote?

  • Works with Your Existing Anki — Sends cards straight into Anki Desktop via AnkiConnect with no duplicate collection, or runs built-in Anki with AnkiWeb sync on a home server/NAS for mobile card creation.
  • One-Key Setup Wizard — Paste a single Gemini API key to configure text, image, and speech in 5 steps, or mix and match your preferred providers.
  • 4 Card Modes: Word, Phrase, Sentence & STEM
    • Language Learning: Definitions, natural examples, memory hooks, AI illustrations, and TTS audio across English, French, Spanish, German, Japanese, Chinese (Simplified & Traditional, with ruby/pinyin), and Korean (beta) — learn any of them, explained in any other.
    • STEM & Problem Solving: Type a question or drop a photo of a problem to generate a structured, step-by-step card with MathJax formulas and optional diagrams.
  • Live Preview, Inline Editing & AI Rewrite — Flip front/back and Light/Dark before saving; edit any field inline, ask AI to rewrite a STEM explanation, or fix broken LaTeX in one click (with undo).
  • Curated Card Themes — Rosé Pine, Kanagawa, Tokyo Night, and Gruvbox in Light and Dark modes, responsive on desktop and mobile Anki.
  • CLI & AI Agent Ready — Use the ankinote CLI from your terminal or let agents like Claude Code and Codex turn what you're reading into cards.

📸 Card & UI Showcase

Language card: definition, illustration, examples
Language card: definition, illustration, examples
STEM card: formulas and a step-by-step solution
STEM card: formulas and a step-by-step solution

Four card palettes: Kanagawa, Tokyo Night, Gruvbox and Rosé Pine, in light and dark


🚀 Quick Start (1 Minute)

The only prerequisite is uv (it manages Python for you):

curl -LsSf https://astral.sh/uv/install.sh | sh

Run AnkiNote directly without installing (always starts the latest release):

uvx --from ankinote-ai@latest ankinote-web

Then open http://127.0.0.1:8000 in your browser. On first launch, the Setup Wizard walks you through:

  1. AI Provider — Paste a Gemini API key (covers text, image, and speech) or expand Advanced for OpenAI, Claude, DeepSeek, fal.ai, or custom endpoints.
  2. Anki Connection — Open Anki Desktop with the AnkiConnect add-on installed; the wizard finds it and sets up the note types. (On a server without Anki Desktop, choose Built-in Anki and sign in to AnkiWeb.)
  3. Languages — Pick your native and target languages.
  4. Appearance — Choose a color palette and light or dark mode; your Anki cards get the same palette.
  5. First Card — Generate and save your first card right inside the wizard.
Setup wizard, step 1: connect an AI model
Setup wizard, step 1: connect an AI model
Setup wizard, step 2: connect Anki
Setup wizard, step 2: connect Anki

To install globally as a command:

uv tool install ankinote-ai
ankinote-web

🐳 Self-Hosting with Docker

Run AnkiNote 24/7 on a home server or NAS so you can create cards from your phone's browser anytime, even with your computer off. On the computer where you use Anki you don't need Docker: the Quick Start above is all it takes. Multi-arch images (amd64 + arm64) are published to ghcr.io/ankinote-ai/ankinote and ignity21/ankinote-ai.

# Built-in Anki + AnkiWeb sync, no desktop app needed
cd deploy/headless
cp .env.example .env      # optional: set ANKIWEB_USERNAME / ANKIWEB_PASSWORD, port, etc.
docker compose up -d      # open http://localhost:8080

To have the container use an Anki Desktop with AnkiConnect instead, use deploy/standard. See deploy/README.md for full deployment options, reverse-proxy tips, and migration guides.


⌨️ From the Terminal or an AI Agent

The ankinote command makes cards without opening a browser, using the same settings as the web app. That makes it a tool any AI agent that can run commands (Claude Code, Codex, …) can use for you.

From a photo of what you're reading. Photograph a page where you underlined new words and tell your agent: "Make Anki cards for the underlined words." It reads the picture, picks out the words, and runs:

ankinote word batch serendipity ephemeral eloquent

From a list you already have. One word per line:

ankinote word batch --file words.txt --rpm 30

Cards from the CLI go straight to Anki without a preview. To check each card before it's saved, paste the same list into the web app's Generate page instead.

Run ankinote on its own for a menu in the terminal. The CLI Usage Guide covers phrases, sentences, STEM, and every option. To teach your agent these commands, run ankinote skill install once (again after upgrading).


💡 Practical Workflows

Beyond looking up single words, two workflows make day-to-day card making much faster:

Learn a word in the sentence you met it

Paste a sentence from an article or book into Generate and bracket the word (or each part of a phrase). Lines without brackets stay single words, so both can go in the same batch:

We sat on the [bank] of the river.
I'll [pick] you [up] at six.
  • One sense, no clutter — Covers only the meaning used in that sentence ("bank" as a riverside, not every dictionary sense).
  • Your sentence stays as the first example — Review the word word-for-word in the context where you met it.
  • Any form, any language — Bracket what you saw (ran, 食べた, or German Ich [rufe] dich [an]); the card gives the dictionary form.

Turn a missed STEM problem into a card

Snap a photo of a homework or exam problem, switch Generate to STEM, and paste or drop the picture (choose Problem as the card type, or leave it on Auto):

  • Your exact problem, self-contained — Rewrites the problem on the front so it reads cleanly without the image, with the final answer and step-by-step solution on the back.
  • How to find the method — Highlights the clue in the problem that points to the solution strategy, not just the algebra.
  • Check before saving — Preview renders the math; tweak steps with Edit fields or repair broken formulas with Fix with AI. (Requires a main model that accepts images, such as the recommended Gemini model.)

🤖 Supported Providers

Capability Built-in Presets & Compatibility
Text Generation Gemini, OpenAI, Claude, DeepSeek, or any OpenAI-compatible endpoint (via litellm)
Image Generation Gemini, OpenAI (gpt-image), fal.ai
Text-to-Speech Gemini TTS, OpenAI TTS, Google Cloud TTS

All API keys and settings stay on your machine, in ~/.config/ankinote/settings.json.


🛠️ Development

git clone https://github.com/ankinote-ai/ankinote.git
cd ankinote

uv sync                   # install Python dependencies (Python 3.14+)
make web-dev              # run Svelte + Vite frontend dev server
uv run ankinote-web       # run FastAPI backend
                          # (ANKINOTE_API_DOCS=1 serves API docs at /api/docs)

make test                 # run pytest suite
make format               # format with ruff
make check                # lint & type-check (ruff + ty)

📚 Documentation

🌐 Community

📄 License

MIT License — see LICENSE for details.

Metadata

Release files for ankinote-ai 1.3.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ankinote-ai 1.3.3
File Size Uploaded Provenance Actions
ankinote_ai-1.3.3.tar.gz 4.5 MB With provenance Details for ankinote_ai-1.3.3.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for ankinote-ai 1.3.3
File Interpreter ABI Platform Actions
ankinote_ai-1.3.3-py3-none-any.whl Python 3 none any Details for ankinote_ai-1.3.3-py3-none-any.whl

Total release size: 6.4 MB

Release files / ankinote_ai-1.3.3.tar.gz

Download URL ankinote_ai-1.3.3.tar.gz
Size 4.5 MB
Tags Source
SHA-256 checksum
How to use checksums
59509a5f8530fa8a2321cb1f9b45fe2619f49386519b7464b85a05525d14ca77
BLAKE2b-256 checksum
How to use checksums
8674869ea40d4a661d8f72de53890a3681518efe31cd55ca30664162bc0fa54c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Release files / ankinote_ai-1.3.3-py3-none-any.whl

Download URL ankinote_ai-1.3.3-py3-none-any.whl
Size 1.8 MB
Tags Python 3
SHA-256 checksum
How to use checksums
25a05dbeff35b25aa8084781143943505e1b1d3ccdc4e661b8361a5cde2997e2
BLAKE2b-256 checksum
How to use checksums
e2409085312b059e547291fb2ad54755f6ed924a540ab97c2995940a2470e42c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

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 Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

Security for ankinote-ai 1.3.3

Provenance

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.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for ankinote_ai-1.3.3.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 29, 2026.

Transparency log

A note on package security

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.

Release history Release notifications | RSS feed

This release

1.3.3 This release

2 release files Full provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page