Agents interact with your real dev environment but have no structured way to discover projects, access services, or isolate their work.
Works with Claude Code, Cursor, Copilot, Codex, and any MCP-compatible tool.
$ brew install kmuxmacOS & Linux · View on GitHub
Your AI tools see what’s running. Project state, live terminal output, port assignments, all queryable via Model Context Protocol.
kmux mcp serve
Each agent gets its own git worktree with sub-allocated ports and injected env vars. Code isolation + environment isolation in one command.
kmux up my-app --worktree feature-branch
See every agent running across all projects. Live TUI dashboard, logs, inspect, kill. Agents are first-class runtime objects.
kmux agents watch
Every project gets a 100-port range, auto-assigned. Named ports injected as env vars. .env.kmux generated on startup.
kmux port assign dev
Run Claude Code, Codex, and your own dev work on the same project, each in its own session, sharing ports and env.
kmux up my-app --session claude
One command suspends a project and resumes the target. Session, ports, env. Everything follows.
kmux switch, kmux last, kmux -
AI coding agents need a runtime just like apps do. kmux manages the environment underneath them, exposing project state, terminal output, and port assignments via MCP and --json. Any agent with shell access can use kmux status --json.
Task queues, parallel agent coordination
Approval gates, budgets, safety constraints
kmux is open source. Follow the roadmap on GitHub.
Open source. One binary. Zero dependencies beyond tmux.
$ brew install kmuxView on GitHub