Installation¶
Tabularium runs as a local web app: one backend process serves the API and the
dashboard at http://localhost:8787. You do not need a GPU to organize scans,
annotate pages or build datasets; model inference and fine-tuning can use a
remote GPU.
Requirements¶
| Component | Requirement |
|---|---|
| OS | Linux, macOS or Windows |
| Python | 3.11–3.13 (backend; CI-verified) |
| Node.js | Only when installing from source: 22 (CI-verified) |
| Storage | SQLite (bundled), plus disk space for your scans |
| GPU | Only for model recognition, evaluation and fine-tuning: NVIDIA with ≥ 8 GB, Apple Silicon for MLX-ported models, or a remote GPU |
Annotation, review, export and local-OCR prefill run entirely on CPU. The dashboard process never imports PyTorch: model serving and training run in separate environments it orchestrates.
Platform boundaries¶
| Activity | Linux | macOS | Windows |
|---|---|---|---|
| Archive, annotation, review, export | Yes | Yes | Yes |
| Local OCR prefill on CPU | Yes | Yes | Yes |
| Local model serving on NVIDIA/CUDA, fine-tuning | Yes | No | Via WSL2 |
| Local model serving with MLX (selected models) | No | Apple Silicon | No |
| Remote GPU through SSH, Vast.ai, RunPod or Modal | Yes | Yes | Yes |
Which models run locally depends on the pair machine + model, and the Models screen says so per model. The measured matrix is in Local inference §0.
Install with uv (recommended)¶
uv installs Tabularium in its own environment and downloads a compatible Python if your system doesn't have one, so the version of Python on your computer doesn't matter.
-
Install uv, once:
# macOS / Linux curl -LsSf https://astral.sh/uv/install.sh | sh# Windows (PowerShell) powershell -ExecutionPolicy ByPass -c "irm https://astral.sh/uv/install.ps1 | iex" -
Install and start Tabularium:
uv tool install --python 3.13 tabularium tabulariumTabularium supports Python 3.11–3.13.
--python 3.13matters: without it, uv builds the environment with the system Python, which is 3.14 on recent distributions (Ubuntu 26.04, Fedora), and does not warn. uv downloads 3.13 if the system does not have it.tabularium doctorreports an unsupported interpreter.
The browser opens on http://localhost:8787; the first visit asks you to
create an administrator account. Keep the terminal open while using the app and
press Ctrl+C to stop it.
| Command | What it does |
|---|---|
tabularium |
start the app and open the browser |
tabularium --no-browser |
start without opening the browser |
tabularium --port 9000 |
use another port |
tabularium --data /path/to/folder |
keep data somewhere else than ~/Tabularium |
tabularium --host 0.0.0.0 |
accept connections from other computers (for a shared lab server; for a public one, see Server deployment) |
uv tool upgrade --python 3.13 tabularium |
upgrade to the latest release (back up first) |
uv tool uninstall tabularium |
remove the app (your data folder is kept) |
tabularium backup |
archive the data folder and the vault key into the current directory, or --out FILE; --runs ID,… keeps only those runs' checkpoints (Upgrading) |
tabularium restore FILE --replace |
replace the data folder with a backup archive, the current one kept aside (Upgrading) |
tabularium doctor |
check the installation without starting it; --data DIR for another data folder |
tabularium reset-password <user> |
set a new password for a user locked out of the app |
tabularium --help |
list every command |
Your data (projects, database, models, settings) lives in ~/Tabularium,
outside the installed package, so upgrades never touch it. The folder also
holds .env with the key that encrypts provider credentials saved from the
interface: keep it with the data when you back up or move it.
Install from a release archive¶
Releases ship with the web interface already built, so you only need Python.
- Download the latest release from
GitHub Releases:
tabularium-<version>.zipon Windows,tabularium-<version>.tar.gzon macOS and Linux.SHA256SUMS.txtlists the checksums. - Extract it and open a terminal in the
tabularium-<version>folder. - Set up the backend once, then start the app:
# macOS / Linux
./scripts/setup_backend.sh
./scripts/run.sh
# Windows (PowerShell)
scripts\setup_backend.ps1
scripts\run.ps1
Then visit http://localhost:8787. The first visit asks you to create an
administrator account, with the setup token the backend prints in the terminal
(First administrator); later sessions start at the login page. Keep the
terminal open while using the app and press Ctrl+C to stop it. To start
again later, run ./scripts/run.sh (Windows: scripts\run.ps1).
Project data is kept in data/ inside the folder by default and stays on your
machine; .env next to it holds the key that encrypts the provider credentials
saved from the interface. To upgrade, follow Upgrading and rollback:
the new release is pointed at the old data/, which must not change path.
The backend installer accepts Python 3.11, 3.12 or 3.13 and explicitly refuses versions outside the verified matrix.
Install from source¶
For development, or to run unreleased changes. This also needs Node.js 22 to build the interface.
git clone https://github.com/nbadino/tabularium.git
cd tabularium
./scripts/setup_backend.sh
./scripts/setup_frontend.sh
./scripts/run.sh
On Windows, run scripts\setup_backend.ps1, scripts\setup_frontend.ps1 and
scripts\run.ps1. From source, run.sh rebuilds the interface whenever its
sources change.
Linux prerequisites¶
The bundled OCR engine depends on opencv-python, which imports
libGL/glib; on a headless box the setup prints the remedy if the import
fails:
sudo apt-get install -y libgl1 libglib2.0-0 # Debian/Ubuntu; equivalent elsewhere
First administrator¶
Until the first account exists, whoever creates it becomes the administrator. To keep that from being whoever reaches a public server first, setup needs a one-time setup token. At startup the server writes it to the log:
No administrator yet. Create it with the setup token <token> (also in <data>/setup-token): open ...
and to <data>/setup-token, readable only by the user that runs Tabularium.
tabularium opens the browser with the token already in the link; elsewhere, paste
it into the setup form, or open https://<your-host>/?setup_token=<token>. Under
systemd, journalctl -u tabularium | grep "setup token" finds it. The file is
deleted once the administrator exists, and the token stays the same across restarts
until then.
A forgotten administrator password is reset from the server with
tabularium reset-password <user> (Troubleshooting).
Single-user mode¶
For a single-user machine without authentication, start the backend with
TABULARIUM_AUTH=off. Registration is closed by default; the administrator can
open it from Settings. All options are in Configuration.
Verify the installation: tabularium doctor¶
Before opening the interface, ask the installation to introduce itself:
tabularium doctor
One line per check — data directory, free space, database integrity, schema
version, port, authentication, credential vault, process model, GPU, model
runtimes, model downloads, interface. warn is a legitimate state (no GPU, no
network, no database yet); fail means the installation is not ready and the
hint says what to change. tabularium doctor --json is the same report for a
monitoring script.
Two failures worth knowing in advance:
process model/port: Tabularium is a single process. Downloads, training jobs, the live channel and the sessions live in memory, so a second worker duplicates jobs and splits sessions.tabularium --workers 2is refused, andWEB_CONCURRENCY>1stops the application at startup.credential vault: the vault key belongs to the data directory. A key generated with another key does not decrypt saved provider credentials; the app starts and says so, but re-entering them is the fix.
Container¶
The image contains the whole application — interface, backend, OCR engine — and no PyTorch: model runtimes and training are prepared separately, or run on a rented GPU.
Releases after 0.4.0 publish the image to the GitHub registry:
docker run -d --name tabularium -p 127.0.0.1:8787:8787 \
-v tabularium-data:/data ghcr.io/nbadino/tabularium:<version>
or build it from a clone:
docker build -f docker/app/Dockerfile -t tabularium .
docker run -d --name tabularium -p 127.0.0.1:8787:8787 \
-v tabularium-data:/data tabularium
Or with compose, which sets the same options explicitly:
docker compose -f docker/app/compose.yml up -d
The data directory is /data inside the container: the SQLite database, the
projects, the crops, the runs, the models and the vault key. Back it up as a
volume, not as a file inside the image; upgrades and rollbacks are in
Upgrading and rollback. The interface listens on 0.0.0.0:8787;
publish it on the loopback and let a reverse proxy terminate TLS, or change the
port mapping deliberately.
Inside the container a host proxy arrives from the bridge gateway, not from
127.0.0.1: set TABULARIUM_FORWARDED_ALLOW_IPS to that address (or * when only the
proxy can reach the port) so login limits see the real client, and
TABULARIUM_SESSION_COOKIE_SECURE=1 once TLS is in place.
Serving under a sub-path¶
The interface can live at /tabularium/ behind a reverse proxy. Build it with
the same prefix, so assets, API calls and routes are generated under it:
TABULARIUM_BASE_PATH=/tabularium/ npm run build # from a source checkout
docker build --build-arg TABULARIUM_BASE_PATH=/tabularium/ \
-f docker/app/Dockerfile -t tabularium .
with compose, set TABULARIUM_BASE_PATH=/tabularium/ in the environment. Then
configure the proxy to strip the prefix before forwarding: the backend keeps
serving /api/... and /, and the interface's URLs already include the prefix.
location /tabularium/ {
proxy_pass http://127.0.0.1:8787/; # the trailing slash strips the prefix
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-For $remote_addr;
client_max_body_size 200m; # page uploads
}
Without stripping, the app would receive /tabularium/api/... and answer 404:
the prefix belongs to the proxy, not to the application.
Offline installation¶
Only model checkpoints come from the network. The local OCR engine works offline from the first start.
Checkpoints. tabularium models import copies a directory that contains
config.json and the weights into <data>/models/<adapter>, with the same state a
finished download leaves behind — the registry, the UI and the serving scripts cannot
tell the difference, and no download is attempted afterwards:
tabularium models import /media/usb/MonkeyOCRv2-B-Parsing --adapter monkeyocrv2-parsing
tabularium models list # what is installed, and where
tabularium models import --help # --force replaces an existing installation
The copy is staged next to the destination and renamed at the end, so an interrupted import never looks like a complete checkpoint.
A model that is not a Hugging Face checkpoint names its own files instead of
config.json and weights: the Lloyd's line reader (--adapter indra-lloyds) is a folder
with rec.onnx, meta.json and lloyds_lines.py (see local inference).
Hugging Face behind a mirror. huggingface_hub honours HF_ENDPOINT, so an internal
mirror works without changing the application:
export HF_ENDPOINT=https://hf-mirror.internal.example
OCR engine models. The wheel installs RapidOCR together with its .onnx models
(in the package's rapidocr/models/ folder), so local OCR needs no download, on first
use or later. Its log line File exists and is valid on first use means it found them.
Next steps¶
- Projects → create a project and drop scans into its Pages tab (from the browser, or from a folder on the server).
- Recognize N pages reads them with local OCR, or with a model once one answers (Models: pick a model and where it runs).
- Review N pages with drafts opens the Studio; Verify and go to the next finishes each page. Then Export.
Model serving details are in Local inference; rented GPUs (Vast.ai, RunPod, Modal, SSH tunnels) in Cloud GPUs; tested GPU profiles in benchmarks.md. A catalog entry is not by itself a promise that every checkpoint fits an 8 GB GPU.