CODEMUX

OpenCode GitHub Copilot CLI Claude Code Codex

What Is CodeMux?

CodeMux is not another AI chat wrapper. It is a protocol-level gateway that unifies multiple AI coding engines under one interface.

Each engine runs in its own sandbox with full file editing, shell access, and session management preserved. Direct protocol integration (HTTP/REST, JSON-RPC/stdio, SDK) ensures zero capability loss.

Access from desktop, browser (LAN or public internet via Cloudflare Tunnel), or IM bots (Feishu, DingTalk, Telegram, WeCom, Teams) — all with full agent chain-of-thought visualization.

Access Layer
Electron / Browser / IM Bots
↓ WebSocket
Gateway Server
Engine Manager + Router
↓ Protocol Adapters
OpenCodeHTTP/SSE
Copilot CLIJSON-RPC
Claude CodeSDK/stdio
CodexJSON-RPC

Four Engines. One Interface.

One GUI. Three stable engines plus experimental Codex.

OpenCode

HTTP REST + SSE

Web-based engine with streaming responses. Full coding capabilities through HTTP protocol with Server-Sent Events for real-time output.

🤖

GitHub Copilot CLI

JSON-RPC / stdio

The first open-source GUI for Copilot CLI at protocol level. Full JSON-RPC integration with stdio transport for native performance.

🧠

Claude Code

SDK / stdio

Powered by @anthropic-ai/claude-agent-sdk. Deep integration through the official SDK for maximum capability and reliability.

🤖

Codex

JSON-RPC / stdio

Protocol-level Codex integration through the stable app-server transport (JSON-RPC over stdio). Support is currently experimental / unstable while the upstream protocol is still evolving.

Codex support is experimental and may change as the upstream app-server protocol evolves.

Capabilities

🔗

Agent Chain-of-Thought

See every step your AI takes. File diffs with syntax highlighting, shell commands, search results — full transparency across desktop, browser, and IM.

🌐

Zero-Config Remote Access

Access from any device over LAN (auto-detected IP + QR code) or the public internet via Cloudflare Tunnel. JWT auth + HTTPS built in.

💬

IM Bot Integration

Connect through Feishu, DingTalk, Telegram, WeCom, or Microsoft Teams. Real-time streaming with full agent capabilities in your favorite IM.

🖼️

Multimodal Input

Drag, drop, or paste images. JPEG, PNG, GIF, WebP — up to 4 images per message. Supported natively across all engines and access methods.

🎯

Agent Modes

Switch between Build, Plan, and Autopilot modes. Live task lists with real-time progress. Inline permission approvals for sensitive operations.

📅

Scheduled Tasks

Automate recurring agent tasks on interval, daily, or weekly schedules. Missed runs catch up on restart. Run history tracked per task.

🔀

Git Worktree Sessions

Work on multiple branches in parallel with isolated worktrees. Each has its own directory and AI sessions. Merge back with merge, squash, or rebase.

🗂

File Explorer & Git Monitor

Browse files, preview code with syntax highlighting, and track git changes in real time. Inline diff viewer with line-level add/remove counts.

Slash Commands & Skills

Type / for engine-native commands with autocomplete. Copilot surfaces project & personal skills, Claude Code exposes installed skills, OpenCode passes through SDK commands, and Codex surfaces app-server skills.

🖥️

Integrated Terminal

A VS Code-style terminal under the chat (Ctrl+`). Multiple tabs, real shells, search, clickable file paths, and GPU rendering. Runs over the Gateway, so it works remotely too — not just on desktop.

Access Everywhere

🔬 CODEMUX
💻Electron
🌎Browser
✉️Feishu
🔔DingTalk
✈️Telegram
🔐WeCom
🤝Teams
☁️Tunnel

🔒 SECURITY PROTOCOLS

  • Device authorization with 6-digit codes
  • Per-device JWT token authentication
  • HTTPS via Cloudflare for public tunnels
  • Ephemeral URLs rotate on restart
  • Custom domain via named tunnels
  • Inline permission request approval

OpenCode, Copilot CLI, Claude Code, and Codex are installed separately. Codex support is experimental and requires the `codex` CLI in PATH.

Get Started

codemux@terminal
# Install via Homebrew
$ brew tap realDuang/codemux
$ brew install --cask codemux
 
# Or download directly:
Apple Silicon (M1+): .dmg
Intel x64: .dmg
# Download the installer
CodeMux-setup.exe
 
# Or download from GitHub Releases:
$ start https://github.com/realDuang/codemux/releases
# Clone and build from source
$ git clone https://github.com/realDuang/codemux.git
$ cd codemux
$ bun install
$ bun run update:cloudflared
$ bun run dev

OpenCode, Copilot CLI, Claude Code, and Codex are installed separately. Codex support is experimental and requires the `codex` CLI in PATH.