backdesk

Use backdesk With CLI-Anything

backdesk and CLI-Anything solve different halves of the same problem, so an agent can use both. CLI-Anything gives an app a command-line tool that calls the app's engine directly, with no window. backdesk drives the app's real windows on a hidden Windows desktop. Use the CLI-Anything tool when one exists and covers the step. Use backdesk for everything else.

This page was written from CLI-Anything's README and harness guide. The combination below has not been run as a test.

How They Differ

CLI-Anythingbackdesk
How it worksA Python CLI per app that calls the app's backend (for example LibreOffice in headless mode)Posted window messages and UI Automation calls to the real app windows, on a hidden desktop
Apps coveredApps with a published tool in its catalog, or with source code to build one fromAny Windows desktop app that accepts posted input, including closed-source apps
Good atFast, repeatable steps with exact outputDialogs, GUI-only steps, apps with no API, checking what the app shows
LimitsCovers only what each tool exposesSlower; apps that read raw input or poll key state may not respond (limitations)
PlatformPython 3.10 or later, several operating systemsWindows x64
LicenseApache-2.0Apache-2.0

Routing Rule for Agents

Put these lines in your agent's instructions (AGENTS.md for Codex, CLAUDE.md or a rules file for Claude Code):

Desktop apps: CLI-Anything first, backdesk for the GUI.
1. If a CLI-Anything tool exists for the app and covers the step, use it.
2. Otherwise use the backdesk MCP tools on a hidden desktop.
3. After a CLI-Anything step, use backdesk observe only when the result must be seen on screen.
4. Never drive the user's own desktop. On background_input_unavailable, hand off to the user.
5. Check the outcome on disk or in the app, not only the tool's reply.

Set up Both

  1. Install backdesk with the one-line installer on the install page, then connect it to Codex or Claude.
  2. Install the CLI-Anything hub and the tools for the apps you use, as its README describes:
pip install cli-anything-hub
cli-hub install <app>

Example Split

Filling a LibreOffice Calc sheet and saving it as CSV:

Compare, examples, limitations.