AI coding agent that lives in your terminal
Connect any model from any provider. Claude, GPT, Mistral, Grok, Fireworks, Ollama, and any OpenAI compatible API. Branch, fork, undo, and resume sessions anywhere.
curl -fsSL https://raw.githubusercontent.com/batalabs/muxd/main/install.sh | shFeatures
34 Built In Tools
File ops, bash, grep, web search, HTTP, SMS, git, todos, patches, plan mode, memory, hub dispatch, custom tools, consult, and subagents. The agent picks the right tool.
Any Model
Connect Claude, GPT, Mistral, Grok, Fireworks, Ollama, or any OpenAI compatible API. Switch models during a session. Assign cheaper ones for titles and compaction.
Branch & Fork
Fork any conversation to explore an alternative approach without losing your original thread. Compare strategies side by side and resume whichever branch works best.
Git Undo / Redo
Every agent turn creates a git checkpoint. Roll back any change with /undo or reapply with /redo. You stay in control of every line the agent writes to your codebase.
Mobile & Hub
Connect from your phone with the muxd iOS app or manage multiple machines through a hub coordinator. Scan a QR code to pair and chat with your agent from anywhere.
Project Memory
Persist project specific facts across sessions. The agent remembers your conventions, architecture decisions, and gotchas. With a hub, memory syncs across all your nodes.
Always On Daemon
Runs as a background service that survives terminal closes, SSH disconnects, and reboots. Titles sessions automatically, schedules recurring tasks, and keeps running headless.
Second Opinion
Uncertain about an approach? The agent asks a different model for a second opinion. Response shown in a separate view with a crystal ball emoji. Configure any model as the reviewer.
Smart Compression
Tiered context compaction at 60k, 75k, and 90k tokens. Tool results compressed first, then old turns, then a full summary. Preserves key decisions while cutting costs.
Inline Diffs
Every file edit shows a styled red and green diff right in the chat stream. See exactly what the agent changed without switching to your editor. Large diffs truncated automatically.
Read Any Document
Attach or reference PDFs, Word docs, Excel spreadsheets, PowerPoint slides, HTML, CSV, JSON, and XML files. The agent extracts text automatically. No plugins required.
Self Extending Tools
The agent creates its own tools at runtime. Simple command templates or full scripts, ephemeral or persistent. Your agent grows its own capabilities as you work together.
An agent that extends itself
Ask for a tool and it builds one. Command templates or full scripts,
available instantly, or saved for every future session.
Create with one prompt
Describe what you need. The agent writes the command template, defines parameters, and registers it. All in one step.
Use immediately
New tools are available the instant they're created. The agent can call them in the same turn, no restart needed.
Save for later
Mark a tool as persistent and it loads automatically on every future session. Stored in ~/.config/muxd/tools/.
Same security model
Custom tools run through the same bash infrastructure. Parameters are escaped for safety. Disabled when bash is disabled.
How muxd works
A direct, local first agent loop. No cloud middlemen.
Your code never leaves your machine.
Your Workflow
Multiple ways to connect.
muxd Daemon
Local SQLite
Private session memory
34 Built In Tools
Bash, Web, Git & more
Any LLM
Direct calls to Claude, GPT, Mistral, Grok, Fireworks, Ollama, or any compatible endpoint. No middleman.
Your Files
Changes happen securely on your machine with Git checkpoints for easy undo/redo.
Scale across machines with Hub
Run a hub coordinator to manage daemons across multiple machines. Connect from any TUI or mobile app through a single endpoint.
Connect Anywhere
One hub endpoint for all your machines.
muxd Hub
Token Auth
Auto-swaps credentials
Heartbeats
Node health monitoring
dev-server
muxd daemon
staging
muxd daemon
prod-worker
muxd daemon
Manage from anywhere
The muxd iOS app connects to your daemons and hubs. Chat with your agent, switch between machines, and monitor sessions on the go.

Manage all your machines

Chat with rich formatting
Your code stays on your machine
Zero telemetry. Zero data collection. Sessions live in local SQLite. API calls go directly to your chosen provider.
muxd is a local AI agent. No cloud service sits between you and your model. Your source code, conversations, and API keys never leave your machine. Everything is stored locally, nothing is phoned home, and the entire codebase is open source under Apache 2.0. If you want a private coding agent with no data collection, this is it.