Local running daemon
Use a local running daemon for all the operations and convert the client to call the daemon with RPC to do its work. This way the daemon can simply run background tasks such as clipboard clearing and be available for syncs at a later point.