backdesk

Install backdesk and Run backdesk Doctor

Install backdesk with one PowerShell line, then run backdesk doctor to check that your machine can create a hidden desktop and capture its windows. The installer runs the doctor for you.

One-Line Install

Paste this into PowerShell on Windows x64. No admin rights are needed.

irm https://raw.githubusercontent.com/pithpusher/backdesk/main/scripts/install.ps1 | iex

The script (source):

  1. Downloads backdesk-win-x64.zip and SHA256SUMS.txt from the latest GitHub release.
  2. Checks the zip's SHA-256 against SHA256SUMS.txt and stops without installing if they differ.
  3. Unpacks backdesk.exe into %LOCALAPPDATA%\Programs\backdesk.
  4. Adds that folder to your user PATH (not the system PATH).
  5. Runs backdesk doctor, then prints the lines that connect Codex and Claude Code.

Open a new terminal afterward so backdesk works by name. Run the same line again to update.

Options, passed by running the script as a script block:

& ([scriptblock]::Create((irm https://raw.githubusercontent.com/pithpusher/backdesk/main/scripts/install.ps1))) -Version v0.2.1 -NoPath

-Version picks a release tag, -InstallDir picks the folder, -NoPath skips the PATH change, -NoDoctor skips the doctor, and -Uninstall removes the folder and the PATH entry. Session data in %LOCALAPPDATA%\backdesk is kept on uninstall.

The exe is not code-signed. Read the script before you run it if you prefer; it is about 90 lines.

Manual Download

Download backdesk-win-x64.zip and SHA256SUMS.txt from the releases page. Check the hash, then unzip backdesk.exe to a folder you control:

Get-FileHash -Algorithm SHA256 .\backdesk-win-x64.zip

Build From Source

Requirements: the .NET SDK (10.0.303 was used) on Windows x64.

powershell -File scripts/package.ps1

The script publishes a self-contained single-file exe, zips it into artifacts/backdesk-win-x64.zip (about 45 MB) and writes artifacts/SHA256SUMS.txt. The test fixture is never shipped.

Below, <path-to> stands for the folder that holds backdesk.exe. After the one-line install you can type backdesk instead.

Run the Doctor

<path-to>\backdesk.exe doctor

The doctor checks the OS, that the input desktop can be read, that backdesk imports no host input API, that a hidden desktop can be created, that a window on it can be captured and is not black, and that posted text round-trips. It sends no input to your desktop. On the test machine every check passed and the report said "supported": "verified".

If a check fails, read recovery. When the repository is public, attach the whole output to a compatibility report issue.

First Session From the CLI

The CLI talks to a local daemon. The daemon starts on first use. A lease belongs to one connection, so use --hold to keep one connection open for several calls.

<path-to>\backdesk.exe ops
<path-to>\backdesk.exe call --hold

With --hold you write one JSON request per line on standard input and read one JSON reply per line:

{"id":"1","op":"session_start","args":{"allowedApps":["<path-to>\\app.exe"]}}

Examples has a full workflow with the actual replies. Stop the daemon with backdesk daemon-stop.

Connect an Agent

API reference, permissions and privacy, limitations.