modelmux v2.0.0
modelmux is an MCP (Model Context Protocol) server that lets Claude Code, Codex, and Perplexity call each other as tools — directly from your terminal, mid-session. Files (text, code, images, PDFs) can be attached by local path and are forwarded to each AI in the right API format.
Tools
ask_claude— query Anthropic's Claude API (text, images, PDFs)ask_codex— query OpenAI's GPT API (text, images, PDFs)ask_perplexity— web-grounded search (text/code; binaries noted, not sent)broker— query multiple AIs in parallel, then synthesize the results
Highlights
- Zero npm dependencies — Node.js built-ins and native
fetchonly (Node 18+) - stdio JSON-RPC 2.0 transport; runs on-demand, nothing in the background
- File attachments by path with a 20 MB limit and a binary-file safety guard
- One-step installer (
bash install.sh) that registers the server with Claude Code and Codex brokergracefully falls back to side-by-side results if synthesis is unavailable
Install
git clone https://github.com/JRWoodcock/modelmux.git
cd modelmux
bash install.shLicensed under the Apache License 2.0.