-
Notifications
You must be signed in to change notification settings - Fork 16
1. Get Started
This guide details how to install, update, and configure the X-Ray plugin on various devices running KOReader.
- KOReader version 2024.01 or newer.
- An active Wi-Fi / Internet connection on your device during initial setup and AI data fetching.
- An API key from a supported AI provider (Google Gemini [free tier recommended], OpenAI, Anthropic Claude, DeepSeek, or any OpenAI-compatible provider like OpenRouter).
If you use the Storefront plugin manager for KOReader, you can install and update X-Ray directly on your device without connecting to a computer:
- Open KOReader on your device.
- Open the Tools menu (wrench icon / menu) and launch Storefront.
- Search for or browse to X-Ray in the plugin list.
- Tap Install.
- Restart KOReader when prompted.
Tip
Storefront will automatically check for new X-Ray releases and allow seamless, one-tap updates directly on your e-reader.
If you prefer to install the plugin manually via USB or file transfer:
- Visit the X-Ray Releases page.
- Download the latest
xray.koplugin.ziprelease archive.
Unpack xray.koplugin.zip into the plugins/ directory of your KOReader installation. The resulting folder structure must be:
[koreader-directory]/plugins/xray.koplugin/
| Device / OS | KOReader Directory Path | Full Plugin Destination |
|---|---|---|
| Kindle (USB) |
koreader/ or /mnt/us/koreader/
|
/mnt/us/koreader/plugins/xray.koplugin/ |
| Kobo (USB) |
.kobo/koreader/ (show hidden folders)
|
.kobo/koreader/plugins/xray.koplugin/ |
| Android |
sdcard/koreader/ or Android/data/org.koreader.launcher/files/
|
/sdcard/koreader/plugins/xray.koplugin/ |
| PocketBook |
system/koreader/ (show hidden folders)
|
system/koreader/plugins/xray.koplugin/ |
| Linux | ~/.config/koreader/ |
~/.config/koreader/plugins/xray.koplugin/ |
| macOS | ~/Library/Application Support/koreader/ |
~/Library/Application Support/koreader/plugins/xray.koplugin/ |
| Windows | %APPDATA%\koreader\ |
%APPDATA%\koreader\plugins\xray.koplugin\ |
Important
Make sure the folder is extracted as xray.koplugin directly inside plugins/ (e.g., plugins/xray.koplugin/main.lua). Avoid nested directories such as plugins/xray.koplugin/xray.koplugin/.
Exit and restart KOReader (or reboot your device) so the newly installed plugin is loaded.
- Via Storefront: Open Storefront on your device, check the updates section, and tap Update.
-
Manual Update: Download the newest
xray.koplugin.zipand replace the existingxray.koplugindirectory on your device. - Silent Background Updates: The plugin can also automatically check for new releases once a week in the background and notify you when an update is available.
Note
All fetched book X-Ray data and user configurations are stored safely in KOReader's persistent settings directory and will not be lost when updating the plugin.
Once installed, follow these 3 quick steps to get X-Ray running on your books:
X-Ray requires an API key from a supported AI provider to analyze book text. We recommend Google Gemini for its generous free tier:
- Google Gemini (Recommended / Free Tier): Grab a free key at Google AI Studio.
- Other Supported Providers: OpenAI, DeepSeek, Anthropic Claude, and OpenRouter / Custom APIs.
Tip
For direct links and signup guides for all providers, check out API Key Setup Options.
The fastest way to add your key without typing on an E-Ink keyboard is using Phone / PC Quick Setup:
- In KOReader, open any book and go to Tools Menu → X-Ray → Settings → AI Settings → API Keys & Providers → Set Key from Phone / PC ▸.
- Scan the on-screen QR code with your phone (or visit the link on your PC).
- Paste your key in your browser and tap Send Encrypted Key to E-Reader.
Note
Prefer offline or direct entry?
X-Ray supports 5 different setup methods, including offline local Wi-Fi transfer, USB text file drop (xray_key.txt), configuration files (xray_config.lua), and on-screen keyboard input. See the full API Key Setup Options guide for walkthroughs of every method.
- With any book open, navigate to Tools Menu → X-Ray → Fetch X-Ray Data.
- Wait 30–60 seconds for the initial extraction.
- A summary dialog will appear once complete. All data is saved locally on your device—no active internet connection is needed to browse X-Ray data while reading!
Explore what you can do with X-Ray:
- API Key Setup Options — All 5 ways to enter your API key: Phone/PC QR code, Local Wi-Fi, file drop, config file, and on-screen keyboard.
- Core Content & Features — Explore Characters, Plot Timelines, Glossaries, Series Recaps, and Unit Conversions.
- Lookups & Navigation — Use inline footnote popups, gesture shortcuts, and mention scans.
- AI Providers & Models — Compare AI providers, models, fallback models, and reasoning effort.
- Spoiler Protection — Learn how spoiler-free filtering keeps twists safe.
- Fetching Data — Learn about background auto-fetching, target fetching, and full book analysis.