Device client
@remcp/remcp is the ReMCP device client. It pairs a computer with ReMCP, installs the first-party
local runtime, and runs the outbound-only agent that serves your MCP client's tool calls.
npm install --global @remcp/remcp@latest
remcp --version
remcp status
Pairing commands are generated in the workspace at https://remcp.site/app/connect. On Windows,
the browser shows a PowerShell bootstrap that needs no preinstalled system Node.js/npm/npx/winget;
it keeps the ReMCP runtime under %LOCALAPPDATA%\ReMCP. Generated one-time commands ultimately run
remcp connect --server … --code … --install, which stores a per-device credential, installs the
runtime, and registers a user service (systemd on Linux, LaunchAgent on macOS, Scheduled Task on
Windows).
Scan to pair with a phone
Run remcp connect in an interactive terminal to display a short-lived pairing code,
a link, and a compact QR that opens the same ReMCP approval page on your phone.
Sign in on your phone if needed, check the computer name, then explicitly approve.
The QR contains only the one-time code in the existing device URL: it does not
authorize the device on its own. The code expires and cannot be reused after approval.
If your terminal cannot display a QR, use the printed link or code. Add --no-qr
to suppress the QR; a custom non-HTTPS or cross-origin URL never gets one.
Commands
remcp start Run the device agent when no managed background service is already running
remcp status Show device/agent versions, update consistency and server reachability as JSON
remcp doctor Same report plus a real tool handshake with the local runtime, and which
macOS privacy folders (Desktop, Documents, Downloads, iCloud Drive) this
computer currently lets ReMCP use
remcp update Update the client and runtime, then restart the user service
remcp install Install or repair the user service
remcp uninstall Remove the user service
remcp uninstall --purge Remove the service and the global packages
remcp telemetry [status|on|off]
remcp godmode [status|on|off]
remcp --version
remcp status reports the configured/installed runtime, the managed-agent state, whether multiple local ReMCP installations are consistent, whether an update is required, server reachability, and the current usage-metrics state. It deliberately does not expose backend database/provider, relay topology, fleet size, or other operational internals. remcp doctor adds local runtime/filesystem diagnostics, so a support request can still be answered with one paste.
Unrestricted mode
remcp godmode on removes the runtime's own safety rails on this computer: file access is no
longer confined to the allowed roots, the configured command blocklist is ignored, and the
catastrophic-command guardrail is set to allow. remcp godmode off puts them back; remcp godmode status says which state you are in and where it comes from.
Two things it deliberately does not do:
- It is not reachable from a model.
set_config_value lists the settings a model may change and
this is not one of them; only a person at the computer (this command, REMCP_RUNTIME_UNRESTRICTED=1,
or unrestricted: true in ~/.config/remcp/runtime.json) can turn it on. That is what keeps a
prompt injection from becoming root.
- It does not make the agent root. Commands run as the user the agent runs as.
sudo is no longer
blocked, but the operating system still asks for a password unless your sudoers rules say otherwise;
a non-interactive command cannot type one. Nothing in this mode grants root by itself.
While it is on, get_runtime_info reports policy.unrestricted: true, so the model can see it and
say so instead of assuming the guardrails are still there. The same response includes
osPrivilegeBoundary, reporting effective user and NoNewPrivs on Linux, the user boundary on
macOS, and the actual Windows process integrity level detected via whoami.exe /groups.
If that command is unavailable, Windows elevation remains unknown; process integrity
is not equivalent to blanket administrator access.
The owner-managed Linux remcp-agent.service does not set NoNewPrivileges=true: sudo/polkit
may request normal OS approval instead of being blocked by systemd. remcp update also removes
this legacy line from older user units. A systemd daemon-reload does not change an already
running process; activating the new privilege boundary requires an agent restart, which can stop
running terminal sessions and child processes. This does not enable passwordless root.
On macOS, launchd runs as the signed-in user, and TCC controls Full Disk Access and Accessibility.
On Windows, the interactive scheduled task requests the highest privileges available to its
principal; UAC and the actual process token remain authoritative.
macOS folder permissions
macOS protects Desktop, Documents, Downloads and iCloud Drive. Until it is granted access, ReMCP
answers those writes with the errno the kernel returns:
EACCES: permission denied, mkdir '/Users/you/Desktop/…' — on a Mac this is not a ReMCP setting and
not an access-root problem. The tools cannot prompt for it either, because the agent runs as a
background service: open System Settings → Privacy & Security → Full Disk Access, add the node
binary that remcp doctor prints, and run remcp start. Folders outside those four need no new
permission, and remcp doctor reports the state of each one.
Updates
The agent checks the server on a stable per-device phase within a 30-minute cycle, rather than on every reconnect. New automatic installs are spread over a deterministic 24-hour window per version; older unattended clients are admitted through a shared Redis budget of 120 update hints per minute. The exact trusted client/runtime release pair is installed in the background and the managed service restarts to apply it. An explicit manual remcp update remains immediate. The updater resolves itself and the sibling runtime from the package that is actually running instead of depending on an interactive shell PATH. When a computer has several Node.js environments (for example NVM, FNM or a system installation), ReMCP updates only the canonical managed service packages. It does not upgrade Node.js, rewrite unrelated npm packages, or silently remove old ReMCP copies. remcp status counts package roots verified from the current CLI/service and bounded installation history; aliases and vanished paths are not extra installations. remcp doctor adds the exact read-only package roots, corresponding client/runtime versions, aliases and historical/cache classifications. These are physical package copies, not a count of running agents. Old copies are never automatically removed; verifying process, startup and script dependencies is required before an explicit owner-approved cleanup. A failed install is retried no more often than every thirty minutes and update-check failures are logged, so a broken release cannot become a silent install loop. remcp update does the same immediately; remcp auto-update off disables automatic checks.
Computer-use routing
When an AI host controls a visible application, ReMCP is designed for semantic targeting rather than screenshot-coordinate loops:
Accessibility/UI Automation → browser DOM/CDP → OCR → coordinates
Use computer_snapshot for an unfamiliar state, native ui_* tools for desktop applications, and browser_* tools for debuggable Chromium page content. browser_navigate action=new_tab can create the first page target when the debug browser has none. type_text with its default method=auto is for exact Unicode text in native/focused controls; use browser_action for Chromium page DOM text and keyboard for shortcuts/navigation/control keys. type_text method=keys emits physical keys and therefore follows the computer's active keyboard layout. Prefer wait_for_ui or browser_wait to fixed sleeps and use screenshot_region only when pixel/layout verification adds information. For PDF/DOCX/XLSX content, use the structured document tools before automating Office applications.
Screenshots
take_screenshot returns the screen of this computer as an image, and each desktop keeps its own
gate — ReMCP names the one that refused instead of printing a generic error:
- macOS wants Screen Recording for the binary that runs the tools (
remcp doctor prints its
path), then remcp start.
- Windows needs an unlocked interactive session; a locked or signed-out machine cannot be
captured.
- Linux on Wayland needs a capture backend:
grim on wlroots desktops (sway, hyprland), and
gnome-screenshot on GNOME — GNOME refuses the shell's own screenshot API to background processes
and grim cannot read a GNOME session. On X11, scrot, ImageMagick import or gnome-screenshot
all work.
- A machine with no graphical session (a server, a container) says so: there is nothing to capture.
A screenshot larger than the inline limit is saved on the computer, and the result says where it is
and how to fetch it in chunks.
What runs on your computer
- the agent (
remcp start), which holds the device credential and dials
wss://remcp.site/agent;
@remcp/runtime, spawned by the agent as an MCP
stdio server. The runtime executes the tools, opens no network connection, and is supervised: if it
exits, the agent restarts it with backoff and reports the restart instead of failing silently.
Configuration lives in ~/.config/remcp/config.json (client) and ~/.config/remcp/runtime.json
(runtime: allowed roots, blocked commands, output and write limits, and the usage-metrics switch).
Run npx @remcp/runtime --describe to print the runtime's effective configuration.
Usage metrics
Opt-out, self-hosted, and limited to tool names, timings, outcomes, error classes, and device health
samples. No paths, no commands, no arguments, no output, no third-party endpoint, no install ping.
Disable with remcp telemetry off or REMCP_RUNTIME_DISABLE_TELEMETRY=1; the switch applies to both
the client and the runtime, and restarts the service so it takes effect immediately.
Security
- Outbound-only connection; the machine never listens.
- One revocable credential per paired device, stored with restrictive permissions.
- Runtime metadata from a custom server is only accepted with an explicit
--trust-runtime.
- Revoking a device in the workspace closes the connection; the agent then stops retrying and says so
instead of reconnecting forever.
Encrypted AI access and desktop media
E2EE is opt-in, not the default. Ordinary hosted MCP and browser workspace commands remain protected by TLS (HTTPS/WSS), but the hosted service can process their payloads. Only independently enrolled clients using the HPKE bridge encrypt tool requests and results through the relay. Key availability (remcp e2ee status) is not evidence of an encrypted active request. Enable strict mode only after all required clients have passed a real encrypted round trip; otherwise TLS-only access will be refused.
Initialize the paired device with remcp e2ee init, independently verify its fingerprint, and approve each client locally with remcp e2ee trust --public-key <key> --fingerprint <fingerprint> --mode read --tools get_system_info (or --mode control). In the hardened source branch, read grants without an explicit owner allowlist expose no tools. Older released clients, including v0.2.263, do not yet enforce that requirement; update to an approved release containing the change before relying on it. Tool annotations are advisory, so review each authorized tool. remcp e2ee require rejects plaintext tool calls. Private identities stay in macOS Keychain, Windows CurrentUser DPAPI or Linux Secret Service.
On the computer running your AI application, use remcp e2ee client-init, remcp e2ee client-pin --device <UUID> --public-key <device key> --fingerprint <device fingerprint>, then remcp e2ee client-login --device <UUID>. Configure the AI application's stdio server to launch remcp mcp --device <UUID>. The local bridge decrypts the device's tools and results; the dedicated hosted relay forwards opaque HPKE packets. Ordinary hosted MCP clients still use their existing authorization and TLS. Even on the encrypted path, the authorized local AI host and the device can read decrypted tool data; relay routing metadata, packet sizes and timing remain observable. HPKE does not provide recipient-key-compromise forward secrecy or post-quantum security, and ReMCP does not claim FIPS 140-3 module validation.
For native WebRTC screen capture, run remcp desktop install --python <absolute path to trusted Python 3.11–3.14>. Vendor dependencies install into a private virtual environment with pinned wheel hashes. Screen capture requires explicit Start and operating system permission. Optional control is session-bound; Stop waits for worker exit and queued input completion. remcp desktop status reports availability and remcp desktop off disables media.
See the device-to-client encryption guide for enrollment, independent fingerprints, live verification, revocation, browser JavaScript delivery trust and cryptographic limitations. Check the installed release before relying on newly added controls.
Development
npm install
npm run check
npm test
License
MIT.