No description
  • Rust 99.1%
  • Shell 0.5%
  • Dockerfile 0.4%
Find a file
Repository files (latest commit first)
Filename Latest commit message Latest commit date
Fabian Stamm e65e270b8b
All checks were successful
ci/woodpecker/tag/release Pipeline was successful
ci/woodpecker/tag/android Pipeline was successful
ci/woodpecker/push/ci Pipeline was successful
Release 0.6.1: select text by touch, a font preview, a font size for desktop mode
Resting a finger on a word selects it and offers to copy. Preferences show a preview of the
terminal, and on Android take a second font size for large windows.
2026-11-29 23:21:19 +01:00
.cargo Update to ed25519-dalek 3 and x25519-dalek 3 (RUSTSEC-2026-0620) 2026-11-29 19:29:25 +01:00
.woodpecker CI: build, sign and release the Android app 2026-11-29 21:54:07 +01:00
android CI: build, sign and release the Android app 2026-11-29 21:54:07 +01:00
assets Release 0.0.1: server image and Arch package on tags, launcher, icon, licenses 2026-11-27 17:08:21 +01:00
ci CI: build, sign and release the Android app 2026-11-29 21:54:07 +01:00
crates Preferences: a font size of its own for large windows, such as desktop mode 2026-11-29 23:13:22 +01:00
deploy/arch Release 0.0.1: server image and Arch package on tags, launcher, icon, licenses 2026-11-27 17:08:21 +01:00
docs Release 0.5.5 2026-11-29 19:53:47 +01:00
scripts CI: build, sign and release the Android app 2026-11-29 21:54:07 +01:00
vendor Read ECDSA keys with a short private value 2026-11-28 17:55:42 +01:00
.dockerignore Read ECDSA keys with a short private value 2026-11-28 17:55:42 +01:00
.gitignore Android: an app that runs the shared UI, with the Android keyring 2026-11-29 20:10:55 +01:00
Cargo.lock Release 0.6.1: select text by touch, a font preview, a font size for desktop mode 2026-11-29 23:21:19 +01:00
Cargo.toml Release 0.6.1: select text by touch, a font preview, a font size for desktop mode 2026-11-29 23:21:19 +01:00
docker-compose.yml Release 0.0.1: server image and Arch package on tags, launcher, icon, licenses 2026-11-27 17:08:21 +01:00
Dockerfile Read ECDSA keys with a short private value 2026-11-28 17:55:42 +01:00
LICENSE-APACHE Release 0.0.1: server image and Arch package on tags, launcher, icon, licenses 2026-11-27 17:08:21 +01:00
LICENSE-MIT Release 0.0.1: server image and Arch package on tags, launcher, icon, licenses 2026-11-27 17:08:21 +01:00
PLAN.md A history of who changed what in a vault, with undo 2026-11-28 17:07:27 +01:00
README.md Preferences: a font size of its own for large windows, such as desktop mode 2026-11-29 23:13:22 +01:00

Tessem

A terminal session manager. In code and file names it is tsm.

See PLAN.md. So far (milestone 7) it runs local shells and SSH sessions in tabs and grids, forwards ports, copies and edits files over SFTP, records sessions, and keeps machines, identities, SSH keys, snippets and grid layouts in encrypted vaults, which a server of your own can sync between devices and share between people.

Installing

On Arch (x86_64), from the registry that releases are published to. Add to /etc/pacman.conf:

[hibas123.extra.git.hibas.dev]
SigLevel = Required
Server = https://git.hibas.dev/api/packages/hibas123/arch/extra/x86_64

Then trust the registry's key and install:

curl -o tsm.gpg https://git.hibas.dev/api/packages/hibas123/arch/repository.key
sudo pacman-key --add tsm.gpg
sudo pacman-key --lsign-key 'hibas123@noreply.git.hibas.dev'
sudo pacman -Sy tsm

The command is tsm; the application menu calls it Tessem. To build the package from a checkout instead: cd deploy/arch && makepkg -si. The server is a container image, see docs/server.md.

Building

Needs curl and jq. libghostty-vt needs Zig 0.15.2 exactly; scripts/cargo downloads it into .toolchain/ and runs cargo with it, so use it in place of cargo: with another Zig on your PATH the build fails ("Your Zig version … does not meet the required build version"). The first build also clones Ghostty. Some SSH tests run OpenSSH’s sshd as your user on 127.0.0.1 and are skipped without it (unless TSM_REQUIRE_SSHD is set).

scripts/cargo run --release -p tsm-desktop -- [--font-size 14] [--data-dir folder] [-- program args…]
scripts/cargo test --workspace
# The real system keyring (stores and deletes one test entry):
scripts/cargo test -p tsm-client --features os-keyring --test keyring -- --ignored
# Frame time of four full panes:
scripts/cargo test --release -p tsm-ui --test view -- --ignored --nocapture

TSM_SCREENSHOTS=<existing folder> makes the view tests save pictures of what they draw.

Android (in progress)

Releases have the app as an APK (arm64), see Releases. To build it yourself:

android/build.sh --install   # builds "Tessem Dev" and puts it on the connected phone

It needs the Android SDK and NDK 27, a JDK 17 or 21 and Gradle (the script's head says where it looks for them).

Terminals work with the on-screen keyboard, which is asked not to suggest or learn words. A bar above it has the keys it lacks: Esc, Tab, Ctrl, Alt and the arrows (held, they repeat); … adds the function keys, Home, End, Page up and down, Delete and paste. Ctrl and Alt apply to the next key, from the bar or the keyboard; tapping one again locks it, and once more lets go. A swipe scrolls, in a pager or editor too. Resting a finger on a word selects it; dragging on takes in more, and lifting opens a menu with Copy, Paste and Select all. A tap puts the selection away.

A window narrower than 600 pixels has no sidebar: a button before the tabs opens a menu instead, and + asks for a machine, since there is no local shell. A wider one (a tablet, desktop mode) keeps the sidebar. Where both of a window's sides are 600 pixels or more (desktop mode, tablets), Preferences can name a font size of its own for it; a phone held across keeps the usual one. Files, port forwarding and session logs are left out on Android.

In a narrow window the vault chooses its sections from a list, a line keeps its name and Connect and puts the rest behind ⋮, and by touch nothing is moved by dragging. crates/ui/tests/phone.rs walks these pages in English and German and fails if anything sticks out. On Android a sync server needs a certificate of a public authority: ones installed on the device, such as a company's own, don't count yet.

When it crashes

The desktop app switches off core dumps for itself, since one would be a copy of its memory with whatever of the vault was open. Programs started from it, such as local shells, keep the limit you had. On Linux coredumpctl still lists the crash, without a dump. To debug with a dump, run the program under a debugger.

Instead it writes a report to crashes/ in the data folder (~/.local/share/tsm/crashes/ on Linux): the message, where it happened, a backtrace and the last log lines of the libraries for windows, graphics and D-Bus. Nothing is sent anywhere, and the ten newest are kept. Read a report before passing it on: Tessem puts no vault content into it on purpose, but an error message can quote the data it failed on.

CI

Woodpecker (.woodpecker/) checks formatting, known vulnerabilities (cargo audit, exceptions with reasons in .cargo/audit.toml), the tests and clippy, on every push and pull request. The steps run in the builder images from ci/builder/ and, for the Android app, ci/android-builder/, which builder.yaml pushes to the Forgejo registry; after a change to one, raise its tag there and in the workflows that use it.

The repository settings need the secrets forgejo_token (write:package, for the builder images) and sccache_memcached_endpoint (the shared build cache; without such a server, remove those lines from the workflows). The image packages must be public, or their registry added to the repository. A run of builder.yaml, started by hand, has to finish before the workflows that use a new image can run.

Releases

Pushing a tag v1.2.3 makes .woodpecker/release.yaml publish the server image (git.hibas.dev/hibas123/tsm:1.2.3, :v1.2.3, :latest) and the Arch package. Raise version in Cargo.toml to the same number first. The two secrets above must be allowed for tags too.

The same tag makes android.yaml build the Android app (arm64), sign it and attach the APK and its checksum to the Forgejo release of the tag. Obtainium installs and updates from there: add the repository's address, with "Forgejo" as the source type. Run by hand, the workflow only builds.

It signs with a key of your own, made once with android/make-keystore.sh. Keep a copy of it and its password: an installed app can only be updated by one signed with the same key. Two more secrets hold them, android_keystore_base64 (base64 -w0 android/release.keystore) and android_keystore_password, for the events tag and manual; forgejo_token needs those events and write:repository as well.

Using it

Ctrl+Shift+K lists all commands: type to find one, choose with the up and down arrows and run it with Enter. The shortcuts below are the defaults. Preferences lists every command with its shortcut and changes them; a new shortcut needs Ctrl or Alt or is a function key (Shift+Insert works too), and it is taken away from whatever had it. Alt+1 to Alt+9 and scrolling with Shift stay as they are. Like the other preferences, your shortcuts stay on this device.

All tabs are equally wide; when they don't fit, the tab bar scrolls. The tab and the pane of a machine have the machine's name. Where there is more room, over a pane in a grid and in the window's title, the title the shell there sets comes behind it. A terminal of this computer is named by the title its program sets.

Keys and mouse
Ctrl+Shift+K All commands
Ctrl+Shift+T / Ctrl+Shift+W New tab / close pane, and with its last one the tab
Drag a tab Onto another tab: move it there. Onto a pane of the shown tab: put its terminals to the left, right, top or bottom of that pane, with their sessions running
Drag a pane by its title Onto a side of another pane: move it there. Onto the tab bar: give it a tab of its own. Held over a tab: that tab opens, and the pane can go into its grid
Ctrl+Shift+E / Ctrl+Shift+D Split right / down, with the same local shell or machine
Ctrl+Alt+arrows Go to the neighboring pane
Ctrl+Shift+Enter Show only this pane, or all again
Ctrl+Shift+B Type to all on or off
Ctrl+Shift+R Connect an ended pane again
Ctrl+Shift+P, or the plus icon Open a local shell, machine or layout, in a tab or beside this pane
Ctrl+Shift+N Find a machine by name. Letters may be left out; words of its folder or address work too. Enter opens a tab, Shift+Enter splits to the right
Ctrl+Shift+J, or the panel icon Show or hide the tree of machines beside the tabs
Right click on a folder in the tree, or the buttons of a folder in the vault Open all of its machines, folders inside included, in one grid or in a tab each. From 9 machines on it asks first; a grid holds up to 64
Ctrl+Shift+S, or the code icon Insert or run a snippet (Enter inserts the first match)
Ctrl+Plus / Ctrl+Minus, Ctrl+0 Larger or smaller font in this terminal alone / the usual size again. It is not saved
Ctrl+Shift+F Find text in this pane, history included. Enter goes to the next older match and Shift+Enter to the next newer one, Escape closes. A capital letter makes the case count
Ctrl+Shift+M, or the folder icon Files
Ctrl+Shift+G, or the arrows icon Port forwarding
Ctrl+Shift+H, or the clock icon Session logs
Ctrl+Comma, or the gear icon Preferences
Right click Menu with copy, paste, split and more (can be changed)
Ctrl+Tab, Ctrl+Shift+Tab, Ctrl+PageDown/Up Next / previous tab
Alt+1 … Alt+8, Alt+9 Tab by position, last tab
Drag, double click, triple click Select characters, a word, a line. Selected text is also the primary selection
Alt while dragging Block selection (Ctrl+Alt, if the window manager takes Alt-drag)
Ctrl+Shift+C or Ctrl+Insert Copy
Ctrl+Shift+V or Shift+Insert, middle click Paste the clipboard, the primary selection
Ctrl+Shift+A Select everything
Wheel, Shift+PageUp/Down/Home/End, scrollbar Scroll through the history
Shift While a program uses the mouse: select, and scroll the history with the wheel
Ctrl+click Open a web or mail link. Ctrl+hover shows where it leads
Ctrl+Shift+O, or the server icon Open the vault
Ctrl+Shift+L, or the lock icon Lock the vault (with a master password)

Closing a pane, a tab or the window asks first if something would end with it: a program in a local shell, a connection to a machine, and on quitting also port forwardings and file transfers. The preferences can switch the question off.

A pane closes by itself when its program ends successfully. After a failure it stays; Enter closes it and Ctrl+Shift+R connects it again.

Programs can show pictures with kitty's graphics protocol, also over SSH; kitten icat photo.jpg is one. Some limits:

  • The terminal takes only picture data the program sends. It never reads a file or shared memory that a program names, so that nothing, on a remote machine either, can have it read files of this computer.
  • Pictures placed with Unicode placeholders (as used inside tmux) and Sixel are not shown.
  • Each terminal keeps up to 64 MiB of pictures for each of its two screens; older ones go.
  • The text transcript of a session log leaves pictures out.
  • TERM stays xterm-256color, so a program that decides by it alone may not try pictures.

Folders for machines

A machine can be in a folder: type its name in the machine's Folder field, with / for folders inside folders (Work/Web). The vault page and the tree beside the tabs show them, closed until you open them. A folder is there as long as a machine is in it. Rename (on the vault page, or in the tree's context menu) moves everything in it; left empty, the contents move to the top. In the tree, a double click or Enter connects in a new tab, and the context menu can split instead. For a machine you may change, the menu also has Settings…, which opens its form on the vault page, and Rename. While the form is open, its name, folder and host keys follow what changes elsewhere, unless you changed them in the form.

Dragging. In both places, a machine or a whole folder can be dragged onto a folder, or onto a machine to join the folder that one is in. While something that is in a folder is dragged, a field at the bottom takes it out of all folders. A short message says where it went, as a folder may give its machines another identity, jump host or color.

The tree is made wider or narrower by dragging its right edge.

A folder is part of the machine, so in a shared vault all members see the same folders, and only those who may change a machine can move it. Versions before folders don't show them, and keep them when they change a machine.

A folder's identity, jump host and color. Settings… of a folder (also in the tree's context menu) names these for its machines, those in folders inside included. A machine uses them where it says nothing itself; the nearest folder that says something counts. In a machine's form, No jump host keeps it direct. The jump host itself, and what it goes through, don't use it, so it can lie in the folder.

  • Settings belong to one vault and count only for its machines. Folders of the same name in other vaults show as one in the lists, but get nothing; where you can change several of them, the form asks which vault. In a shared vault they count for all its members.
  • Rename takes the settings along. Where the new name has settings already, those stay, and only what they leave open is taken over. Moving a folder's contents to the top drops its own settings.
  • Versions up to 0.3.2 don't know these settings: there, a machine without an identity of its own can't connect, and it goes without the folder's jump host.

Colors

A machine can have a color, to tell it apart: pick one in its form, or type a code such as #3b82f6 or #38f. Its icon has that color in the lists, the tree, the finder, its tab and its pane in a grid. A tab with a grid is colored if all its terminals have the same color. A folder's color (in its settings) colors the folder's icon, and its machines that have none of their own. Versions up to 0.4.3 don't show colors. They keep a machine's when they change it, but renaming a folder there drops the folder's color.

Duplicating

Duplicate on a vault's entry (a machine, identity, key, snippet or saved layout) opens the form for a new one, filled in with what that entry has. Nothing is added before it is saved. It goes to the same vault unless another is chosen, or that one can only be read. A copied machine starts without host keys, so connecting asks about them again; forwardings copied out of a shared vault don't start by themselves until you say so.

Coming from Tabby

Import from Tabby… on the vault's machine page reads Tabby's config.yaml (found by itself in the usual place, or chosen), shows what is in it, and adds the SSH connections to a vault: name, host and port, groups as folders, jump hosts and port forwardings. Connections that are there already, by name, host and port, are left out, so it can be run again.

Passwords and keys are not read. With Take over user names, each user name becomes an identity without either, such as root (Tabby): give it a password or key under Identities. Without that option the machines have no identity, to be given one by their folders' settings. Login scripts, proxies, and agent and X11 forwarding are left out, which the page says before anything is added. A config that Tabby encrypts has to be decrypted there first.

Grids, snippets and preferences

Type to all sends keys, pastes and snippets to every included pane of a tab, each in the form its own program expects. An orange frame marks the panes that receive what you type now. If the pane you are in is not included, typing stays there. A pane added while it is on starts out excluded, and an opened layout starts with it off. Mouse input is never sent to other panes.

Several lines ask before they go to more than one pane. In a single pane they ask only if the program would run them one by one (it does not use bracketed paste); this can be switched off.

Snippets may use {{name}}, {{host}} (the machine's first address), {{user}}, {{port}} and {{date}}, filled in for each pane. If a pane lacks one, nothing is sent. Other text in double braces is left as it is. A local shell has only {{user}} and {{date}}. A machine can run a snippet after connecting.

Layouts: Save layout in a grid's bar or menu. Saving under an existing name replaces it.

Preferences are kept on this computer: what selecting, right and middle click do (with a button for PuTTY's way), and colors, font and cursor. Colors come from Ghostty: pick an installed theme, import a theme or config file, or take over your own Ghostty config. Of a config, only the settings this app has too are taken; included files are not followed, and colors given as names are skipped. A preview drawn like a terminal shows colors, font and cursor, and a font size while it is typed, before it is applied.

Port forwarding

Add forwardings when editing a machine: local (a port here leads to something the machine reaches), remote (a port on the machine leads to something reached from here) or a SOCKS proxy. Start and stop them on the forwarding page, or let them start when a terminal connects. They need no open terminal. A listen address left empty keeps others out; any other one shows a warning. Those of shared vaults are started only by hand.

Files

Each side shows this computer or a machine. Copy what is selected to the other side, or Sync one folder to the other: you see what will be copied, replaced and (only if you tick it) deleted before anything happens. Transfers that failed or were cancelled go on where they stopped with Try again. Between two machines the data passes through this computer but is not stored on it.

Dragging copies too: a line onto the other side, or onto a folder there. A line that is selected takes the whole selection along. Within one side, dragging does nothing. Files from your file manager can be dropped onto the page; with both sides open, the app asks which one they go to, as it isn't told where they were dropped. Dragging files out to other programs isn't possible.

Double click a file of a machine to edit it. Each save writes it back, unless someone else changed it meanwhile; then you decide. The system's text editor is used, or the command set in the preferences.

Session logs

Switch on Record sessions when editing a machine. From then on, what each terminal connected to it shows is recorded, with its timing; a ● marks the pane and its tab, and ⚠ or Recording stopped tells you if a recording stopped while the session goes on. What you type is not recorded, only what the server displays. That still includes commands the shell echoes, and any secret that gets printed.

Logs are stored encrypted on this computer only (unless you copy one into a vault), one file per session, in the logs folder next to the vault. Recording goes on while the app is locked; reading needs the open vault.

The logs page lists them. You can search the text of all of them, read one as text (including what was cleared from the screen), replay it, export its text to a file, which is not encrypted, and delete it. The text does not contain what full-screen programs such as editors showed; the replay does. A log records at most 256 MiB of output. Logs are never deleted by themselves; the bottom of the page says how much room they take, and those you chose, and Vault → Session logs does so for the copies in vaults. If the vault is reset with a new account, the old logs can't be read anymore.

Server and sync

With a server of your own the vaults are the same on all your devices. The server only gets them encrypted.

  • First device: set up a vault, then Vault → Settings → Server: enter the address and sign in through your browser.
  • More devices: on the new one, choose Use the vault I have on a server instead of setting up a vault. Either a connected device lets it in (paste the new device's link there and compare six digits) or the 24 recovery words do.
  • Changes sync by themselves while the vault is open. Locked, the app doesn't sync.
  • If an item changed on two sides in a way that can't be put together, or its keys or sign-in data differ, a notice appears and you choose which side to keep.
  • Session logs stay on the computer that recorded them unless you copy one into a vault (Copy to vault… on the logs page). Whoever can read the vault can read the copy; they are listed under Vault → Session logs.
  • A lost or stolen device: remove it under Settings → Server. The app first shows what it did. It is shut out, nothing it signs afterwards counts, and your vaults get new keys. For shared vaults you don't administer, an admin is asked to do that. What the device already has stays on it, so change the passwords and SSH keys it could read.
  • If a thief removed your devices first, the recovery words take the account back: use them (on your computer, Use recovery words; on a new one, when joining), shut out all other devices when signing in, and remove them.

History and undo

History under Vault → Settings lists what was added, changed and removed in a vault, when and by whom, with the old and new values (passwords and keys are never shown). It needs a server, which keeps the earlier versions, still encrypted; a vault that isn't shared has a history too once you are connected.

Restore the state before undoes a change, also a removal. The app first shows what will change. It writes a new change, so that can be undone as well. Restoring takes the right to write, and is not offered for session log copies (the stored log goes with them) or for a vault's name (rename it instead).

  • The server keeps 50 earlier versions of each entry. Whoever may write can push older ones out by saving often.
  • Whoever joins a vault sees nothing that was replaced before they did, so a password you changed before sharing stays yours.
  • What was replaced before the server was updated is not there. Changes made offline reach the server as one: the steps in between are not listed.
  • Who made a change is signed by their device, and the app checks it. The time is what the server says. A version signed by a device that was removed since is marked, because nothing vouches for it any more.

Renaming a vault

Rename under Vault → Settings, for admins of the vault. All its members see the new name.

Deleting a vault

Delete… under Vault → Settings removes a vault you made. If it is not empty, the app warns and says what is in it, who else has it, and which entries of other vaults use something in it. It is deleted on your other devices too, once they have this version of the app, and this can't be undone. One vault that isn't shared always stays. Others who had a shared vault see that the server no longer has it, and can remove their copy.

Shared vaults

Under Vault → Settings, Members… of a vault lets an admin add people (found by name on your server) or groups (Groups… in the same place), each as Read, Write or Admin. Review changes shows what would happen; only Apply does it. A change of a group affects a vault only once an admin of that vault applies it there.

A name is only what the server or another person wrote. Compare safety numbers over another channel before you share with someone, or accept what they share.

  • A vault someone shares with you is not used until you Accept it.
  • Removing someone gives the vault a new key. They may have kept what they could read, so the app lists the passwords and keys you should change.
  • An item in a shared vault can only point to items of the same vault. Change items that point elsewhere before sharing.
  • My sign-in on a shared machine uses an identity of your own. Then only host keys you accepted yourself are trusted.
  • Port forwardings of shared vaults never start by themselves.
  • A snippet from a shared vault is shown before it goes to a terminal, also one that runs after connecting.
  • Dismiss hides an offer on your devices; nobody is told, and you can show it again.
  • Leave… removes a vault from your devices and ends your access. An admin is told, and their next change of the members takes you off the list and makes a new key. The only admin can't leave.
  • You can't remove your own right to write: another admin does that.

SSH and the vault

  1. Open the vault and set it up: write down the 24 recovery words, then choose the system keyring or a master password. The words are shown only this once and can't be replaced. Whoever has them controls your account.
  2. Add an SSH key (new, pasted or from a file) or use a password, then an identity (user name with that key or password).
  3. Add a machine (addresses, port, identity, optionally a jump host) and press Connect.

The identity can be left out. If neither the machine nor its folder names one, connecting asks for a user name and a password, once the host key is accepted. Neither is stored. A refused password can be typed twice more; for another name, connect again. Jump hosts without an identity ask too. A snippet run on connecting can't use {{user}} then, and session logs show only the host. Up to version 0.5.5 such a machine can't be connected to.

Agent forwarding lets a machine sign in elsewhere with your keys, e.g. to use git or ssh from there. In the machine's form, tick the SSH keys it may use; with none ticked, which is the default, there is no agent. The terminal says which keys it has when it connects.

  • The machine never gets the keys. It can ask for signatures while the terminal is connected, and so can anyone with administrator rights on it: tick only what is needed there. It can't add or remove keys, and RSA keys sign with SHA-2 only.
  • Only terminals have an agent, and only on the machine itself: not jump hosts, port forwardings or the file page.
  • While the app is locked, the agent has no keys and signs nothing.
  • A change of the ticked keys counts from the next connection on.
  • Shared machines never get an agent because of what the vault says. Each member chooses under My sign-in of the machine; then, as with an own identity, only the host keys you accepted yourself count.

A host key that is not stored for the machine always stops the connection and asks: Cancel (also Escape and Enter), Connect once, Store and add or Store and replace (the stored keys of the same type).

If a server asks for more while signing in, such as a one-time code, a dialog shows its words and takes the answers ("keyboard-interactive"). A stored password is only ever sent by itself to a single question whose answer is not shown. Everything else is for you to type, and is not stored. A key with a passphrase is asked for it once, when you import it.

With a master password the app locks after 15 idle minutes (adjustable, also after the computer slept that long). While locked, a lock screen covers the whole window; sessions keep running behind it. Only input to the app counts as use. Local shells work without a vault.

The system's SSH configuration, keys, known_hosts and agent are not used.