Adding a server

Run reviews on your own machine over SSH, install and pair the DiffNode server from the app, keep it updated, and decide whether it may publish.

A server is another environment: DiffNode running without a window on a machine you own. The desktop installs it over SSH and shows its projects next to yours. Reviews on a server keep running when you close the desktop.

What the server needs

  • A macOS or Linux machine you can reach with ssh from this computer, with an x64 or arm64 processor.
  • Node 24. The server package does not include it.
  • Unix socket forwarding allowed by the machine's SSH server. It is allowed by default in OpenSSH.
  • Git logins on the server. Sign in to gh, glab or tod in a terminal on the server, under the account that runs DiffNode. See Connect a Git host.
  • An AI agent on the server. Codex or Claude Code signed in on the server, or Antigravity set up from the app. API-key integrations do not run on a server.

On this computer, DiffNode needs your system ssh and an OS keychain to keep the session token. Without a keychain, it cannot pair.

Add the server

  1. Open Environments at the bottom of the left panel.
  2. Choose Add SSH environment.
  3. Pick how to reach the server:
    • SSH alias: start typing an alias from your ~/.ssh/config and pick it. Its options, such as the key and jump host, apply.
    • Host, user and port: enter the host, and optionally a user and port.
  4. Optionally enter a name, then choose Add environment.

Adding installs nothing. DiffNode uses your system ssh and its configuration and never changes them; ssh verifies host keys. Passwords and new host keys are asked in a separate window. On Windows DiffNode cannot ask, so use a key or an SSH agent.

Install the server

  1. On the environment card, choose Install server.
  2. DiffNode downloads the recommended release, without any credentials, and checks its checksum.
  3. The confirmation shows the destination, the source and the SHA-256 checksum. Nothing is written to the server before you choose Install.

The server checks the checksum again before the install counts as complete. Other version… offers other releases.

Connect and pair

Choose Connect. The desktop starts the server, or takes over a running one, and opens an SSH tunnel. On the first connection it pairs: a one-time code is exchanged for a session token, which stays in this computer's keychain.

The server's projects then appear in the left panel under its name, with icons for its AI and Git integrations and Add repository. A server adds repositories only from a Git host.

The session gets every permission the server offers: Read, Operate reviews, Change settings and Publication. The environment card lists them.

If the card asks you to Pair again, the session was rejected or lacks a permission. Pairing again keeps the server's projects and runs.

Set up AI on the server

Open the server's AI integrations. For Codex or Claude Code, sign in in a terminal on the server; the card shows the command to run there. If the CLI is missing, Install Codex… or Install Claude Code… installs it on the server after you confirm. Antigravity is set up and signed in from the app; see What runs on the server.

Additional Codex or Claude Code accounts on a server are added with diffnode instances in a terminal on the server.

Update the server

Update server on the environment card installs the recommended release; the Updates dialog in the sidebar lists each server too. A running review is never interrupted: the new version waits until nothing is running. After an update you started from the app, the queue keeps running; after any other restart it stays paused until you resume it.

Who publishes a server's reviews

Server may publish with its own Git login is off by default. Turn it on in Edit environment, under Publication, and choose Save. Your session needs the Publication and Change settings permissions; a session paired before this permission existed gets it with Pair again. The card then shows Server allowed.

  • Allowed: the server publishes its reviews with its own Git login, but only to repositories that login can provably write to. It checks this again before every write.
  • Not allowed, or not provable: this computer publishes with its own Git login, after you confirm. Before the first publication to a repository it asks, and Allow publication approves that repository for this server. The approval stays on this computer; Revoke it on the Environments screen.

On OneDev, the server cannot see what a token may do. Use Confirm owner permissions on the server's OneDev card if its tod token was created with owner permissions.

Automatic publishing of a server's reviews works only while the server may publish; this computer never publishes them automatically.

Disconnect or remove

  • Disconnect closes the SSH tunnel. Projects, runs and sign-ins stay on the server. Stop the server also stops it, but only a server this desktop started, and never while a review runs.
  • Remove forgets the environment, its session and the approved publication targets on this computer. With Contact the server (on by default) it also ends the session on the server and stops a server this desktop started. Projects, runs and the installed server stay on the host.

If something does not connect, see Troubleshooting.