> ## Documentation Index
> Fetch the complete documentation index at: https://docs.janus.cards/llms.txt
> Use this file to discover all available pages before exploring further.

# Anki

## Exporting to .apkg

This is the simplest way to export flashcards to Anki. Exporting creates a `.apkg` file which can then be opened in Anki and imported. Anki already handles deduplication.

<img src="https://mintcdn.com/janus-8f513059/11EOzrkR4XI3jgr4/imgs/anki-apkg-export.png?fit=max&auto=format&n=11EOzrkR4XI3jgr4&q=85&s=7f447fb572cf8eea3a629afc49c07059" alt="Example exporting to anki with .apkg" width="1924" height="1584" data-path="imgs/anki-apkg-export.png" />

## Exporting with AnkiConnect

[AnkiConnect](https://ankiweb.net/shared/info/2055492159) is an Anki plugin that allows external applications to interact directly with your Anki collection. You are then able to export directly into an existing or new deck with one click.

<Note>
  **Limitation**: Anki must be open with AnkiConnect installed on the same device Janus is running on.
</Note>

### Setup

* Follow the instructions to install AnkiConnect [here](https://github.com/amikey/anki-connect?tab=readme-ov-file#installation).
* Give Janus permission to access your Anki collection:
  * Go to `Tools > Add-ons`, click `AnkiConnect`, and then `Config`. <img src="https://mintcdn.com/janus-8f513059/11EOzrkR4XI3jgr4/imgs/anki-connect-setup-instructions.png?fit=max&auto=format&n=11EOzrkR4XI3jgr4&q=85&s=331b1399250c11fd39206c1693fec885" alt="" width="1252" height="848" data-path="imgs/anki-connect-setup-instructions.png" />
  * Add `"https://app.janus.cards"` to the `webCorsOriginList`. Do not forget to add a comma between each element in the list, and do not add an extra `/` at the end of the URL. <img src="https://mintcdn.com/janus-8f513059/11EOzrkR4XI3jgr4/imgs/anki-connect-config.png?fit=max&auto=format&n=11EOzrkR4XI3jgr4&q=85&s=8a7e11001169eb2a18f12139e573b70a" alt="" width="1236" height="620" data-path="imgs/anki-connect-config.png" />
* Restart Anki if the add-on prompts you to apply the new configuration.
