cmux
开源终端,专为
基于 Ghostty 构建的原生 macOS 终端应用。开源免费。支持垂直标签页、agent 需要关注时的通知提醒环、分屏面板,以及用于自动化的 socket API。
功能特性
- -垂直标签页:侧边栏显示 git 分支、工作目录、端口和通知文本
- -通知提醒环:当 agent 需要关注时,面板会亮起提示
- -内置浏览器:在终端旁边分屏打开浏览器,支持可编程 API
- -分屏面板:每个标签页内支持水平和垂直分屏
- -可编程:CLI 和 socket API,支持自动化和脚本控制
- -GPU 加速:由 libghostty 驱动,渲染流畅
- -轻量级:原生 Swift + AppKit,无 Electron
- -快捷键:丰富的快捷键,覆盖工作区、分屏、浏览器等操作

常见问题
cmux 和 Ghostty 是什么关系?
cmux 不是 Ghostty 的 fork。它使用 libghostty 作为终端渲染库,就像应用使用 WebKit 来渲染网页一样。Ghostty 是一个独立的终端;cmux 是基于其渲染引擎构建的不同应用。
支持哪些平台?
目前仅支持 macOS。cmux 是原生 Swift + AppKit 应用。
cmux 支持哪些 coding agent?
全部都支持。cmux 是一个终端,所以任何在终端中运行的 agent 都可以直接使用:Claude Code、Codex、OpenCode、Gemini CLI、Kiro、Aider、Goose、Amp、Cline、Cursor Agent,以及任何可以从命令行启动的工具。
通知是如何工作的?
当进程需要关注时,cmux 会在面板周围显示通知提醒环、在侧边栏显示未读标记、弹出通知面板,以及发送 macOS 桌面通知。这些通过标准终端转义序列(OSC 9/99/777)自动触发,你也可以通过 cmux CLI 和 Claude Code hooks 手动触发。
可以自定义快捷键吗?
终端键位绑定从你的 Ghostty 配置文件(~/.config/ghostty/config)中读取。cmux 特有的快捷键(工作区、分屏、浏览器、通知)可以在设置中自定义。完整列表请参阅默认快捷键。
和 tmux 相比如何?
tmux 是在任何终端内运行的终端复用器。cmux 是一个带 GUI 的原生 macOS 应用:垂直标签页、分屏面板、内置浏览器和 socket API 全部内置。无需配置文件或前缀键。
cmux 免费吗?
是的,cmux 免费使用。源代码在 GitHub 上公开。
社区
- "Another day another libghostty-based project, this time a macOS terminal with vertical tabs, better organization/notifications, embedded/scriptable browser specifically targeted towards people who use a ton of terminal-based agentic workflows." — 又一个基于 libghostty 的项目,这次是一个带垂直标签页、更好的组织/通知、内置可编程浏览器的 macOS 终端,专门面向大量使用终端 agent 工作流的用户。 —
Mitchell Hashimoto, Creator of Ghostty and founder of HashiCorp - "This is exactly the product I've been looking for. After two hours this am I've in love." — 这正是我一直在找的产品。用了两小时就爱上了。 —
Nick Schrock, Creator of Dagster. GraphQL co-creator. - "I've been using this all weekend and it's amazing." — 整个周末都在用,太棒了。 —
Edward Grefenstette, Director of Research at Google DeepMind - "this has been my favorite tool for past two weeks" — 过去两周最喜欢的工具 —
Max Forsey - "cmux 良さそうすぎてついにバイバイ VSCode するときなのかもしれない" — cmux 看起来太棒了,也许终于到了告别 VSCode 的时候 —
あさざ - "Hey, this looks seriously awesome. Love the ideas here, specifically: the programmability, layered UI, browser w/ api. Looking forward to giving this a spin. Also want to add that I really appreciate Mitchell Hashimoto creating libghostty; it feels like an exciting time to be a terminal user." — 看起来真的很厉害。喜欢这些想法:可编程性、分层 UI、带 API 的浏览器。期待试用。也想说非常感谢 Mitchell Hashimoto 创建了 libghostty,作为终端用户感觉现在是个令人兴奋的时代。 —johnthedebs
- "Vertical tabs in my terminal 🤤 I never thought of that before. I use and love Firefox vertical tabs." — 终端里的垂直标签页!之前从没想过。我用 Firefox 垂直标签页用得很开心。 —
Joe Riddle - "Gave this a run and it was pretty intuitive. Good work!" — 试了一下,很直观。做得好! —dchu17
- "I like it, ran it in the past day on three parallel projects each with several worktrees. Having this paired with lazygit and yazi / nvim made me a bit more productive than usual without having to chase multiple ghostty / iTerm instances. Also feels more natural than tmux." — 很喜欢,过去一天在三个并行项目上用了,每个都有多个 worktree。配合 lazygit 和 yazi/nvim,比以前高效多了,不用在多个 Ghostty/iTerm 实例之间切换。比 tmux 也更自然。 —afruth
- "cmux良さそうなので入れてみたけれど、良い" — 试了 cmux,确实不错 —
Norihiro Narayama - "cmux is pretty good." — cmux 挺好用的。 —
Kishore Neelamegam - "cmux.dev に乗り換えた" — 换到 cmux.dev 了 —
かたりん - "This has been such a useful find. I can't recommend it enough." — 非常有用的发现。强烈推荐。 —
Scott Watermasysk - "grabbed this over the weekend and loved it. been waiting for something like this." — 周末用了,很喜欢。一直在等这样的工具。 —
John Blythe - "This is exactly what I've wanted. Amazing job thank you!" — 这正是我想要的。做得太好了,谢谢! —
Christopher - "Been using this for a week and it's fantastic. Vert tab for each WIP task. Inside, claudes on one side and browser with PR and resources on the other, switch between tasks and stay organized. Mix that with skills to have Claude watch CI recursively, etc. feeling enlightened tbh" — 用了一周,非常棒。每个进行中的任务一个垂直标签页。里面一边是 Claude,另一边是浏览器看 PR 和资料,在任务之间切换保持有序。配合 skill 让 Claude 递归监控 CI 等等。感觉开悟了。 —
Connor - "年初にWarpからGhosttyに乗り換えたけど、今はcmuxに乗り換えた💻 垂直タブが便利で、Claude Codeのタスクの終了が通知されるのがありがたい。Ghosttyベースだから爆速動作はそのまま。ghosttyでやったブランチ表示や補完もそのまま使える" — 年初从 Warp 换到 Ghostty,现在又换到了 cmux。垂直标签页很方便,Claude Code 任务完成时收到通知很实用。基于 Ghostty 所以依然飞快。之前在 Ghostty 里设置的分支显示和补全也都能用。 —
鹿野 壮 Takeshi Kano