AI agents and Ankinize
Give an AI agent an Ankinize API key and it can create decks, write flashcards, search your notes and read what is due, through the REST API or the TypeScript SDK. The cards sync to Anki Desktop, AnkiDroid and AnkiMobile like any others. This is how you ankinize anything an agent can read: an article, a lecture, a chat, a codebase.
Give the agent access#
- Create a key under API Keys & Devices. Use the
readscope for an agent that only looks things up, andwritefor one that adds cards. See Authentication. - Put it in the agent's environment as
ANKINIZE_API_KEY. Never paste it into a prompt. - Point the agent at the skills below, or hand it the tools in the next section.
For AI agents#
Agent skills are plain Markdown files an agent loads to learn the API. They are generated from the OpenAPI document, so they match the server.
Any page of these docs is also available as Markdown: add .md to its address (https://ankinize.com/docs/sdk.md), or ask for it with Accept: text/markdown.
A working agent in 85 lines#
This script gives a Claude model three tools, backed by the SDK: list decks, search notes and add cards. Run it with a request in plain language. The model decides which tool to call and the loop feeds the results back until it answers.
The same three functions fit any agent framework or tool-calling API: only the tool schemas change.
Letting an agent write safely#
More#
Put a card in one click with a browser extension. Coming from AnkiConnect? See the comparison.