rdp-cli
Connect Your AI Agent to a Real Desktop in One Command
An AI agent can write code and run terminal commands, but many business workflows still require a graphical desktop. Excel, ERP software, legacy Windows applications, Linux GUI tools and Android apps cannot always be automated through an API.
With rdp-cli, an AI agent can connect to an authorized remote desktop through a command-line workflow. It can capture screens, click controls, type text, transfer files and verify results without taking over the local computer.
Can You Connect an AI Agent to a Real Desktop with One Command?
Yes. After the target device is configured and authorized, one connect command creates a persistent remote session.
One command creates the session; it does not complete the entire task. The agent still needs to observe the screen, act and verify the result.
Connect
→ Capture the current screen
→ Perform one action
→ Capture the screen again
→ Verify the result
What Is an AI Agent CLI?
An AI agent CLI lets an AI agent interact with external systems through structured command-line operations.
rdp-cli supports Windows RDP, existing VNC desktops, Linux applications through X11 and SSH, and Android devices through ADB over USB or Wi-Fi. Wayland desktops can be accessed through an existing compatible RDP or VNC server. See the rdp-cli feature overview.
Connect to Windows with One Command
Enable Remote Desktop on the target Windows computer and authorize the account first.
.
dp-cli.exe connect --host 192.0.2.20 --user USER --password-stdin
Pass the password through standard input, replace the host and user with real values, and save the returned session ID as SESSION. Do not place the password directly in shell history. The Quick Start Guide includes macOS and Linux examples.
Observe, Act and Verify
Capture the current screen before sending input:
.
dp-cli.exe screenshot --session SESSION --out .efore.png
Use the latest observation to perform one action:
.
dp-cli.exe click --session SESSION --desktop --x X --y Y --observation OBSERVATION
Then capture the result:
.
dp-cli.exe screenshot --session SESSION --out .after.png
OBSERVATION, X and Y are placeholders. Use values from the latest screenshot. Do not reuse an observation after reconnecting or after human takeover.
A successful click only confirms that input was sent. Check for a confirmation message, changed status, new record or generated file. See the command reference.
CLI or MCP?
rdp-cli supports direct CLI control and includes a built-in MCP interface:
.
dp-cli.exe mcp stdio
Use the CLI for scripts, scheduled jobs, CI and connection troubleshooting. Use MCP when an AI host already supports MCP and should call desktop actions as tools. Both interfaces can work with the same persistent session.
For diagnostics:
.
dp-cli.exe doctor --session SESSION
MCP does not replace the remote session. rdp-cli still handles the connection, screen capture, input dispatch and session state.
Transfer Files
For supported sessions, upload a file or folder:
.
dp-cli.exe files upload --session SESSION --local .project --path project
Check the returned transfer identifier:
.
dp-cli.exe files status --session SESSION --transfer-id TRANSFER_ID
Download the completed result:
.
dp-cli.exe files download --session SESSION --path project\result.xlsx --local .\result.xlsx
RDP file transfer requires server-side drive redirection. X11 uses the configured SFTP root, Android uses its session directory and VNC does not provide the same native file channel.
Let a Human Take Over
Normal commands do not require a viewer. Open the same session when a person needs to inspect or control it:
.
dp-cli.exe watch --session SESSION --viewer web
A human can pause input, handle a security prompt, correct a dialog and return control to the agent. After takeover, the agent must capture a fresh screenshot before continuing.
Limitations
rdp-cli does not create a cloud computer automatically and does not include an AI model. You need an existing authorized target, suitable credentials and an agent that can interpret screenshots.
GUI automation is not fully deterministic. Fresh observations and result verification are still required.
FAQ
What is an AI agent CLI?
It is a command-line interface that lets an AI agent connect to external systems and perform structured operations.
Can an AI agent control Windows without opening a viewer?
Yes. rdp-cli can connect and send commands without opening a local desktop window.
Does rdp-cli support MCP remote desktop workflows?
Yes. It includes a built-in MCP stdio interface and can also be used directly through the CLI.
Is computer use MCP the same as RDP?
No. MCP is an interface for calling tools; RDP is a remote desktop protocol. rdp-cli connects an MCP-compatible agent to an RDP session.
Does one command complete a full desktop task?
No. One command creates the session. The agent must still observe, act and verify.
Final Takeaway
A practical AI agent CLI should connect the agent to the real environment where the work happens.
With rdp-cli, one connection command creates a session for Windows, Linux, VNC or Android workflows. The agent can then observe the screen, perform one action, verify the result and let a human take over when needed.
Download rdp-cli or read the Quick Start Guide.