Optimux

Send every task to the cheapest model that can do it.

Optimux is a self-hosted AI coding workspace. It routes each task to the cheapest capable model, tracks every token and what it costs, and asks before it runs a command on your machine.

Install

What happens to a request

  1. A small model reads it first

    The Conductor, one cheap call per message, decides whether the task is simple or complex. It never does the work itself.

  2. The right model does the work

    The Simple model handles most requests. Hard tasks go to the Complex model, and so does a simple one that gets stuck. You pick both models, from any provider LiteLLM supports, or a local one.

  3. You approve every command

    Before anything runs in your terminal, you see the exact command and decide. With the sandbox on (always on a server, Linux only), a command can change only the active project.

  4. Every call is counted

    Tokens, cache hits, thinking, time and cost are recorded for each call and checked against the project's monthly budget.

Install

Two packages: the server, and an optional terminal client. Install either, or both.

The server Optimux itself, with its web interface

curl -fsSL https://raw.githubusercontent.com/optiware-ai/optimux/main/install.sh | bash

One command for Linux, on your computer or your own server. It asks a few questions; you can skip any of them.

The terminal client optional ยท Linux and macOS

curl -fsSL https://raw.githubusercontent.com/optiware-ai/optimux/main/install-tui.sh | bash

Optimux in a terminal, on the computer you work from: the chat, the whole Dashboard and the Studio, with panes and tabs for chats and shells side by side. It signs in to your server, on the same computer or elsewhere; the web interface keeps working as before. How it works

Watch it, from install to a first change

Eight minutes, no sound: the captions above the picture say what happens. The install line, the first sign-in, models and routing, GitHub, a project and its first request with the approvals, then the Studio. Pick a chapter to jump to it.

Chapters

See a fix, from request to bill

A failing test, routed to the Simple model. A test run, a file edit with its diff and a second run each wait for your approval. Then the Dashboard: what routing saved, spending by model and where the money goes.

The Studio: files, code and preview side by side

Ctrl+click a class to open its CSS rule. Pick a button in the live preview and send it to the chat. The model changes the CSS, and the editor, the preview and the file list update at once.

The terminal client: panes, tabs and the whole Dashboard

A request with its approvals, then a shell and the Dashboard in panes beside the chat. A border dragged, a pane zoomed, a second tab, a question waiting in it, the keys window, and the same layout back after quitting.

Learn the terminal client's keys, one at a time

Three minutes, no sound. Each key is shown large with what it does, then used. Pick a chapter to jump to it, and come back whenever you need a reminder. In the client, Ctrl+b ? lists every key.

Chapters

Who it's for

Technical founders, solo developers and power users who lean on AI coding assistants every day, and want a say in what each request costs, which model answers it, and what runs on their machine.

If you've looked at a monthly bill and wondered how much of it a cheaper model could have handled, Optimux is built for you.

Yours to run

  • Self-hosted. On your computer, or on your own server behind HTTPS or an SSH tunnel.
  • Your keys stay home. API keys live in one private file on your machine, never in prompts, repositories or the commands a model runs.
  • Open source. GNU AGPLv3. Read every line before you trust it.
  • No tracking. Optimux doesn't phone home, and neither does this page.

Try it on your next task.

Install

Optimux is in beta (v0.1). Found a bug or have an idea? Open an issue or start a discussion.