Perpetua is an open-source, cross-platform KVM software that lets you share a single keyboard and mouse across multiple devices. Inspired by Apple's Universal Control, it provides seamless cursor movement between devices, keyboard sharing, and automatic clipboard synchronization. All secured with TLS encryption.
Built with Python, leveraging high-performance uvloop (macOS) and winloop (Windows) for low-latency, responsive input handling.
Actually only Windows and MacOS are supported.
This section is reserved for documenting platform-specific issues and workarounds as they are identified.
Important
-
Windows: You can't control a Windows client if there is no real mouse connected to the machine.
-
Input Capture Conflicts: Perpetua cannot control the mouse when other applications have exclusive input capture (e.g., video games). This is an architectural limitation.
Download the latest release.
- macOS: Extract the
.zipand launchPerpetua.app. - Windows: Extract the archive and run
Perpetua.exeinside thePerpetuafolder.
The GUI will guide you through choosing server or client mode and the initial configuration.
Tip
For detailed configuration options, including client-server pairing, and security settings, see the Configuration section below.
You can run Perpetua as a background service using the daemon mode:
# Run in daemon mode (you'll choose server or client later)
./Perpetua --daemon
# Automatically start as server
./Perpetua --daemon -s
# Automatically start as client
./Perpetua --daemon -cFor a full list of available commands and options:
./Perpetua --help
# or
./Perpetua -hPrerequisites
-
Python Environment:
- Python 3.11 or 3.12
- Poetry
-
GUI Framework:
- Node.js
- Rust
Platform-Specific Requirements
-
macOS:
- Xcode Command Line Tools
xcode-select --install
- Dependencies needed to build
uvloopbrew install automake brew install autoconf brew install libtool brew install ccache
- Xcode Command Line Tools
-
Windows:
- Microsoft C++ Build Tools: Install the "Desktop development with C++" workload from Visual Studio Build Tools
Note
Windows versions prior to Windows 10 (1803) require Microsoft Edge WebView2 Runtime to be installed manually.
The project includes both a build script and Makefile for convenient building.
-
Clone the repository:
git clone https://github.com/fizzi01/Perpetua.git cd Perpetua -
Install Python dependencies:
poetry install # or pip install . # or make install-build
-
Run the build:
poetry run python build.py # or make build
To work on Perpetua in development mode:
-
Install Python dependencies:
poetry install
-
Run in development mode:
python launcher.py
The launcher will automatically start the GUI in development mode and the daemon in background.
To run the daemon only:
python src/service/daemon.py
Note
Make sure all prerequisites and dependencies are installed before running launcher.py or daemon.py.
- Install GUI dependencies (optional, if you need to modify the GUI):
cd src-gui npm install
Advanced Build Options
# Debug build
poetry run python build.py --debug
# Skip GUI build (build daemon only)
poetry run python build.py --skip-gui
# Skip daemon build (build GUI only)
poetry run python build.py --skip-daemon
# Clean build artifacts before building
poetry run python build.py --clean# Debug build
make build-debug
# Build daemon only
make build-daemon
# Build GUI only
make build-gui
# Release build with clean
make build-release
# Clean build artifacts
make cleanManual Build Steps
For manual builds or troubleshooting, follow these steps:
Build GUI:
cd src-gui
npm install
cargo tauri buildBuild Daemon:
# From project root
poetry run python build.py --skip-guiPerpetua uses JSON to define client and server settings. Configuration file is automatically generated on first launch with sensible defaults, requiring minimal manual intervention for most use cases.
Configuration File Locations:
- macOS:
$HOME/Library/Caches/Perpetua - Windows:
%LOCALAPPDATA%\Perpetua
Server Configuration
The server configuration is managed automatically for basic setup (certificate generation, network binding). However, to accept client connections, you must manually add each client to the server configuration (or in Server > Clients section), specifying:
- Client IP or Hostname
- Screen Position: The spatial arrangement relative to the server (left, right, top, bottom)
This configuration defines how devices are arranged in your workspace for a seamless cursor transition between them.
Client Configuration
Clients can find servers in two ways:
Auto Discovery (Default):
- Scans the local network for available servers
- Works out of the box, no configuration needed
Manual Configuration:
- Set the server's hostname or IP address directly in the config file (or in the appropiate field in
Client > Options) - Use this when auto-discovery doesn't work or you have a static network setup
First Connection and OTP Pairing
When a client connects to a new server for the first time, it needs to get the server's TLS certificate to establish a secure connection. Here's how it works:
- The client starts the connection process
- On the
Server(which must be running and listening), generate an OTP through the GUI in theSecuritysection ("Secure connection" must be enabled!) - Enter the OTP on the
Clientwhen prompted (the GUI walks you through this) - If the certificate exchange succeeds and the client is in the server's allowlist, the connection is established
- Done!
The OTP is just for the initial certificate exchange. After that, connections (to the same server) authenticate automatically using the saved certificates.
Configuration File Structure
The configuration json file is split into three sections: server, client, and general.
streams_enabled controls what the server will manage on each connected client:
1: Mouse4: Keyboard12: Clipboard
log_level sets the logging verbosity:
0: Debug (detailed logs)1: Info (standard logs)
authorized_clients lists the clients that can connect. To add a new client, you only need to specify:
uid: Unique identifierhost_nameorip_address: Client's network addressscreen_position: Where the client is positioned relative to the server (left,right,top,bottom)
Other fields are automatically populated by the system.
The same field names have the same meaning as in the server section. The server_info block tells the client which server to connect to (leave it empty for auto-discovery or fill in the host field for manual configuration).
These parameters affect the application's internal behavior. Only modify them if you know what you're doing.
{
"server": {
"uid": "...",
"host": "0.0.0.0",
"port": 55655,
"heartbeat_interval": 1,
"streams_enabled": {
"1": true,
"4": true,
"12": true
},
"ssl_enabled": true,
"log_level": 1,
"authorized_clients": [
{
"uid": "...",
"host_name": "MYCLIENT",
"ip_address": "192.168.1.66",
"first_connection_date": "2026-02-02 19:09:00",
"last_connection_date": "2026-02-02 19:16:12",
"screen_position": "top",
"screen_resolution": "1920x1080",
"ssl": true,
"is_connected": true,
"additional_params": {}
}
]
},
"client": {
"server_info": {
"uid": "",
"host": "",
"hostname": null,
"port": 55655,
"heartbeat_interval": 1,
"auto_reconnect": true,
"ssl": true,
"additional_params": {}
},
"uid": "...",
"client_hostname": "MYSERVER",
"streams_enabled": {
"1": true,
"4": true,
"12": true
},
"ssl_enabled": true,
"log_level": 1
},
"general": {
"default_host": "0.0.0.0",
"default_port": 55655,
"default_daemon_port": 55652
}
}Note
When multiple Perpetua servers are detected on the network (on auto-discovery mode), the GUI will present a selection dialog allowing the user to choose the desired server.
Current Development Priorities:
-
Enhanced Platform Support
- Linux support
-
Feature Enhancements
- File transfers
- Advanced clipboard format support (including proprietary formats)