A TUI-based AI Agent Orchestration Terminal for Vibe Coding
VibeMux is a Terminal User Interface (TUI) application designed for orchestrating and managing multiple AI coding agents. Think of it as lazydocker or k9s, but for Claude Code and Codex instances.
VibeMux enables developers to: - Run multiple AI agent sessions in parallel - Monitor and interact with agents through a unified interface - Manage different configurations (Profiles) for different projects - Switch seamlessly between agent sessions

claude, codex, or ccr with per-profile commandsclaude) or Codex CLI (codex) installednpm install -g @anthropic-ai/claude-codecurl -fsSL https://raw.githubusercontent.com/lazyvibe/vibemux/main/scripts/install.sh | bash
Installs to ~/.local/bin by default. Override with INSTALL_DIR=/path.
go install github.com/lazyvibe/vibemux@latest
# Clone the repository
git clone https://github.com/lazyvibe/vibemux.git
cd vibemux
# Build
go build -o bin/vibemux
# Run
./bin/vibemux
On first launch, VibeMux will guide you through initial setup: - Configure the path to Claude Code CLI - Create a default profile
Press a to add a new project:
- Enter project name
- Enter project path (supports ~ expansion and tab completion)
- Select a profile (optional)
Press Enter on a project to start an AI agent session.
Press F12 to toggle between Control Mode and Terminal Mode:
- Control Mode (CTRL): Navigate between panes and projects
- Terminal Mode (TERM): Type directly into the agent session
| Key | Mode | Action |
|---|---|---|
Tab / Shift+Tab |
Control | Cycle focus between panes |
h/j/k/l or Arrow Keys |
Control | Navigate within panes |
PgUp / PgDn |
Control | Scroll terminal page |
Enter |
Control | Start session / Enter terminal mode |
F12 |
Any | Toggle Control/Terminal mode |
a |
Control | Add new project |
d |
Control | Delete selected project |
p |
Control | Open Profile Manager |
x |
Control | Close current session |
? |
Control | Help |
q |
Control | Quit VibeMux |
VibeMux stores configuration in ~/.config/vibemux/:
~/.config/vibemux/
├── config.json # Main configuration
├── projects.json # Project definitions
└── profiles.json # Profile definitions
Configure the terminal grid size in config.json:
{
"grid_rows": 2,
"grid_cols": 2
}
Supported layouts: 2x2, 2x3, 3x3
Profiles are stored in profiles.json and can be edited directly:
{
"id": "default",
"name": "Default",
"command": "claude",
"env_vars": {
"CLAUDE_CONFIG_DIR": "~/.config/vibemux/claude/default"
},
"auto_approve": "vibe",
"notification": {
"desktop": true,
"webhook_url": ""
}
}
auto_approve supports: none, safe, vibe, yolo.
Note: auto-replies are currently enabled for vibe and yolo only.
VibeMux is built with:
VibeMux 是一个基于 TUI(终端用户界面)的 AI 智能体编排与管理终端。可以把它想象成 lazydocker 或 k9s,但用于管理 Claude Code 和 Codex 实例。
VibeMux 让开发者能够: - 并行运行多个 AI 智能体会话 - 通过统一界面监控和交互 - 为不同项目管理不同配置(Profiles) - 在智能体会话之间无缝切换
claude / codex / ccrclaude) 或 Codex CLI (codex)npm install -g @anthropic-ai/claude-codecurl -fsSL https://raw.githubusercontent.com/lazyvibe/vibemux/main/scripts/install.sh | bash
默认安装到 ~/.local/bin,可用 INSTALL_DIR=/path 覆盖。
go install github.com/lazyvibe/vibemux@latest
# 克隆仓库
git clone https://github.com/lazyvibe/vibemux.git
cd vibemux
# 编译
go build -o bin/vibemux
# 运行
./bin/vibemux
首次启动时,VibeMux 会引导你完成初始设置: - 配置 Claude Code CLI 路径 - 创建默认配置方案
按 a 添加新项目:
- 输入项目名称
- 输入项目路径(支持 ~ 展开和 Tab 补全)
- 选择配置方案(可选)
在项目上按 Enter 启动 AI 智能体会话。
按 F12 切换 控制模式 和 终端模式:
- 控制模式 (CTRL):在窗格和项目间导航
- 终端模式 (TERM):直接向智能体会话输入
| 按键 | 模式 | 操作 |
|---|---|---|
Tab / Shift+Tab |
控制 | 在窗格间循环焦点 |
h/j/k/l 或方向键 |
控制 | 窗格内导航 |
PgUp / PgDn |
控制 | 滚动终端内容 |
Enter |
控制 | 启动会话 / 进入终端模式 |
F12 |
任意 | 切换控制/终端模式 |
a |
控制 | 添加新项目 |
d |
控制 | 删除选中项目 |
p |
控制 | 打开配置管理器 |
x |
控制 | 关闭当前会话 |
? |
控制 | 帮助 |
q |
控制 | 退出 VibeMux |
VibeMux 将配置存储在 ~/.config/vibemux/:
~/.config/vibemux/
├── config.json # 主配置
├── projects.json # 项目定义
└── profiles.json # 配置方案定义
在 config.json 中配置终端网格大小:
{
"grid_rows": 2,
"grid_cols": 2
}
支持布局:2x2、2x3、3x3
profiles.json 中可直接编辑:
{
"id": "default",
"name": "Default",
"command": "claude",
"env_vars": {
"CLAUDE_CONFIG_DIR": "~/.config/vibemux/claude/default"
},
"auto_approve": "vibe",
"notification": {
"desktop": true,
"webhook_url": ""
}
}
auto_approve 可选:none、safe、vibe、yolo。
说明:目前自动应答仅对 vibe 和 yolo 生效。
VibeMux 使用以下技术构建:
MIT License - see LICENSE for details.
Contributions are welcome! Please feel free to submit a Pull Request.
$ claude mcp add vibemux \
-- python -m otcore.mcp_server <graph>