Skip to content

WPS Writer & Cross-Platform Guide (Windows / Linux / macOS) ​

WPS Writer connects to WordGit's local Rust service through a JS add-in and fully supports commits, AI summaries, the commit graph, branches, merging returned drafts, comparing revisions, restoring history and remote collaboration. Word and WPS use exactly the same Git history repository format, so history moves seamlessly across editors and operating systems.

Installation (Windows) ​

  • Both Microsoft Word and WPS Writer installed: just run the Windows graphical installer WordGit-0.14.0-Setup.exe; it deploys both the Word and WPS add-ins in one go.
  • WPS Writer only:
    1. Download WordGit-0.14.0-windows.zip and extract it to a folder you will keep;
    2. Open PowerShell in the extracted folder and run the commands below (the first one downloads the lightweight MinGit automatically if Git 2.46+ is missing; when offline, add --archive <MinGit archive>):
powershell
.\bin\wordgit.exe git install
.\bin\wordgit.exe install --addin .\addin-wps

This deploys the WPS add-in, configures auto-start at login and starts the Rust core engine. After restarting WPS Writer, the WordGit tab appears at the top. To uninstall, run .\bin\wordgit.exe uninstall in the same folder (history data is kept).

Installation (Linux) ​

Requires WPS Writer Personal Edition 12.1+ and system Git.

Download WordGit-0.14.0-linux-x86_64.tar.gz from GitHub Releases, extract it and run:

sh
./install.sh

To use a custom history repository folder on first install:

sh
./install.sh --data-directory /full/path

Building and installing from source ​

sh
cargo build --release -p wordgit
./target/release/wordgit install --addin addin-wps

The install script automatically:

  1. Copies the add-in to ~/.local/share/Kingsoft/wps/jsaddons/WordGit_<version>/ and writes publish.xml (other existing add-ins are preserved);
  2. Installs the static core engine to ~/.local/share/WordGit/app/wordgit and configures auto-start at login (you can delete the extracted folder afterwards);
  3. Stops the old service and starts the new core engine.

Restart WPS Writer. On the first load, or the first load after an upgrade, WPS asks whether to trust the WordGit add-in; just click OK (no need to change the macro security level).

The tab doesn't appear on Linux because of missing system libraries

WPS's built-in WebView depends on the NSS, ATK, AT-SPI and ALSA libraries. If the WordGit tab doesn't appear and the WPS login page says the page failed to load, install these dependencies and try again:

sh
sudo apt install libnss3 libatk1.0-0 libatk-bridge2.0-0 libatspi2.0-0 libasound2

To uninstall, run ./uninstall.sh from the archive or ~/.local/share/WordGit/app/wordgit uninstall; existing history and review drafts are kept.

Installation (macOS) ​

Requires macOS 12+ (Apple Silicon and Intel are both supported), WPS Office for Mac (≥ 6.15, 12.1+ recommended), and Git (xcode-select --install or brew install git).

  1. Download and extract WordGit-0.14.0-macos-universal.tar.gz from GitHub Releases;
  2. Save your documents and quit WPS Office completely (⌘ + Q);
  3. Double-click Install.command in the extracted folder, or run in a terminal:
sh
./install.sh
  1. Reopen WPS Office and click OK when it first asks whether to trust the WordGit add-in.

The installer automatically deploys the add-in and core engine into WPS's App Sandbox container and registers a LaunchAgent for the current user (~/Library/LaunchAgents/com.qth1225.wordgit.plist) to start at login and keep running in the background.

macOS details

  • System security block: if macOS says the app "can't be opened because the developer cannot be verified", using Install.command removes the quarantine attribute automatically; if you run things manually in a terminal, first run xattr -dr com.apple.quarantine <extracted folder>.
  • Keyboard shortcuts: on macOS, press ⌘ + Enter to commit quickly, and hold ⌘ to select two past versions in the commit graph for comparing or merging.
  • Checking the service: run curl http://127.0.0.1:47821/api/v1/ping or launchctl print "gui/$(id -u)/com.qth1225.wordgit" in a terminal.
  • Uninstalling: double-click Uninstall.command or run ~/Library/Containers/com.kingsoft.wpsoffice.mac/Data/WordGit/app/wordgit uninstall.

Data folders by platform ​

OSDefault runtime and data folder
Windows%LOCALAPPDATA%\WordGit (shared with the Word version)
Linux~/.local/share/WordGit
macOS~/Library/Containers/com.kingsoft.wpsoffice.mac/Data/WordGit (inside the WPS sandbox container, so WPS has permission to open previews and merged drafts)

On every platform you can view or relocate the repositories history repositories under WordGit → Settings → Storage; sessions, logs, service.json and settings.json (the shared settings) stay in the runtime folder. You can also set the runtime folder with the environment variable WORDGIT_HOME and the Git path with WORDGIT_GIT.

Settings shared with the Word version ​

The WPS Settings window has the same pages as in Word (General & Author, AI Summary, Storage, Updates & Diagnostics). Settings are stored by the WordGit kernel, so Word and WPS on the same computer share them. The AI Summary API key is encrypted by the kernel (DPAPI bound to the current user on Windows; a settings file readable only by the current user on Linux / macOS), and the WPS add-in no longer stores the key in plain text. AI settings and the beta option saved by older WPS versions are migrated automatically.

Export Diagnostics is available on the Updates & Diagnostics page of Settings and in the "About WordGit" window; if WPS cannot open the folder directly, it copies the package's path to the clipboard.

Differences from the Word version ​

  • Generating merged drafts: WPS uses its own built-in document comparison engine to produce tracked changes. When remote histories diverge, it asks whether to prefer the local or the remote content for conflicts; some local branch merges also open an extra "changes on the current branch" comparison draft for reference during review.
  • Switch Branch / Restore / Pull / Finish Merge: the add-in first closes the current document, the local Rust service performs the atomic file replacement and branch update, and then the document is reopened automatically; if anything crashes midway, the service recovers automatically the next time it starts.
  • File security marks: on Windows, cloned documents get a "came from the internet" mark; Linux and macOS have no such mechanism.

Command-line tool (CLI) ​

The bundled wordgit binary also lets you work with or troubleshoot any document's history from a terminal:

sh
wordgit status thesis.docx            # Show the current branch, commits and remote status (JSON)
wordgit log thesis.docx               # Show the commit history
wordgit commit thesis.docx -m "message"  # Create a commit directly
wordgit call branch/create '{"document":"/path/thesis.docx","name":"review"}'

wordgit call can invoke any HTTP endpoint of the local service directly, which makes it ideal for scripting and troubleshooting.

Released under the GPL-3.0-only license · WordGit brings Git version control to local documents · Disclaimer