<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Weerocks</title>
    <description>The latest articles on DEV Community by Weerocks (@weerocks).</description>
    <link>https://dev.to/weerocks</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4139393%2Fa69c0811-b132-4ac3-b28c-7608d620ade0.png</url>
      <title>DEV Community: Weerocks</title>
      <link>https://dev.to/weerocks</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/weerocks"/>
    <language>en</language>
    <item>
      <title>Give Your AI Agent Eyes and Hands on a Remote Desktop with rdp-cli</title>
      <dc:creator>Weerocks</dc:creator>
      <pubDate>Thu, 22 Oct 2026 07:35:57 +0000</pubDate>
      <link>https://dev.to/weerocks/give-your-ai-agent-eyes-and-hands-on-a-remote-desktop-with-rdp-cli-182e</link>
      <guid>https://dev.to/weerocks/give-your-ai-agent-eyes-and-hands-on-a-remote-desktop-with-rdp-cli-182e</guid>
      <description>&lt;p&gt;AI agents are good at generating text and calling APIs. But many real-world tasks still require interacting with graphical applications: editing a video, checking a spreadsheet, using legacy Windows software, or operating an Android phone.&lt;/p&gt;

&lt;p&gt;&lt;code&gt;rdp-cli&lt;/code&gt; provides a simple command-line workflow for letting an AI agent control RDP and VNC desktops—and verify every action through screenshots.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Install rdp-cli
&lt;/h2&gt;

&lt;p&gt;On Linux x86_64, download the executable and make it runnable:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nb"&gt;chmod &lt;/span&gt;u+x ./rdp-cli-linux-x86_64
./rdp-cli-linux-x86_64 &lt;span class="nt"&gt;--help&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;No additional runtime or administrator access is required. For Windows and macOS, see the &lt;a href="https://rdp-cli.com/en/docs/quick-start/" rel="noopener noreferrer"&gt;quick start guide&lt;/a&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Connect to a Windows RDP session
&lt;/h2&gt;

&lt;p&gt;Make sure RDP is enabled on the target computer. Then connect with your username and password:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;&lt;span class="nv"&gt;IFS&lt;/span&gt;&lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;read&lt;/span&gt; &lt;span class="nt"&gt;-r&lt;/span&gt; &lt;span class="nt"&gt;-s&lt;/span&gt; &lt;span class="nt"&gt;-p&lt;/span&gt; &lt;span class="s1"&gt;'Password: '&lt;/span&gt; rdp_password
&lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'\n'&lt;/span&gt;
&lt;span class="nb"&gt;printf&lt;/span&gt; &lt;span class="s1"&gt;'%s'&lt;/span&gt; &lt;span class="s2"&gt;"&lt;/span&gt;&lt;span class="nv"&gt;$rdp_password&lt;/span&gt;&lt;span class="s2"&gt;"&lt;/span&gt; | &lt;span class="se"&gt;\&lt;/span&gt;
  ./rdp-cli-linux-x86_64 connect &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--host&lt;/span&gt; 192.0.2.20 &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--user&lt;/span&gt; USER &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--password-stdin&lt;/span&gt;

&lt;span class="nb"&gt;unset &lt;/span&gt;rdp_password
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The command returns a session identifier. Save it as &lt;code&gt;SESSION&lt;/code&gt; for the next steps. The password is passed through standard input rather than being written directly into the command line.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Let the agent see the desktop
&lt;/h2&gt;

&lt;p&gt;Before taking an action, capture the current screen:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./rdp-cli-linux-x86_64 screenshot &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--session&lt;/span&gt; SESSION &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--out&lt;/span&gt; ./before.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;An AI agent can inspect &lt;code&gt;before.png&lt;/code&gt;, locate a button or input field, and decide what to do next. This observe → act → observe pattern helps the agent verify the current state after every action.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Click, type, and verify
&lt;/h2&gt;

&lt;p&gt;After locating an input field at coordinates &lt;code&gt;X, Y&lt;/code&gt;:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./rdp-cli-linux-x86_64 click &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--session&lt;/span&gt; SESSION &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--desktop&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--x&lt;/span&gt; X &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--y&lt;/span&gt; Y &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--observation&lt;/span&gt; OBSERVATION

./rdp-cli-linux-x86_64 screenshot &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--session&lt;/span&gt; SESSION &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--out&lt;/span&gt; ./focused.png

./rdp-cli-linux-x86_64 &lt;span class="nb"&gt;type&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--session&lt;/span&gt; SESSION &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--text&lt;/span&gt; &lt;span class="s2"&gt;"Remote task completed."&lt;/span&gt; &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--observation&lt;/span&gt; NEW_OBSERVATION

./rdp-cli-linux-x86_64 screenshot &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--session&lt;/span&gt; SESSION &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--out&lt;/span&gt; ./after.png
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The agent can inspect the final screenshot instead of assuming the command succeeded.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. Watch or take over when needed
&lt;/h2&gt;

&lt;p&gt;A person can open the same session in a native window or browser:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;./rdp-cli-linux-x86_64 watch &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--session&lt;/span&gt; SESSION &lt;span class="se"&gt;\&lt;/span&gt;
  &lt;span class="nt"&gt;--viewer&lt;/span&gt; window
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;The viewer starts in read-only mode and supports pausing agent input, taking control, and handing the session back.&lt;/p&gt;

&lt;h2&gt;
  
  
  Why this workflow matters
&lt;/h2&gt;

&lt;p&gt;With rdp-cli, an AI agent can work with existing desktop applications and remote environments without requiring a new API integration for every tool.&lt;/p&gt;

&lt;p&gt;The basic loop is simple:&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight plaintext"&gt;&lt;code&gt;Connect → Screenshot → Act → Screenshot → Verify
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Try the complete setup at &lt;a href="https://rdp-cli.com/" rel="noopener noreferrer"&gt;rdp-cli.com&lt;/a&gt;.&lt;/p&gt;

&lt;p&gt;Always use authorized computers and trusted networks. Review the connection and certificate settings before using rdp-cli in production.&lt;/p&gt;

</description>
      <category>automation</category>
      <category>remotework</category>
      <category>ai</category>
      <category>aiagents</category>
    </item>
  </channel>
</rss>
