Guide
Getting started
Install dpty, start a session, and keep it running. macOS (Apple silicon and Intel) and Linux (x86_64, aarch64).
In this guide
Guide
On this page
Install
Three ways to get dpty on your PATH. All three produce the same binary.
Homebrew (macOS, Linux)
curl install script
Installs to ~/.local/bin and verifies a sha256 checksum. Set DPTY_VERSION=v0.1.0 to pin a version, DPTY_INSTALL_DIR to change the folder, or run with --help for the full list of options.
From source
Requires a stable Rust toolchain. Puts dpty on your PATH at ~/.cargo/bin.
Your first session
The first command that needs the daemon starts it automatically — there is nothing to run first.
Use -d / --detach to create a session without attaching to it, and -e KEY=VALUE to set extra environment variables.
Attach and detach
Attach by id, name or label. Detach without stopping anything by pressing Ctrl-\.
Nothing stops when you detach. Reattach any time with the same command, from any terminal.
Run at login
dpty install sets up launchd on macOS or systemd --user on Linux, so the daemon starts at login and restarts if it exits.
Uninstall
dpty uninstall removes the login service. It keeps your sessions and history in ~/.durable-pty so nothing is lost by accident.
To remove everything, delete the data directory yourself once you no longer need it: rm -rf ~/.durable-pty (or the directory you set with DPTY_HOME).