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-Anything | backdesk | |
|---|---|---|
| How it works | A 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 covered | Apps with a published tool in its catalog, or with source code to build one from | Any Windows desktop app that accepts posted input, including closed-source apps |
| Good at | Fast, repeatable steps with exact output | Dialogs, GUI-only steps, apps with no API, checking what the app shows |
| Limits | Covers only what each tool exposes | Slower; apps that read raw input or poll key state may not respond (limitations) |
| Platform | Python 3.10 or later, several operating systems | Windows x64 |
| License | Apache-2.0 | Apache-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
- Install backdesk with the one-line installer on the install page, then connect it to Codex or Claude.
- 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:
- With a CLI-Anything tool for LibreOffice: create and edit the document through the tool, then check the saved file on disk. backdesk is not needed.
- Without one: launch Calc in a backdesk session, type the rows, confirm keeping the CSV format in the "Non-standard file format" dialog, then check the file on disk. This is the LibreOffice example that was run.
- Mixed: build the file with the CLI tool, then open it in a backdesk session and
observeit when a person or a later step needs to see how it renders.