KERSIST
Kerkar Persistent Sessions
Persistent Linux workspaces built on tmux. KERSIST is a small, Linux-native command-line tool that gives your tmux sessions a lifecycle: they survive reboots, recover from crashes, and can be stopped, started, or deliberately released — all through the system's own systemd.
$ curl -fsSL https://apt.kersist.kerkars.com/install | sudo bash
Ubuntu 24.04 & 26.04 · Debian 12 · amd64 & arm64 · Signatures and repository
What KERSIST does
Ordinary tmux sessions die when the machine reboots. If the tmux server crashes, your workspace is gone. And there's no standard way to say "keep this session for good" or "manage it for me now" without extra machinery.
KERSIST is the missing lifecycle layer:
- tmux provides the workspace. KERSIST manages its persistence — it does not replace it.
- Every managed session is an ordinary tmux session you can still attach to and use normally.
- A small supervisor process recreates the session from its saved configuration after a reboot or an unexpected failure.
- Stopping is deliberate: a stopped session stays stopped, even across reboots.
A typical flow
kersist create dev # create a persistent session named "dev" and attach
kersist attach legacy # make an existing tmux session persistent
kersist ls # list managed and unmanaged sessions
kersist stop dev # stop it; it stays stopped across reboots
kersist start dev # recreate it from its saved layout
kersist restart dev # stop and recreate
kersist drop dev # stop managing it; tmux keeps running
create and attach snapshot the pane layout and the commands that were running in it. After a crash or reboot, KERSIST replays the setup and the application commands — tmux brings the workspace back.
Why KERSIST
- Reboot persistence — your workspace comes back after a restart, with the same windows, panes and working directories.
- Failure recovery — if the tmux server crashes or is killed, the session is recreated from its saved configuration.
- Systemd integration — one
kersist@NAME.serviceunit per session; inspect, stop and start with familiarsystemctlsemantics. - Explicit deletion semantics — exiting the last pane or
tmux kill-sessionremoves the session and its config for good.dropun-manages it without killing tmux. - Ordinary tmux remains ordinary tmux — attach, split, detach: exactly as you always do.
- Linux-native — no daemon of its own, no Docker, no
systemctl --user, no lingering. Just tmux, systemd, and a small supervisor.
How it works
KERSIST (small CLI)
|
| manages kersist@NAME.service
v
systemd unit kersist@NAME.service
|
v
KERSIST supervisor (restarts on failure)
|
v
tmux server & session NAME
|
v
your shell / application
An intentional stop or exit is recorded and stays stopped. An unexpected failure — crash, killed server, reboot — is recreated by the supervisor. See Architecture for details.
Install
$ curl -fsSL https://apt.kersist.kerkars.com/install | sudo bash
The installer adds the signed KERSIST APT repository (key fingerprint pinned, signature verified), then:
$ sudo apt install kersist
$ kersist --versionRequirements: Linux with systemd, tmux 3.0+, Python 3.9+. Packages exist for Ubuntu 24.04, Ubuntu 26.04 and Debian 12 on amd64 and arm64.
Documentation & FAQ
- Docs — what KERSIST is, requirements, supported systems, license
- Command reference — every KERSIST command explained
- Architecture — how KERSIST composes tmux and systemd
- FAQ — common questions answered
- /llms.txt · /llms-full.txt — plain-text summaries for AI systems
License
KERSIST is proprietary software. See the LICENSE file in the Debian package for details.