What installing Portacode changes
The pairing installer adds the Portacode command-line tool and a persistent background connection. The installation location and service permissions depend on your operating system and whether administrator access is available.
Files it creates
- Python and supporting system packages, if required. On Linux, installing missing system packages can require administrator privileges.
- A dedicated virtual environment containing the Portacode command-line tool. The default is
/opt/portacode-venvfor a system installation, or~/.local/share/portacode/venvfor a user installation. The installer also accepts a custom virtual environment path. - A
portacodecommand symlink in/usr/local/binfor a system installation, or~/.local/binfor a user installation. A user installation can also add a PATH entry to your shell profile. - Portacode data, including the device keypair and connection logs. The exact directory follows the configured runtime user and data location; common locations include
~/.local/share/portacodeon Linux and~/Library/Application Support/Portacodeon macOS.
The private key stays on this computer and is used to authenticate it. It is not uploaded as a readable file.
Background connection
After pairing, Portacode installs a background connection so the device remains available after you close Terminal:
- Linux: service setup requests a system-wide service and can require root or
sudo. The pairing installer configures the service to run as root, while project commands normally use the runtime user selected during installation. Installing the command-line tool without administrator access does not guarantee that persistent service setup will succeed. - macOS: a
launchdLaunchAgent in~/Library/LaunchAgents.
Proxmox infrastructure setup is an additional, explicitly requested administrator-level operation on the Proxmox host. It is separate from ordinary device pairing.
Removing it
Use the installation's portacode command to stop and remove its background connection:
portacode service uninstall
Removing a system-wide service can require administrator privileges. This command removes the service definition and wrapper; it does not remove every installed file. To remove the command, virtual environment, logs, and local data as well, remove the paths used by your installation, including its command symlink. Removing the local data also removes this computer's keypair; pairing will be required again if you reinstall it.