Show HN:Remux – 一款专为 iPhone 设计的开源 tmux 工作区
Show HN: Remux – an open-source tmux workspace designed for iPhone

原始链接: https://github.com/h3nock/remux

Remux 是一款原生 iOS 客户端,专为管理远程 tmux 工作区而设计。它基于 Ghostty 终端内核和 Citadel SSH 构建,为高阶用户提供了一套移动端优先的终端会话交互界面。 主要功能包括: * **Tmux 管理**:通过滑动手势和实时预览,轻松导航会话、窗口和面板。 * **工作流增强**:提供可自定义的快捷指令面板,用于执行保存的命令、上传文件/照片以及进行直观的光标控制。 * **集成预览**:长按文件路径或本地主机 URL,即可在应用内直接预览代码、PDF、图像或运行中的开发服务器。 * **安全性**:支持无需中转的直接 SSH 连接;凭据和主机密钥通过 iOS 钥匙串(Keychain)进行管理。 * **自定义**:支持多种主题(Ghostty、Catppuccin)及可调字体大小。 Remux 目前正通过 TestFlight 进行公开测试,同时也提供源代码供有需要的用户在本地构建。设置该应用需要 iOS 18 SDK 和 Xcode。

```Hacker News最新 | 过往 | 评论 | 提问 | 展示 | 招聘 | 提交登录Show HN: Remux – 一款为 iPhone 设计的开源 tmux 工作区 (github.com/h3nock)10 分 | bitwise42 发布于 1 小时前 | 隐藏 | 过往 | 收藏 | 讨论帮助 考虑申请 YC 2026 秋季批次!申请通道将于 7 月 27 日关闭。 指南 | 常见问题 | 列表 | API | 安全 | 法律 | 申请 YC | 联系 搜索: ```
相关文章

原文

A native iOS client for remote tmux workspaces.

remux-readme.mp4

Join the beta on TestFlight

Remux is a native iOS client for remote tmux workspaces, built on Ghostty. It brings tmux's session, window, and pane model into a mobile-first interface. It previews files and running dev servers straight from the terminal, and uploads photos and files, with markup for images.

  • tmux sessions: Attach to running sessions or start new ones.
  • Windows and panes: Swipe between windows, pick panes from a bottom sheet with live previews, and split, zoom, or close them.
  • Shortcut palette: Run saved commands with a tap. Starter sets cover shell, Claude Code, and Codex, and you can add your own commands and groups.
  • Attachments: Upload photos and files to the server, with markup for images. The remote path is typed at the prompt.
  • File preview: Long-press a path in terminal output to preview it: code, images, PDFs, or HTML pages.
  • Localhost preview: Long-press a localhost URL to open the dev server running on the remote machine, hot reload and WebSockets included.
  • Cursor control: Hold the space bar or long-press in the terminal, then drag to place the cursor.
  • Direct SSH: Remux connects straight to the server, with no relay and no account. Passwords and private keys are stored in the iOS Keychain, and trusted host keys are remembered.
  • Themes: Ghostty default, Catppuccin Mocha, and Catppuccin Latte, with adjustable font size.

Remux is available as a public beta on TestFlight: testflight.apple.com/join/fHqG1ruE. You can also build from source.

Requirements:

  • Xcode with iOS 18 SDK support
  • XcodeGen

Fetch the prebuilt GhosttyKit framework:

scripts/fetch_ghosttykit.sh

Generate the Xcode project and build:

xcodegen generate

xcodebuild build \
  -project Remux.xcodeproj \
  -scheme Remux \
  -destination 'generic/platform=iOS Simulator'

Run the tests:

xcodebuild test \
  -project Remux.xcodeproj \
  -scheme Remux \
  -destination 'platform=iOS Simulator,name=iPhone 17,OS=latest'

To build GhosttyKit yourself instead of fetching it, see remux-ghostty and scripts/build_release_ghosttykit.sh.

Remux is built on Ghostty's terminal core and uses Citadel for SSH.

联系我们 contact @ memedata.com