/remoting - Mirror Claude Code in a Browser
Expose the current Claude Code session as a public web terminal. Anyone with the URL can view and interact with the terminal from their browser.
When to Use
The user says something like:
- - "Share my terminal"
- "Mirror my Claude session"
- "Let someone watch my screen"
- "Remote access to this terminal"
- "Open in browser"
Quick Start
Install and launch:
CODEBLOCK0
Or run without installing:
CODEBLOCK1
With Options
CODEBLOCK2
What the User Sees
- 1. Terminal output shows:
- Local URL:
http://localhost:7681?session=<uuid>
- Public URL:
https://xxxxx.lhr.life?session=<uuid>
- 2. Browser opens automatically with the public URL
- Terminal output from Claude Code appears in the browser in real-time
- Browser users can type and interact with the session
Security
- - Random session UUID per start — only URL holders can connect
- 5-second auth timeout for new connections
- All output is cached so new viewers see full history
Stopping
Press Ctrl+C in the terminal, or the user can type /exit.
Troubleshooting
| Issue | Solution |
|---|
| INLINECODE4 not found | Install from https://nodejs.org/ |
| Tunnel fails |
Falls back to localhost URL; check SSH port 22 |
| Port in use | Use
--port to pick another |
/remoting - 在浏览器中镜像Claude Code
将当前的Claude Code会话公开为一个Web终端。任何拥有该URL的人都可以从浏览器查看并与终端交互。
使用时机
当用户说类似以下内容时:
- - 分享我的终端
- 镜像我的Claude会话
- 让别人看我的屏幕
- 远程访问这个终端
- 在浏览器中打开
快速开始
安装并启动:
bash
如果尚未安装
npm install -g @remotego/remotego
开始镜像Claude Code
remotego claude
或者无需安装直接运行:
bash
npx @remotego/remotego claude
带选项运行
bash
自定义端口
remotego claude --port 9000
自定义隧道域名(localhost.run)
remotego claude --domain myterm.localhost.run
自定义工作目录
remotego claude --cwd ~/my-project
用户看到的内容
- 1. 终端输出显示:
- 本地URL:http://localhost:7681?session=
- 公共URL:https://xxxxx.lhr.life?session=
- 2. 浏览器自动打开公共URL
- Claude Code的终端输出实时显示在浏览器中
- 浏览器用户可以输入并与会话交互
安全性
- - 每次启动生成随机会话UUID——只有持有URL的人才能连接
- 新连接有5秒认证超时
- 所有输出都会被缓存,新查看者可以看到完整历史
停止
在终端中按Ctrl+C,或者用户可以输入/exit。
故障排除
| 问题 | 解决方案 |
|---|
| 找不到node | 从https://nodejs.org/安装 |
| 隧道失败 |
回退到localhost URL;检查SSH端口22 |
| 端口被占用 | 使用--port选择其他端口 |