Skip to content

About

CLI suite to safely update a modded Kobo e-reader (backup, un-mod, flash 4.x, restore, re-mod) without losing reading stats

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Repository files navigation

kobo_manager

CI Docker Python uv Ruff Code style: black mypy: strict Open in GitHub Codespaces

A suite of CLI tools to update a modded Kobo e-reader without losing reading stats — backup, un-mod, flash, restore, re-mod.

Platform: Linux · Python: 3.12+ · Package manager: uv


Overview

mounted Kobo
     │
     ▼
 ┌───────┐  snapshot  ─▶ timestamped backup + sha256 manifest + stats CSV/JSON
 │ vault │  verify    ─▶ hashes + PRAGMA integrity_check
 └───────┘
     │
     ▼
 ┌───────┐
 │ unmod │  ─▶ removes NickelMenu / KFMon / KoboRoot.tgz (keeps KOReader)
 └───────┘
     │
     ▼
 ┌─────────┐
 │ flasher │  ─▶ stages the latest 4.x firmware (refuses 5.x)
 └─────────┘
     │
     ▼
 ┌───────┐
 │ vault │  restore  ─▶ KOReader stats + sidecars, table-level Nickel re-import
 └───────┘
     │
     ▼
 ┌────────┐
 │ modder │  ─▶ KOReader, NickelMenu, screensavers, config
 └────────┘

Each step refuses to run until the previous one is recorded as done ($XDG_STATE_HOME/kobo_manager/<serial>.json).

⚠️ Firmware 5.x is not supported — NickelMenu does not work on it and downgrading is unreliable. See ROADMAP.md → Known hazards.

Installation

git clone https://github.com/burgesQ/kobo_manager.git
cd kobo_manager
uv sync
uv run vault --help

Docker

A prebuilt image (Python 3.12 + uv + all CLIs) is published to GHCR on every push to main:

docker run --rm -it \
  -v /media/$USER/KOBOeReader:/kobo \
  -v ~/kobo-backups:/root/kobo-backups \
  ghcr.io/burgesq/kobo_manager vault snapshot --mount /kobo --dry-run

The same image backs the dev container: open the repo in GitHub Codespaces (badge above) to edit, lint and test from the browser. Device commands obviously need a real Kobo, so they only make sense locally.

Status

Scaffolding only: CLIs parse arguments, detect the device and enforce phase order, then exit with NOT_IMPLEMENTED (64). See ROADMAP.md.

Development

make test
make lint
make type-check

About

CLI suite to safely update a modded Kobo e-reader (backup, un-mod, flash 4.x, restore, re-mod) without losing reading stats

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages