Control another computer by its 9-digit RockDesk ID, right from VS Code: open a terminal on it, mount its folders as local ones, forward its ports, and let AI agents (VS Code agent mode, Claude Code, Codex, Cursor, Trae) operate it through RockDesk's MCP server. Computers connect peer-to-peer when they can, through an end-to-end encrypted relay when they can't. No public IP, no SSH setup, no open ports.
First install the RockDesk app on both computers, this one and the one you want to control (Windows, macOS, Linux, Android):
rockdesk.io/#download · in China: rockdesk.cn/#download
Each computer shows its 9-digit ID in the app.
What you get
Click RockDesk in the status bar, or run the commands from the Command Palette:
- RockDesk: Open Remote Terminal: enter the ID and get a shell on the other computer in a VS Code terminal tab.
- RockDesk: Mount Remote Folder: a folder on the other computer appears as a local folder (a drive letter on Windows). Open it in a new window or add it to your workspace, then edit, search and build as usual. Unmount Remote Folder removes it.
- RockDesk: Forward a Port: a dev server, database or web UI on the other computer, or one it can reach, shows up at
127.0.0.1:<port> here. It keeps running in the background until you stop it.
- MCP for AI agents: on VS Code 1.101 or newer, the extension offers RockDesk's MCP server to agent mode by itself once RockDesk is installed. It has 18 tools: shell with real exit codes, background jobs, file copy, screenshots, mouse and keyboard, clipboard, port forwarding. RockDesk: MCP Setup for AI Agents copies the setup for Claude Code, Codex, Cursor, Trae or Windsurf.
The extension finds RockDesk's rds command line where the installers put it, even when it is not on your PATH.
MCP setup for other agents
Claude Code: claude mcp add -s user rockdesk -- rds mcp
Codex: codex mcp add rockdesk -- rds mcp
Cursor, Trae, Windsurf:
{ "mcpServers": { "rockdesk": { "command": "npx", "args": ["-y", "rockdesk-mcp"] } } }
VS Code, if you prefer .vscode/mcp.json to the automatic setup:
{ "servers": { "rockdesk": { "type": "stdio", "command": "npx", "args": ["-y", "rockdesk-mcp"] } } }
On Windows and macOS rds is usually not on PATH. Use its full path (C:\Program Files\rockd\rds.exe, /Applications/rockd.app/Contents/MacOS/rds) or the npx -y rockdesk-mcp launcher, which finds it. The MCP Setup command fills in the right path for you.
Who can connect
The computer being controlled decides: the same RockDesk account, its password, or someone there clicking Allow. Each feature (terminal, files, desktop, clipboard, port forwarding, …) can be switched off on that computer.
Settings
rockdesk.cliPath: full path to rds if it is somewhere unusual. Leave it empty to find it automatically.
中文说明
先在两台电脑上都安装 RockDesk(rockdesk.cn/#download),每台会有一个 9 位 ID。装好这个扩展后,点状态栏的 RockDesk,输入另一台电脑的 ID,就能:打开它的终端、把它的目录挂到本机(Windows 上挂成盘符)、把它的端口转到本机。VS Code 1.101 及以上版本的 agent 模式会自动接上 RockDesk 的 MCP(18 个工具);Claude Code、Codex、Cursor、Trae 的配置用「给 AI agent 配置 MCP」一键复制。VS Code 显示语言是中文时,扩展界面也是中文。
Links
License
This extension is MIT-licensed. The RockDesk app itself is proprietary.