Skip to main content
CMX (Compressius Maximus) is a free local gateway that sits between your AI coding agent and your model provider, compressing the context your agent sends so you pay for fewer input tokens. It runs entirely on your machine at 127.0.0.1:17322 — no subscriptions, no paid plans, no prompts leaving your device.

Quick Start

Install CMX, sign in, and connect your coding agent in under a minute.

Installation

Choose your platform and install method — npm, pnpm, or a standalone binary.

How Compression Works

Learn how CMX uses model-directed summaries and gateway policy to shrink context safely.

CLI Reference

Every CMX command, grouped by task — from setup to stats to uninstall.

How It Works

1

Install and Pair

Run cmx setup in your terminal. Sign in through your browser, pair this device, and let CMX connect your coding agent. The local gateway starts automatically.
2

Keep Coding

Your agent sends requests to 127.0.0.1:17322 exactly as before. Recent turns, protected tool calls, and opaque content are always left untouched.
3

Context Shrinks When It Pays

Once a session grows large enough, CMX asks your model to summarize eligible older turns. Gateway policy checks the proposal for safety and estimated net savings before anything is applied.

Features

Local by Default

The gateway runs on your machine. Prompts, responses, and source code never touch CMX servers — only signed aggregate counters reach the optional cloud dashboard.

Model-Directed Compression

Your model proposes what can be summarized. CMX policy verifies every proposal against estimated savings, recent-context preservation, and protected call checks before applying it.

Protected Tool Calls

task, skill, write, and edit calls — and their results — are never compressed, keeping the actions that matter most intact.

Free Forever

CMX has no subscriptions or paid plans. Unlimited local compression, Codex and OpenCode setup, and a token savings dashboard are included for every user at no cost.
CMX is free to use. Your model provider’s normal usage charges still apply.