v0.1.20 · MIT 开源 · macOS / Windows / Linux / Android / iPhone Duo MIT Open Source · macOS / Windows / Linux / Android / iPhone Duo
把另一台电脑的终端,
装进这一个窗口。
Another computer's terminal,
right in your window.
输入 9 位设备码和配对密码,对方点允许就能连上。直连优先、端到端加密,认得 Claude、Codex 等 20 种命令行 AI。 Enter a 9-digit device code and pairing password. Once approved, run shells and 20 CLI AIs on that machine — direct first, end-to-end encrypted.
38pub async fn login(State(db): State<Pool>, req: Json<Creds>) -> Result<Token> { 39 let sess = db.find_session(&req.token).await?; 40 let Some(sess) = sess.filter(|s| !s.is_expired()) else { 41 return Err(AuthError::SessionExpired); 42 }; 43 let user = db.load_user(sess.user_id).await?; 44 Ok(Token::issue(user)) 45}
画面仅走直连,静止时不发流量;两边剪贴板按需互通。Direct-only video with zero idle traffic and on-demand clipboard sync.
终端里按住 ⌘/Ctrl 点 localhost 链接也会自动转发并打开。⌘/Ctrl-click any localhost link in the terminal to forward and open it.
直连优先,端到端加密Direct first, end-to-end encrypted
先试 IPv6 直连与 IPv4 打洞,不通才走中继;同一局域网自动发现,免设备码。牵线和中继都读不到任何内容。IPv6 direct, then IPv4 hole punching, relay only as fallback. LAN peers appear automatically with no code needed; relays see only ciphertext.
会话不断,翻历史不卡Persistent sessions, local scrollback
基于 tmux / psmux,断网或关掉软件任务照跑,手机和电脑还能同时看同一个终端;历史缓存在本机,翻页选字不走网络。Backed by tmux/psmux so sessions outlive disconnects and can be shared with mobile. Local scrollback makes scrolling and selection instant.
认得 20 种命令行 AIKnows 20 command-line AIs
识别 Claude Code、Codex、Gemini CLI、Cursor 等的干活、等待确认与账号额度,需要你时弹窗提醒;底部输入框支持中文整句发送。Tracks working, approval and quota states across Claude Code, Codex, Gemini CLI and 17 more, with desktop alerts and a local prompt box.
原地改代码、端口转发与借网In-place editor, ports & proxy lending
内置 Monaco 编辑器直接改对方文件并防冲突;支持正反向端口转发与一键借网,让对方终端直接走本机代理。Edit remote files in Monaco with conflict checks, forward ports in either direction, or lend your local proxy to the remote shell.
并发传文件、显卡级控屏8-stream files & GPU screen control
文件拖进终端 8 路并发 + BLAKE3 续传并自动填入路径;macOS / Windows 远程桌面全程显卡硬件编解码,剪贴板全格式互通。Drop files to send over 8 BLAKE3-verified streams; control macOS/Windows screens with GPU H.265/WebCodecs and shared clipboard.
原生移动端与 iPhone Duo 折叠屏Native mobile & iPhone Duo foldable
iOS 液态玻璃原生 App 与 Android / 鸿蒙客户端,扫码即连。已适配最新 iPhone Duo,三种开合姿态自动切换布局。Native iOS (Liquid Glass), Android and HarmonyOS apps with QR pairing and automatic posture layouts for iPhone Duo.
iOS 27.1+ · Liquid Glass · Android / HarmonyOS
适配最新 iPhone Duo,
合上、半折、展开都顺手。Built for iPhone Duo.
Folded, half-folded, or wide open.
基于系统折痕区域与自适应分栏重构手机端体验:无需手动切模式,随设备开合即时变换界面,电脑端扫一下二维码就能接管终端。 Adapts automatically to the hinge and container size as you fold or open the phone, with instant QR pairing from your desktop.
两台电脑装上就行,
AI 也会用 p2pcli。Pair in seconds.
Script or drive with p2pcli.
- 被连的一方点「本机信息」,发给对方 9 位设备码和 6 位密码;对方输入连接后点一下允许。Share the 9-digit code and 6-digit password from This device, then click Allow when asked.
- 连自己的电脑时勾上互相信任,以后免密码、免弹窗,直接点左侧列表接回终端。Check Trust each other for your own machines to reconnect from the sidebar with no prompts.
- 安装时会自带
p2pcli命令,启动时自动写入 Claude Code、Codex、Cursor 等技能目录,本地 AI 直接就能跨机改文件、跑命令。Ships with thep2pcliCLI and auto-installs an Agent Skill so local AIs can run commands and edit remote files directly.
下载 P2PCLIDownload P2PCLI
当前版本 v0.1.20 · 安装后自动检查更新Latest v0.1.20 · Auto-updates in app
首次打开被 macOS 或 Windows 拦截怎么放行?Blocked on first launch?
- macOS — 双击打开点「完成」,去 系统设置 → 隐私与安全性 → 安全性 点「仍要打开」,输密码后再点「仍要打开」。看不到按钮先再双击一次 P2PCLI。Double-click and click Done, then System Settings → Privacy & Security → Open Anyway.
- Windows — 提示「Windows 已保护你的电脑」时,点 更多信息 → 仍要运行。Click More info → Run anyway when SmartScreen appears.
所有版本与 SHA256SUMS 见All builds & SHA256SUMS on GitHub Releases.