# Riftsh Cloud — Complete Technical & Integration Reference Canonical URL: https://riftsh.com/en Interactive Config Generator: https://riftsh.com/en/tools/mcp-config-generator Remote MCP Endpoint: https://riftsh.com/mcp ## 1. Cryptographic & Zero-Trust Architecture - **Static Single Binary (`riftsh`)**: 9.9 MB pure static Go executable (`CGO_ENABLED=0`), zero Node.js/Python runtime dependencies, running both locally via stdio and remotely over WSS. - **One-Line CLI Install**: `curl -fsSL https://riftsh.com/install.sh | sh` (macOS/Linux) or `irm https://riftsh.com/install.ps1 | iex` (Windows PowerShell). - **Device Pairing (RFC 8628 + PKCE S256)**: `riftsh remote --server https://riftsh.com` generates an 8-character pairing code approved at `/verify`. - **Ed25519 Proof-of-Possession**: Device private keys are stored locally with `0600` permissions (`~/.riftsh/device.json`). Every device-plane request (`/device/*`, `/ws/v1/device`) signs method, path, timestamp, nonce, and SHA-256 body hash. - **Zero-Plaintext Envelope (`X25519 + HKDF-SHA256 + AES-256-GCM`)**: Tool arguments and execution results are sealed with Authenticated Additional Data (AAD). Cloud databases never store plaintext source code or command output. - **Multi-Host `_device` Smart Routing**: When multiple computers are online, Riftsh injects `_device` into tool schemas and exposes `list_devices` so AI agents can route calls by hostname or device ID. ## 2. Built-In Local MCP Tools (32 Tools + Fleet `list_devices`) - **Terminal & Process Control (8)**: `exec_command`, `start_process`, `interact_with_process`, `read_process_output`, `force_terminate`, `list_sessions`, `list_processes`, `kill_process` - **Surgical Filesystem & Batch Edits (10)**: `read_file`, `read_file_outline`, `read_multiple_files`, `write_file`, `edit_block`, `apply_file_batch`, `create_directory`, `list_directory`, `move_file`, `get_file_info` - **Code Intelligence, Search & Checkpoints (9)**: `start_search`, `get_more_search_results`, `stop_search`, `list_searches`, `search_symbols`, `workspace_status`, `inspect_diff`, `list_checkpoints`, `restore_checkpoint` - **Guardrails, Network & Telemetry (5)**: `fetch_url`, `get_config`, `set_config_value`, `get_recent_tool_calls`, `get_usage_stats` - **Multi-Host Gateway Router**: `list_devices` (plus automatic `_device` selector on all tools when multiple machines are online) ## 3. Subscription Tiers & Quotas | Tier | Monthly | Yearly | Max Paired Hosts | Monthly Remote Calls | Max API Keys | | :--- | :--- | :--- | :--- | :--- | :--- | | Free (`free`) | $0 | $0 | 1 | 2,000 (Local stdio unlimited) | 1 | | Pro (`pro`) | $10 | $96 ($8/mo) | 5 | 50,000 | 10 | | Ultra (`ultra`) | $18 | $172.80 ($14.40/mo) | 25 | Unlimited | 50 | ## 4. Client Integration Configurations ### Claude.ai Web & Mobile (https://riftsh.com/en/docs/claude-ai) - Auth Mode: OAuth 2.1 + DCR - Config Location: `Claude.ai -> Settings -> Integrations -> Add Custom Connector` ``` https://riftsh.com/mcp ``` ### ChatGPT Connectors (https://riftsh.com/en/docs/chatgpt) - Auth Mode: OAuth 2.1 + DCR - Config Location: `ChatGPT -> Settings -> Connectors -> Custom MCP Server` ``` https://riftsh.com/mcp ``` ### Cursor IDE (https://riftsh.com/en/docs/cursor) - Auth Mode: Bearer API Key (rft_live_) - Config Location: `~/.cursor/mcp.json (macOS / Linux) · %USERPROFILE%\.cursor\mcp.json (Windows)` ``` { "mcpServers": { "riftsh-remote": { "url": "https://riftsh.com/mcp", "headers": { "Authorization": "Bearer rft_live_YOUR_SECRET_KEY" } } } } ``` ### Claude Code CLI (https://riftsh.com/en/docs/claude-code) - Auth Mode: Bearer API Key (rft_live_) - Config Location: `claude mcp add --transport http riftsh ...` ``` claude mcp add --transport http riftsh https://riftsh.com/mcp \ --header "Authorization: Bearer rft_live_YOUR_SECRET_KEY" ``` ### OpenCode CLI (https://riftsh.com/en/docs/opencode) - Auth Mode: Bearer API Key (rft_live_) - Config Location: `~/.config/opencode/opencode.jsonc (macOS / Linux) · %USERPROFILE%\.config\opencode\opencode.jsonc` ``` { "$schema": "https://opencode.ai/config.json", "mcp": { "riftsh": { "type": "remote", "url": "https://riftsh.com/mcp", "enabled": true, "headers": { "Authorization": "Bearer rft_live_YOUR_SECRET_KEY" } } } } ``` ### OpenAI Codex CLI (https://riftsh.com/en/docs/codex) - Auth Mode: Bearer API Key (rft_live_) - Config Location: `~/.codex/config.toml` ``` [mcp_servers.riftsh] url = "https://riftsh.com/mcp" http_headers = { "Authorization" = "Bearer rft_live_YOUR_SECRET_KEY" } ``` ### OpenClaw Agent (https://riftsh.com/en/docs/openclaw) - Auth Mode: Bearer API Key (rft_live_) - Config Location: `~/.openclaw/openclaw.json (or ~/.openclaw/mcp.json)` ``` { "mcpServers": { "riftsh": { "type": "streamable-http", "url": "https://riftsh.com/mcp", "headers": { "Authorization": "Bearer rft_live_YOUR_SECRET_KEY" } } } } ``` ### Windsurf IDE (https://riftsh.com/en/docs/windsurf) - Auth Mode: Bearer API Key (rft_live_) - Config Location: `~/.codeium/windsurf/mcp_config.json` ``` { "mcpServers": { "riftsh": { "serverUrl": "https://riftsh.com/mcp", "headers": { "Authorization": "Bearer rft_live_YOUR_SECRET_KEY" } } } } ``` ### Cline & Roo Code (https://riftsh.com/en/docs/cline) - Auth Mode: Bearer API Key (rft_live_) - Config Location: `VS Code -> Cline / Roo Code -> MCP Servers -> cline_mcp_settings.json` ``` { "mcpServers": { "riftsh": { "type": "streamableHttp", "url": "https://riftsh.com/mcp", "headers": { "Authorization": "Bearer rft_live_YOUR_SECRET_KEY" } } } } ``` ### Zed Editor (https://riftsh.com/en/docs/zed) - Auth Mode: Bearer API Key (rft_live_) - Config Location: `~/.config/zed/settings.json` ``` { "context_servers": { "riftsh-local": { "command": { "path": "riftsh", "args": [] } } } } ``` ## 5. Architecture & Tool Comparisons ### Riftsh vs Desktop Commander MCP: Zero-Node Go Binary + Remote Tunnel (https://riftsh.com/en/vs/desktop-commander) Desktop Commander pioneered local terminal and block-edit MCP tools on Node.js, but breaks under `nvm` PATH mismatches and cannot connect to Claude.ai Web or remote Linux servers. Riftsh ships 32 upgraded tools in one 9.9MB static Go binary—working both locally via stdio and remotely via zero-trust HTTPS. - Verdict: Choose Riftsh when you want a drop-in local stdio binary that never breaks on Node upgrades—plus instant `riftsh remote` OAuth 2.1 access from Claude.ai, ChatGPT, and multi-host IDEs. ### Riftsh Remote MCP vs Cursor Remote-SSH for Multi-Server Workflows (https://riftsh.com/en/vs/cursor-remote-ssh) Cursor Remote-SSH drops a heavy remote extension host onto your server, requires inbound TCP port 22, and locks each window to a single machine. Riftsh runs a 9.9MB agent outbound over port 443 and lets one Cursor chat orchestrate up to 25 hosts at once. - Verdict: Use Remote-SSH when editing a single cloud VM with direct SSH access; use Riftsh when traversing NAT/firewalls, debugging low-RAM nodes, or coordinating local code with remote staging/GPU servers in one agent session. ### Riftsh vs Cloudflare Tunnel (cloudflared) for Remote MCP (https://riftsh.com/en/vs/cloudflare-tunnel-mcp) Pointing `cloudflared` at a local HTTP port exposes unauthenticated MCP endpoints unless you build your own OAuth 2.1 + RFC 7591 authorization server—and decrypts all source code at the CDN edge. Riftsh ships MCP-native auth and end-to-end ciphertext out of the box. - Verdict: Use Cloudflare Tunnel for public web apps and webhooks; use Riftsh to connect local shells and codebases to AI agents with built-in OAuth 2.1 consent, Ed25519 PoP, and zero edge plaintext. ### Riftsh vs SSH Port Forwarding, FRP & ngrok for Remote MCP (https://riftsh.com/en/vs/ssh-ngrok-tunnel) Exposing a local MCP server over ngrok or `ssh -R` leaves TLS termination at the proxy in plaintext and lacks OAuth 2.1 consent required by Claude.ai and ChatGPT. Riftsh seals every tool call end-to-end. - Verdict: Use SSH/ngrok when exposing generic HTTP web previews; use Riftsh when granting cloud AI agents authenticated, zero-plaintext tool execution across one or more machines. ### Remote Streamable HTTP MCP vs Local Stdio MCP (Dual-Mode Go Engine) (https://riftsh.com/en/vs/local-stdio-mcp) Node.js stdio MCP servers break on `nvm` version switches and cannot reach cloud agents or remote Linux boxes. Riftsh ships one 9.9MB static Go binary that speaks both local stdio and encrypted remote MCP. - Verdict: Run `riftsh` bare for a zero-dependency local stdio drop-in, or `riftsh remote` to unlock cloud AI connectors and multi-machine orchestration. ### Application-Layer Cryptographic MCP vs L3 Mesh VPN for Cloud AI (https://riftsh.com/en/vs/vpn-tailscale-mcp) You cannot install a Tailscale or WireGuard daemon inside Anthropic's Claude.ai or OpenAI's ChatGPT cloud containers—and granting AI agents L3 network access violates least-privilege security. - Verdict: Keep WireGuard/Tailscale for human SSH and internal services; use Riftsh to expose strictly scoped, auditable, zero-plaintext MCP tools to external cloud AI platforms. ## 6. Troubleshooting & Rescue Guides ### How to Fix 'spawn npx ENOENT' & 'MCP Error -32000' Permanently (https://riftsh.com/en/guides/mcp-spawn-npx-enoent-fix) GUI apps on macOS, Linux, and Windows do not inherit interactive shell `PATH` variables from `nvm`, `fnm`, `volta`, or `mise`—causing Node-based `npx` MCP servers to crash immediately on launch. Switching to a static Go binary eliminates Node runtime issues completely. - Root Cause: Desktop applications are spawned by `launchd` (macOS) or Explorer (Windows) with a minimal system `PATH` (`/usr/bin:/bin`) before shell version managers initialize. Hardcoding `/Users/you/.nvm/versions/node/v22.x.x/bin/npx` breaks again the next time you upgrade Node or work on a clean remote server. ### How to Connect Claude.ai Web & Mobile to a Local Machine via MCP (https://riftsh.com/en/guides/claude-ai-connect-local-mcp-server) Claude Desktop supports local `stdio` commands, but Claude.ai Web and iOS/Android require a public HTTPS Streamable HTTP server implementing OAuth 2.1 + Dynamic Client Registration. Riftsh bridges your local machine in 60 seconds with end-to-end encryption. - Root Cause: Anthropic's cloud connectors initiate requests from Anthropic servers, verify TLS certificates, probe `/.well-known/oauth-protected-resource` and `/.well-known/oauth-authorization-server`, dynamically register an OAuth client via `POST /register`, and enforce S256 PKCE.