Anki gate: add-only, permission-checked access to AnkiConnect

AnkiWeb addon 821422697

Forwards sandboxed tools' requests to AnkiConnect at 127.0.0.1:8764, allowing note additions and lookups while refusing destructive actions and requiring confirmation for suspend, unsuspend, and deck changes.
AI-generated summary; may contain mistakes.

sync-integration

Open on AnkiWeb Ask about alternatives

AnkiWeb

Votes
0 (πŸ‘ 0 Β· πŸ‘Ž 0)
Updated
2026-10-13
Anki versions
unknown
Languages
Python, JSON
Description language
en

Maintenance

active

  • Last update or commit: 2026-10-13 (19 days before the snapshot).

GitHub

No GitHub repository linked.

Will it work on my Anki?

Version branches
Min AnkiMax AnkiUpdated
2.1.0–2026-10-13
History across monthly snapshots

Loading…

Similar addons

Hands-Free Voice Review

Enables fully offline, hands-free deck review using spoken commands to reveal answers, grade cards, and undo actions, with configurable vocabulary, timing, and noise filtering.

review-flowaccessibility

3 votes 21% approval πŸ‘ 2 Β· πŸ‘Ž 1 ⭐ 0 Anki 25.09~ Updated 2026-07-03
Magic Image Fetcher

Automatically fills empty Picture fields in a selected deck with high-quality images from Pexels, Unsplash, or Google Images via SerpAPI, using chosen note fields as search terms.

card-creationsync-integrationnote-management

6 votes 44% approval πŸ‘ 5 Β· πŸ‘Ž 1 ⭐ 3 Anki 25.02.4~ Updated 2026-04-01
Control suspend status by tags

Automatically suspends and unsuspends cards depending on whether they carry a designated #suspend tag, including cards created or updated via AnkiConnect.

sync-integrationtagging

1 votes 0% approval πŸ‘ 0 Β· πŸ‘Ž 1 Anki 24.06.3~ Updated 2024-11-19

Description

Lets a sandboxed tool (for example an AI coding assistant running in a Docker container) add new notes to Anki, and nothing destructive.

How it works

  • Listens on 127.0.0.1:8764 and forwards requests to AnkiConnect, adding AnkiConnect's API key.
  • On first run it gives AnkiConnect a random API key (if it has none), so nothing can get around the gate by using port 8765. Restart Anki once after that.
  • Allowed: adding notes and lookups (version, deckNames, modelNames, modelFieldNames, canAddNotes, addNote, addNotes, findCards, cardsInfo, areSuspended).
  • Asks you first (Yes/No dialog in Anki): suspend, unsuspend, changeDeck.
  • Refused: everything else (delete, edit fields, tags, multi, ...).
  • {"action": "gateVersion"} returns the gate's version, so clients can check that it is installed.
  • Adds and dialog decisions are logged to user_files/gate.log, with card IDs.

Requires AnkiConnect (2055492159). Point your tool at http://127.0.0.1:8764 instead of 8765. From a Docker container, use http://host.docker.internal:8764.