Quickstart: from install to your first card
This page takes you from nothing to a first AutoMiner card in Anki. You install the server, walk through the setup page, install YouTube as a platform, connect the Chrome extension, then watch one YouTube video and follow it until its cards reach Anki.
A few words this page uses:
- Source: one video, episode or track you watched.
- Platform: where sources come from, such as YouTube, Stremio or Spotify. You install only the platforms you use.
- Watch: one viewing of a source, reported to AutoMiner by your browser or phone.
- Candidate: a sentence from a source’s subtitles, built around one word (its target word). AutoMiner counts the words in it you do not know yet (i+1 means exactly one) and gives it a score (Card scoring).
- Gold (金 in the Japanese UI, ★ in lists): the candidate AutoMiner picked to become the card for a word.
- Queue: the page that lists the Gold cards that will go to Anki.
What you need
Section titled “What you need”| What | Where |
|---|---|
| A machine for the server: a Linux box (a Raspberry Pi, a NAS, a PC), a Mac, or a Windows PC | anywhere on your network |
| Anki with the AnkiConnect add-on | the computer you study on |
| Chrome | the computer you watch YouTube on |
| A YouTube video in Japanese, Chinese or Korean that has subtitles in that language | YouTube |
AutoMiner mines Japanese, Chinese and Korean. Other languages can be studied too, but their sources are only fetched and counted, never mined (Languages).
1. Install the server
Section titled “1. Install the server”Linux or macOS. On the server:
git clone https://github.com/Chrisyk/AutoMinercd AutoMinersh install.shinstall.sh installs the system packages, the autominer command, the speech detector, the
files for the built-in dictionary, and a service that starts AutoMiner by itself (at boot when
you run it as root, when you log in otherwise). It then waits for the web
UI and ends with:
AutoMiner is running: http://192.168.1.20:8801The setup page walks through Anki, the dictionary and what you watch.Health of every feature: autominer doctorIf it stops with the service did not answer on port 8801, the service started but the web
UI never answered within about two minutes. On Linux, read its log: journalctl -u autominer
when you ran the installer as root, journalctl --user -u autominer otherwise. Manual steps, per-distro
packages and the options --no-packages and --no-service are in
Installing AutoMiner. The service, backups and upgrades are in
Running AutoMiner.
Windows. Download and run AutoMiner-Setup-<version>.exe from the
latest release. Your browser opens
on AutoMiner at http://127.0.0.1:8801. On Windows, AutoMiner listens only on
127.0.0.1, so only that PC can open it. The whole walk-through, including the SmartScreen
warning, is in Installing AutoMiner on Windows.
2. Open the setup page
Section titled “2. Open the setup page”Open the printed address (http://<server>:8801) in a browser on any computer on the same
network. On a fresh install it opens the setup page, /setup. It keeps doing that until you
save an Anki address on that page or AutoMiner records a first watch. Set up later (top
right) takes you to Today and stops this browser from coming back here by itself. You can
always return to http://<server>:8801/setup.
On the first visit the page picks English or Japanese from your browser’s language. To switch, press 日本語 or English under UI language in the first card.
The page has six cards, and the steps below follow them in order:
| Card | What it does | Needed for a first card? |
|---|---|---|
| Language | the UI language and the languages you study | yes, if you do not study Japanese |
| Anki | where cards go and which deck | yes |
| Dictionary (Yomitan) | definitions, readings and frequency on cards | no, but cards are much better with it |
| What you watch | the address for the Chrome extension, Stremio, Spotify | yes (the extension) |
| Transcription and voice separation | the audio services behind timing checks and clip scores | no |
| Readiness | every stage a card passes through, and where it stops | use it to check |
Anything you leave out is not configured. That is not an error: AutoMiner skips the work that needs it, says why, and does everything else. You can change every setting later in Settings. On a desktop, Settings is in the left rail under More.
3. Choose the languages you study
Section titled “3. Choose the languages you study”The Language card says what you study, for example Studying: Japanese. Japanese is
the default. To change it:
- Press Change in Settings › Languages › Studied languages →.
- Tick each language you study and put them in order with ↑ and ↓. The top one is your main language: AutoMiner uses it when it cannot tell a source’s language.
- Languages that cannot be mined sit under Fetch-only languages. At least one language must stay ticked.
- Press Save changes at the bottom of Settings (or Ctrl+S).
If your main language is not Japanese, do this before the dictionary step and then restart AutoMiner. The built-in dictionary offers the dictionaries of the language that was first in your list when AutoMiner started.
| Install | Restart with |
|---|---|
| Linux, installed as root | sudo systemctl restart autominer |
| Linux, installed as your user | systemctl --user restart autominer |
| macOS | launchctl kickstart -k gui/$(id -u)/com.autominer.core |
| Windows | end the pythonw.exe process in Task Manager (or restart the PC), then open AutoMiner from the Start menu |
More on studying several languages: Languages.
4. Connect Anki
Section titled “4. Connect Anki”On the computer you study on:
- Install Anki if you do not have it.
- In Anki, choose Tools › Add-ons › Get Add-ons…, enter the code
2055492159, press OK and restart Anki. This is AnkiConnect, which lets AutoMiner talk to Anki. - Make sure Anki has the note type AutoMiner sends. The default is Kiku. To use another note type, choose it in Settings and map its fields; see Anki: setup, fields and sending.
Then, in the Anki card on the setup page:
- Anki runs on the same machine as the server (the usual case on Windows): leave the box
empty. AutoMiner uses
http://127.0.0.1:8765. - Anki runs on another computer: AnkiConnect listens only on its own computer until you
change that. In Anki, open Tools › Add-ons, select AnkiConnect, press Config, set
"webBindAddress"to"0.0.0.0"and restart Anki. Then typehttp://<that computer>:8765in the box, for examplehttp://192.168.1.30:8765.
Press Save. The line under the box says what happened:
| Message | Meaning | What to do |
|---|---|---|
✓ Connected · 127.0.0.1:8765 · the default address |
AutoMiner reached AnkiConnect | nothing |
Can't reach Anki (is Anki running on the PC? Check the URL too) |
nothing answered at that address | start Anki; check the address, the webBindAddress setting and the other computer’s firewall (port 8765) |
Can't connect (HTTP 401) or (HTTP 403) |
AnkiConnect answered but refused | AnkiConnect is set to need an API key: store it on the server with autominer secret set ANKICONNECT_API_KEY; also check AnkiConnect’s webCorsOriginList |
Under the address is one box per deck, such as Japanese deck (with several studied
languages, a shared Deck plus one per language). An empty language box uses the shared
deck, and an empty shared deck is Backlog; the grey text in each box shows which. Type
the name of a deck you already have, or create a deck called Backlog in Anki. Once Anki
answers, the boxes suggest the decks it has. Press the Save under the boxes; it says
✓ Saved.
AutoMiner also reads your Anki collection to learn which words you already know, which is how it finds i+1 sentences. Keep Anki open whenever AutoMiner should send cards.
5. Set up the dictionary
Section titled “5. Set up the dictionary”The Dictionary (Yomitan) card fills definitions, readings, pitch and frequency on cards. Cards can be sent without it. There are two ways to have one.
The built-in Yomitan
Section titled “The built-in Yomitan”The built-in Yomitan runs Yomitan’s own lookup code on the server, so there is nothing to
install on your computer. install.sh and the Windows installer set it up. When AutoMiner
starts, it starts the built-in Yomitan if the address box is empty and no other Yomitan
answers on the server at http://127.0.0.1:19633. The card then shows its state and three
buttons:
- Download recommended dictionaries downloads Yomitan’s recommended dictionaries for your main language. The text above the buttons lists them with their sizes.
- Import a .zip uploads a Yomitan dictionary (
.zip) from your computer. - Import from folder imports every
.zipin the folder the text names (theyomitan/dictionariesfolder in AutoMiner’s data folder).
While it works, the line shows Downloading: <name> 12 / 40 MB and then
Importing: <name> 35%. For Japanese, Installing AutoMiner
gives about 72 MB to download, about 800 MB on disk, and roughly ten minutes on a desktop PC
(longer on a Raspberry Pi). You can carry on with the next steps meanwhile.
| Message | Meaning |
|---|---|
✓ Built-in Yomitan: <dictionaries> |
ready; these dictionaries are in use |
Built-in Yomitan: no dictionaries yet |
press one of the three buttons |
Built-in Yomitan: no word dictionary (<names>) |
only frequency or kanji dictionaries are in; add a word dictionary |
Built-in Yomitan: every word dictionary is OFF |
turn a word dictionary back on in Settings › Languages, under Yomitan dictionaries |
Could not add the dictionaries: <error> |
the download or import failed; the error says why |
If the card shows no download buttons and says Not used — cards are sent without dictionary definitions while the address box is empty, the built-in Yomitan did not start. It needs
Node.js 22.13 or newer on the server; install.sh prints a note when Node.js is older. The
server’s log has a line starting [startup] built-in Yomitan: that gives the reason.
Your own Yomitan
Section titled “Your own Yomitan”If you already use Yomitan in your browser, AutoMiner can use it with your dictionaries and
card format instead. Install the Yomitan API,
enable the API in Yomitan’s settings, type http://<your computer>:19633 in the box and
press Save. ✓ Connected means it works. Don’t use clears the address; restart
AutoMiner afterwards if you want the built-in Yomitan back, since it is only started then.
Both ways, and managing dictionaries later: Dictionaries and Yomitan.
6. Install YouTube and connect the Chrome extension
Section titled “6. Install YouTube and connect the Chrome extension”Install the YouTube platform
Section titled “Install the YouTube platform”A fresh install has no platform installed, and AutoMiner ignores watches from a platform that is not installed. The extension still reports them as delivered, but nothing appears on Today. So install YouTube first:
- Open Settings and choose Sources.
- In the Platforms card, press Add. The Add a platform list shows the built-in platforms.
- Press + beside YouTube.
AutoMiner downloads its own copy of yt-dlp and a PO-token helper, each checked against a pinned checksum, and shows a YouTube section under Sources. If the download fails, the error appears under the Platforms card; press Add again to retry. Jellyfin is listed but does not record or fetch anything yet, and Add from a zip is not available yet. While no platform is installed, Today’s empty list links here (Settings › Sources →). YouTube’s own settings and what to do when YouTube refuses the server: Adding YouTube.
Load the extension
Section titled “Load the extension”The extension tells AutoMiner what you play on YouTube and the Spotify web player.
- Put the
extensionfolder on the computer where you use Chrome. With the Windows installer it is%LOCALAPPDATA%\Programs\AutoMiner\extension. Otherwise it is theextensionfolder of the AutoMiner checkout: copy it over, or clone the repository on that computer. - In Chrome, open
chrome://extensions, switch on Developer mode (top right), press Load unpacked and choose the folder. - Open the extension’s popup (AutoMiner Capture, under the puzzle-piece icon).
- In the setup page’s What you watch card, press Copy beside the address. Paste it into Core URL in the popup.
- Optionally fill Device name. It is how Today labels this browser; blank is
pc-chrome. - Press Save settings. Chrome asks to allow access to that address: allow it. The popup
says
saved: http://192.168.1.20:8801. - Press Test core connection.
core reachable at http://192.168.1.20:8801/healthzmeans the extension can reach the server.
Everything about the popup, its counters and what it sends: The Chrome extension.
Other ways to report watches
Section titled “Other ways to report watches”The extension is the simplest start. The others, each with its own page:
- YouTube on an Android phone: a patched YouTube app.
- Stremio: Adding Stremio. The setup page’s Stremio key and Download Deluge and VPN belong to this.
- Spotify and podcasts: Adding Spotify and podcasts.
- All of them compared: Sources.
Each needs its platform installed, as above.
7. Transcription and voice separation (optional)
Section titled “7. Transcription and voice separation (optional)”For a first card from a YouTube video that has subtitles, you need neither. They add:
- Transcription of videos that have no subtitles.
- Check: comparing the subtitle timing with the audio, and fixing it when it is off. It is OFF by default.
- Word positions: measuring each line in the audio, so clips start and end on speech and can be scored. Clip scores are what lets AutoMiner send cards without you (auto-send).
Each can run in Cloud (a paid API with a key), in a Container (Docker on another PC or a NAS) or on This machine. The card’s links open those settings, and its buttons download the container services. See Subtitles, Subtitle sync and Self-hosted audio services.
8. Check Readiness
Section titled “8. Check Readiness”The Readiness card lists, for each installed platform, the stages a card passes through. Until you install a platform it lists only This machine (free disk space, and backups when they are set up). With several platforms, the stages they share sit under Shared.
Each line reads <stage> — <state>, followed by a reason unless the stage works:
| Colour | State | Meaning |
|---|---|---|
| green | Works | this stage runs |
| orange | Warning | it runs, less well |
| red | Stops here | cards stop at this stage until you fix it |
| grey | OFF | turned off; cards go on without it |
What a fresh install with YouTube and a working Anki shows:
| Stage | What it does | What it needs | On a fresh install |
|---|---|---|---|
| Fetch | downloads the video | yt-dlp and ffmpeg on the server | Works |
| Subtitles | gets the video’s subtitles | transcription, for videos without subtitles | Warning: Videos without subtitles can't be transcribed (no key) |
| Voice separation | removes music before AutoMiner listens | the separation service | OFF: Not used (subtitle check OFF) |
| Check | compares subtitle timing with the audio | transcription and the judge | OFF: OFF — subtitle timing isn't checked |
| Word positions | measures each line in the audio | transcription | OFF: Not used — clips are cut on the subtitle times (subtitle check OFF) |
| Clip score | scores how well each clip is cut | the speech detector and word positions | OFF: Not scored (clip score OFF) |
| Gold | picks the card for each word | nothing | Works |
| Translation | translates each sentence | a translation key | OFF: OFF — sent with no translation |
| Auto-send | sends Gold cards without you | clip scores and Anki | OFF |
| Anki | receives the cards | AnkiConnect | Works, or Stops here: Not reachable |
Nothing red, then you are ready. A red stage also shows on Today as a banner such as
YouTube · Anki stopped — Not reachable with Fix →, which opens the setting that clears
it. Settings › Overview › How a card gets made shows the same stages, and pressing one
opens its setting. Today → at the bottom of the card leaves the setup page.
9. Watch something
Section titled “9. Watch something”- In Chrome, open a YouTube video in a language you study, with subtitles in that language, and play it. The extension reports the position every 10 seconds while it plays.
- Open Today. The video appears under Watched sources with its title, the YouTube mark, the device name and how long you watched, above a bar of the part you saw. Its language tag joins them once AutoMiner knows the language. Today refreshes every minute; reload the page to see the row at once.
- AutoMiner starts on the video when the watch ends: the video finishes, you open another
video or close the tab, or it stays paused for about a minute and a half. To start now,
press the row instead (its tooltip says Fetch from YouTube and mine); it adds
· Accepted.
From there the video goes through these stages, one job each:
| Stage | What happens | You see |
|---|---|---|
| Fetch | AutoMiner downloads the video and works out its language | Fetch from YouTube under Workers in the left rail |
| Subtitles | it takes the video’s own subtitles in that language: the uploader’s, else YouTube’s automatic captions. With a transcription key set up, it transcribes a video that has only automatic captions; a video with no subtitles at all needs transcription | |
| Check | only when Check is on: subtitle timing is compared with the audio | Subtitle check |
| Mining | candidates are built from the subtitle lines and scored against the words you know | Mining |
| Clips and definitions | each candidate gets its audio clip, screenshot and dictionary entry | Add definitions |
| Gold | the best sentence for each word becomes its Gold card | the card appears in the Queue |
Workers in the left rail counts the jobs running and queued and lists each with its
source. A video that AutoMiner files under a fetch-only language (step 3) is only fetched, not
mined: its row on Today gets a small round button that says
<language> is not mined (fetch only).
When the source has candidates, its row on Today turns into a link (See candidates) to the source’s page in Sources. There every word is a row with its best sentence and tags: ✂ the clip score, ¶ the sentence’s score, i+N the number of words you do not know, ★ Gold (to send) and ×N how often the word occurs in the video.
If a stage fails, the same kind of round button appears after the watch time. Press it for
the reason, for example Failed · Fetch from YouTube · <reason>; some reasons come with a
link to the fix. Press the row to try again.
10. Review in the Queue and send to Anki
Section titled “10. Review in the Queue and send to Anki”- Open Queue. The Send tab lists every card that will go to Anki, in send order:
Next send first, then After that. Its status line says
Auto-send off, the default, so the cards wait here for you. A row shows the word, its sentence, the language and the source; ▶ plays the clip and ✕ marks the clip bad (NG). - Click a row (or press Enter) to open the card in the editor: the clip’s waveform with draggable edges, the screenshot, the sentence, the definition and every Anki field. Space plays the clip.
- Press Send to Anki (Ctrl+Enter). If Anki already has a note for the word, the editor offers Merge, Overwrite or Create duplicate instead. Reject drops the card.
- In Anki, the note is in your deck.
No cards to send yet means no Gold card is ready. A line such as
3 Gold cards: clip being cut means they are still on their way.
To let AutoMiner send on its own, tick Send to Anki without review in the Auto-send card of Settings › Send. It needs clip scores, so it needs word positions first (step 7). Everything about reviewing: Reviewing cards.
When something stays empty
Section titled “When something stays empty”| Symptom | Check |
|---|---|
| Today stays empty after you watch | Is YouTube installed (step 6)? In the extension’s popup, is the dot green, and is Delivered to core going up? Not sent (no core URL) or Last error say what is wrong; Test core connection checks the address. |
| The row on Today never gets candidates | Press its round button for the reason. Look at the Readiness card or Today’s banner for a red stage. |
| Sources shows words but the Queue is empty | Read the lines beside the Queue’s status line; they say why Gold cards are held. |
| Sending fails | Is Anki open? Press Services at the foot of the left rail to see whether Anki and Yomitan answer. |
On Linux or macOS, autominer doctor prints the state of every feature:
autominer doctor # settings onlyautominer doctor --online # also one cheap read-only request to each configured serviceRun it as the user the service runs as (as root when you installed as root). Its first
line names the data folder it read, so you can tell you are looking at the right install.
Then there is one line per feature, such as Anki export (AnkiConnect) or
YouTube acquisition (yt-dlp), with its state:
configured: everything it needs is set.not configured: it is not set up, so its work is skipped. This is not an error.misconfigured: something is set but wrong, or half set. The lines starting with!say what.
With --online, a configured feature also shows online: ok or why the request failed. At
the end it lists the trackers running inside AutoMiner (Stremio, Spotify). It exits with 0
when nothing is misconfigured or failing, and 1 otherwise. autominer doctor checks settings,
so with the built-in Yomitan it shows the dictionary as not configured; the setup page’s
Dictionary card is the check for that.
On Windows, use Settings › Overview › Setup state (the same table in the browser), and the
log file %LOCALAPPDATA%\AutoMiner\data\logs\autominer.log.
What next
Section titled “What next”- Reviewing cards: the Queue, the editor, OK and NG, auto-send.
- Anki: setup, fields and sending: note types, field mapping, duplicates.
- Sources: every way to report watches, and how each platform fetches.
- Troubleshooting: when a stage stays red or a card never comes.
- Settings reference: every setting and its default.
- Command line:
autominer doctorand the other commands.