# Anki Connect for Codex & Claude Code

> Create, inspect, and sync small Anki cards in Codex or Claude Code with a bundled Python CLI and AnkiConnect.

Anki Connect for Codex & Claude Code is a paid AI agent skill on Agensi by Joey, in Productivity. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: $2.99 (one-time purchase)
- Creator: [Joey](https://www.agensi.io/creators/joey)
- Category: [Productivity](https://www.agensi.io/skills/productivity)
- Version: 1.0
- Last updated: 2026-11-18
- Security: scan passed (2026-11-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/anki-connect-for-codex-claude-code
- Tags: productivity, anki, python, learning-tools, latex

## About this skill

Works in Codex and Claude Code.

### What it does
Use this skill to manage Anki through Anki Desktop and the AnkiConnect add-on. It bundles a Python CLI so an agent can check the connection, inspect deck and note type names, create decks, add Basic, reversed, Cloze, or custom notes, avoid duplicates by default, and trigger AnkiWeb sync when you ask.

### What you need
- Anki Desktop running on the same machine
- The AnkiConnect add-on enabled
- Python 3

The script talks to AnkiConnect at `http://127.0.0.1:8765` by default. It does not edit Anki collection files directly. Sync uses Anki Desktop's existing AnkiWeb sign-in.

### Included files
- `SKILL.md`: setup, deck guidance, card design rules, and usage examples
- `scripts/anki_connect.py`: the CLI bridge

### Example
`python3 scripts/anki_connect.py add-basic --deck "japanese" --front "犬" --back "dog" --tag vocab --sync`

The script creates the deck if needed, checks for duplicates, adds the note, and syncs when requested.

## Requires

- Anki Desktop with AnkiConnect enabled
- Python 3

AnkiWeb account signed in through Anki Desktop (for --sync).

## Known limitations

Requires Anki Desktop and AnkiConnect add-on. Cannot resolve sync conflicts or login prompts via API. Works with local instances only.

## How to use this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the Anki Connect for Codex & Claude Code skill from Agensi" and describe your task.
3. Buy it on the listing or let your agent ask you first; your agent then loads it from Agensi when it needs it. Every paid skill has a money-back guarantee: https://www.agensi.io/docs/money-back-guarantee

## Frequently asked questions

### What software do I need to have installed to use this skill?

You must have Anki Desktop installed with the AnkiConnect add-on (ID: 2055492159) enabled. The skill also requires a local Python 3 environment to execute the bridge script that communicates with the Anki API.

### Can I generate cards with complex mathematical formulas?

Yes, this skill includes built-in support for LaTeX. It automatically formats mathematical expressions and formulas using Anki's native syntax so they render perfectly on both desktop and mobile devices.

### How does the skill handle duplicate cards or existing decks?

The skill uses Anki's internal database logic to detect and prevent duplicate cards by default. It also inspects your existing decks and note models before adding new content to ensure organization and avoid clutter.

### Which AI agents or frameworks is this skill compatible with?

This skill is designed to work with any AI agent or framework capable of executing Python scripts. It functions as a bridge between your agent's reasoning and your local Anki database.

### Do I need to have Anki Desktop running manually for the skill to work?

No, you do not need to keep the app open. The skill includes a smart lifecycle manager that can launch Anki Desktop in the background to perform tasks and then shut it down once synchronization is complete.

### What exactly is included in the purchase?

You receive the core integration logic, a Python helper script for API communication, and documentation on how to connect the skill to your preferred AI agent environment.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
