Seclave Companion
A desktop table view for a Seclave 2.0 hardware password manager, over the device's USB-slave (CDC-ACM serial) protocol. It lists the entries stored on the device in a searchable, sortable table and lets you copy a username or password, add an entry, edit one, or delete one - each secret action confirmed on the device's own screen. It can also save the device's encrypted backup archive to a file - and open such an archive offline with its backup key, view the entries, and export them to JSON, CSV or YAML.
It is one self-contained Python file using only the standard library: no pip installs, no background service, and nothing written to disk except the files you explicitly ask for: an exported backup, which is ciphertext and useless without the backup key held apart from it, and the plaintext JSON, CSV or YAML export of an opened backup. The real security boundary is the Seclave itself - its display and joystick, where you see and approve each action. This app is a convenience front-end.
Installation
Prebuilt packages for each release are on the
Releases page, with a
SHA256SUMS.txt to check them against.
Linux
Install the package for your distribution:
sudo apt install ./seclave-companion_<version>_all.deb # Debian/Ubuntu
sudo dnf install ./seclave-companion-<version>.noarch.rpm # Fedora/RHEL
It installs seclave_companion on your PATH, a desktop menu entry, and a udev
rule that keeps ModemManager off the port (it otherwise probes the new serial
device and can corrupt the first exchange), grants the logged-in user access with
no group setup, and creates a stable /dev/seclave symlink. Plug the device in,
put it in USB-slave mode, run seclave_companion.
Windows
Download SeclaveCompanion-Setup-<version>.exe and run it. It installs into
Program Files\Seclave\Seclave Companion with a Start menu entry, and needs no
Python.
Two alternatives ship alongside it: SeclaveCompanion-<version>-portable.zip
unpacks into a folder you can run from anywhere (including a USB stick), and
SeclaveCompanion-<version>-console.exe is the same program with a console
attached, for when you want to see what it is doing.
macOS
There is no macOS package yet. Install Tk and put the single file on your PATH:
brew install python-tk
sudo install -m 755 seclave_companion.py /usr/local/bin/seclave_companion
Then run seclave_companion. /usr/local/bin is on the default PATH and is not
protected by SIP, so it is the right home for a hand-installed tool. The file's
shebang picks whichever python3 comes first on your PATH - make sure that is
Homebrew's, because Apple's system Python has no usable Tk.
pip or uv (any platform)
If you have pipx or uv, this installs the seclave_companion command on your
PATH:
pipx install seclave-companion # or: uv tool install seclave-companion
seclave_companion
pip install seclave-companion into a virtualenv works too. The Python running
it must have Tk: python.org installers include it, uv's managed Pythons include
it, Homebrew needs brew install python-tk, and Debian/Ubuntu needs
sudo apt install python3-tk. On Linux you still need serial access - install
the udev rule described below; on macOS and Windows the port works as-is.
Running from source
The program is a single file needing only the standard library and Tk, so a checkout runs as-is on Python 3.9 or later:
python3 seclave_companion.py
Install Tk first if your Python does not have it:
- Debian/Ubuntu:
sudo apt install python3-tk - Fedora:
sudo dnf install python3-tkinter - Arch:
sudo pacman -S tk - macOS:
brew install python-tk - Windows: use the python.org installer, which includes Tk, then
py seclave_companion.py
Running from source you handle serial access yourself: add your user to the
dialout group, or install the packaged udev rule
(packaging/linux/60-seclave.rules) by hand.
Before you start
Put the device in USB-slave mode: on the Seclave, open the menu and select Usb slave. The serial port exists only while the device sits in that menu, so leaving it (or pressing UP) disconnects the app. Then:
- Load view lists your entries. Confirm "Show all labels" on the device.
- Select a row and click Show entry to read it. Confirm the reads on the device; every field then appears in a read-only window, password masked until you tick "show", and stays filled in on the table afterwards.
- Copy username, Copy password and Copy optional put one value on the clipboard. It clears after 30 seconds, and on exit.
- + Add, Edit and Delete change entries, each confirmed on the device. In the dialog, the 8 / 12 / 16 / 20 buttons beside the password field generate one of that length. A save that is declined or fails keeps everything you typed, so a rejected save cannot lose an entry. The → Tab and ↵ Enter buttons beside the username, password and optional fields put a tab or a newline in the field, which the device types as a real Tab or Enter keypress - enough to step to the next box of a login form, or to submit it. Both are invisible characters, so the field shows a marker glyph in their place; the device stores the character itself. They count as one character each against the field's limit. The label, group and domain fields do not take them - the device holds those to a fixed character set.
- Search filters as you type. Click a column header to sort by it, again to reverse, a third time to return to the device's own order.
- Load single fetches one entry by label, when you would rather not list everything. Adding, editing and deleting work from there too.
- The View dropdown switches to Web passwords (wwwfill), confirmed once as "Show all wwwfills". Each view is fetched the first time you show it and is instant thereafter.
- Export backup saves the device's encrypted backup to a file (named
seclave_YYYY_MM_DD.bkpby default, so repeated backups collect side by side) - the same archive the device offers asSECLAVE.BKPover Backup -> Export, so the device's own Backup -> Restore reads it back. One "Export backup" confirmation on the device covers the whole stream. Restoring needs the backup key (Backup -> Show key on the device); keep the file and the key in separate places - together they can reconstruct every password. - Open backup decrypts a backup file right here, with no device: choose
the archive, enter its 32-character backup key (shown grouped as
XXXXXXXX-XXXXXXXX-XXXXXXXX-XXXXXXXX), and the entries open in a read-only table - label, group, username and optional in the clear, the password shown only on request for the selected row, or in the full-entry view. From there Export JSON / CSV / YAML writes every entry, passwords included, to a plain file. Mind the warning the button shows first: an opened backup bypasses the device's per-read confirmations - every password in it is exposed to the computer, so do this only on a machine you trust, and remember that the exported files are unprotected plaintext. - Import JSON adds entries in bulk from a file in the same format the
JSON export writes: a list of objects with
label,group,username,passwordandoptional(label required, the rest default to empty). The whole file is validated before anything is sent; then every entry is sent, existing labels included, so an import can update stored entries - a password rotation, for example. An entry whose label is already on the device raises the device's Replace prompt: confirm there to take the imported values, decline to keep the stored ones. Each entry is confirmed on the device in the Normal and Ask all access modes - for a large import, set Admin -> Slave security to Allow all first (and back afterwards); in that mode there are no prompts and existing labels are replaced outright. On firmware 2.6 and earlier the Replace choice is not reported back, so those rows show as unread afterwards.
Good to know:
- Most reads pause until you confirm on the device, with a red "Look at your Seclave" bar while it waits. Stop waiting gives up on a prompt that is not going to be answered.
- How much the device asks is its own setting, under Admin -> Slave security: Normal (the default) and Ask all confirm most reads, Allow all confirms nothing.
- Hide fields re-masks the selected row for onlookers. The values stay in memory, so showing or copying them again costs nothing, and the button works while the device is unplugged.
- Unplugging the device (or leaving the Usb slave menu) clears every revealed
value back to
•••. Labels and groups stay, so the table stays navigable. - If the Group column is still empty after loading, click Load view + groups. Should the device start asking you to confirm each group, the app stops and points you at the access-mode setting rather than prompting you once per entry.
Secrets in memory
Every host-side copy of a secret lives in mmap pages the app zeroes explicitly:
bytes are read from the serial port straight into an anonymous mmap arena (never
into an intermediate Python bytes), parsed in place, copied mmap-to-mmap into a
per-secret buffer, and the arena is wiped after every command. Secrets are read
from the device only when you ask for them, and the clipboard clears after 30
seconds and on exit. The two copies the app cannot control are the kernel's tty
receive buffer and the transient string created at the moment a value is shown or
placed on the clipboard (which the clipboard and windowing system may then
retain). The app does not lock pages into RAM, and makes no claim of complete
zeroization - the device's on-screen confirmation, not host memory hygiene, is
what actually protects your secrets.
To report a security issue, see SECURITY.md.
Contributing
Working on the code, the hardware-free development stubs, the test suite and the release process are all described in CONTRIBUTING.md.
License
MIT - see the LICENSE file.
Seclave is a trademark of Seclave AB. This license grants no trademark rights.
Release files for seclave-companion 1.3.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| seclave_companion-1.3.0.tar.gz | 56.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| seclave_companion-1.3.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 114.4 kB
Release files / seclave_companion-1.3.0.tar.gz
| Download URL | seclave_companion-1.3.0.tar.gz |
|---|---|
| Size | 56.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e2db93a7aa22729bc15143b724a2f72cacc61309304b83ef3ead9909988d86a7
|
|
BLAKE2b-256 checksum How to use checksums |
106201323677774ca4b0f57b45794e726bc4b3a89490fcbe1b795fbd745c3916
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency logRelease files / seclave_companion-1.3.0-py3-none-any.whl
| Download URL | seclave_companion-1.3.0-py3-none-any.whl |
|---|---|
| Size | 57.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
061d9fb572d8ccbd5fa12181e725cc2383df906b6c9768e840539c05a4bdd10b
|
|
BLAKE2b-256 checksum How to use checksums |
6297e7a3a3d11113ecba4404ea49628f487b31ecb11df4ae5f4a1cbdb842f5c3
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 24, 2026.
Transparency log