360 Secure SkillHub
360 安全技能中心

Remotego

核心功能是将本地CLI工具(如bash、Python、Vim等)通过隧道转换为带公网URL的Web终端,支持实时协作。典型场景:远程分享终端会话、浏览器访问CLI工具、多人实时协作、本地CLI公网暴露。通过npm安装,运行时指定CLI命令及参数,自动生成公网链接并打开浏览器,仅持链接者可访问会话。

topcheer
topcheer
热度 37.34
最近更新 2026-05-18 12:38:20
分类:自动化依赖:代码执行 / 第三方 API应用场景:自动化脚本 / DevOps

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add remotego
Metadata
name
remotego
description
Expose any CLI tool as a public web terminal via tunnel. Mirror bash, vim, python, node, or any command in a browser for remote access and collaboration.
version
1.1.0
metadata
{"openclaw":{"requires":{"bins":["node"]},"emoji":"🌐","homepage":"https://github.com/topcheer/claude-remoting","os":["macos","linux"]}}

remotego - Expose Any CLI as a Public Web Terminal

Mirror any CLI tool in a browser with a public URL. Share your terminal with anyone over the internet.

When to Use

The user wants to:

  • Share their terminal session with someone remotely
  • Access a CLI tool from a browser
  • Collaborate on a terminal session in real-time
  • Expose a local CLI to a public URL

How to Use

remotego is installed globally via npm. Run it with any command:

remotego <command> [command-args...] [options]

Quick Examples

Goal Command
Mirror Claude Code remotego claude
Mirror bash remotego bash
Mirror Python REPL remotego python3 -i
Mirror vim remotego vim
Mirror Node.js REPL remotego node
Custom port remotego --port 9000 bash
Custom tunnel domain remotego --domain myterm.localhost.run bash
Pass flags to command remotego -- git log --oneline

Options

Flag Description Default
--port <port> Local HTTP port 7681
--cwd <dir> Working directory Current dir
--domain <domain> Custom localhost.run domain Random
--help, -h Show help

Install First (if not installed)

npm install -g @remotego/remotego

Or use without installing:

npx @remotego/remotego bash

What Happens

  1. Spawns the command in a PTY (pseudo-terminal)
  2. Starts a local HTTP server with xterm.js browser terminal
  3. Creates a public tunnel via localhost.run
  4. Opens the browser automatically with a session URL

Security Model

  • A random session UUID is generated on each start
  • The session ID is embedded in the URL — only URL holders can connect
  • Clients must authenticate within 5 seconds of connecting

Stopping

Press Ctrl+C in the terminal running remotego.

Troubleshooting

Issue Solution
node not found Install from https://nodejs.org/
Tunnel fails Check if SSH port 22 is blocked; falls back to localhost
Port in use Use --port to specify a different port
Browser doesn't open Manually open the URL shown in terminal output