PXPipe

What PXPipe is, how Smior installs and updates it, and how to route Claude Code, Codex and Kilo Code through it.

On this page

PXPipe is an open-source (MIT) proxy that runs on your computer, on 127.0.0.1, between your coding agent and its model API. Where it pays off, it sends large blocks of text, such as long tool output, as compact images instead of text. Smior installs, verifies, updates and routes it for you.

Savings not measured yet. Smior has not measured PXPipe’s savings. Where a figure is missing, Smior shows “unavailable”, never zero.

Before you start

  • Plan: PXPipe is included in Personal, Pro, Team and Business, and in the trial. It is not in Free.
  • Switch: smior.pxpipeEnabled. On a plan that includes PXPipe, Smior turns it on and sets it up for you. Without such a plan, turning it on starts nothing.
  • Version: Smior installs the PXPipe line its release was tested with (the 0.14 line for Smior 1.2.0), in the workspace’s .smior/tools/ folder.

How it decides what to image

An image costs a fixed number of tokens per page. PXPipe images a block only when the image is cheaper than the same text. Dense output, such as logs and data, often is; prose usually is not. Smior never images code your agent is editing.

Run smior estimate <file|-> to see whether imaging a piece of text would pay off, and smior pxpipe for advice on whether to use the proxy at all.

Reading images

A model can misread small text in an image. Before your agent quotes or edits with an exact value it saw in an imaged output, such as a hash, id, version, path or number, it should read that value again as plain text. For Claude Code, Smior adds a misread check before edits and shell commands.

Claude Code

Smior points Claude Code at the local proxy by writing ANTHROPIC_BASE_URL (for example http://127.0.0.1:47821) into the workspace’s .claude/settings.json. The original file is backed up first.

If a Claude Code session was already running when PXPipe was set up, start one new Claude Code session so it uses the proxy. You do not need to reload the editor or run the health check.

If the proxy stops, Smior removes the route at once, so your agent is never left pointing at a dead address.

Codex

Smior can send Codex through PXPipe too. This works for Codex signed in with ChatGPT, in the CLI and in the VS Code extension, which runs the same codex program.

  • Setting: smior.pxpipeCodex: ask (default), on or off. It is an application-wide setting.
  • The question: while PXPipe is on and Codex is found signed in, Smior asks once: “This also sends Codex in every project through PXPipe.”
  • Scope: Codex’s route is set for your user, in ~/.codex/config.toml (or $CODEX_HOME/config.toml), so it applies to Codex in every project. Smior adds a provider named smior there.
  • Lifetime: the route is in place only while a Smior window is open. The last window to close takes it off and stops the shared proxy, because Codex would otherwise wait on a dead route.
  • If you remove the route yourself, Smior never puts it back on its own. The PXPipe card says “Codex isn’t going through PXPipe.” and offers Put back.

Smior never sets smior.pxpipeCodex on install or update.

Kilo Code

Smior can send Kilo Code’s Anthropic requests through a PXPipe of their own, for the same compression as Claude Code. Smior never edits Kilo’s settings or files.

  • Setting: smior.pxpipeKilo: ask (default), on or off. Application-wide. It works only while smior.pxpipeEnabled is on.
  • The question: when PXPipe is on and Kilo Code (kilocode.kilo-code) is installed, Smior asks once: “This also sends Kilo Code’s Anthropic requests through PXPipe, in every project.” After Yes: “Kilo Code goes through PXPipe from the next window reload.” with a Reload Window button. If Codex’s question is also due, it comes after that one.
  • Per window: before Kilo starts its server, Smior gives Kilo the proxy’s address for that editor window. A change takes effect when the window reloads. A Kilo server started earlier keeps its old address.
  • Your address wins: if you set an address in Kilo yourself, Kilo uses yours.
  • One proxy per person, in ~/.smior-pxpipe-kilo, on port 47823, 47923 or 48023. It is separate from Codex’s.
  • Identity check: Smior checks it is talking to its own proxy before it uses an address.
  • It keeps running until the computer restarts, even when a window closes or PXPipe is turned off, because a dead port would hang Kilo. To stop it now, run smior pxpipe kilo stop --force.
  • Only Anthropic requests are routed. Kilo needs its own Anthropic access. Its other providers are untouched.

Kilo Code through PXPipe was tested with Kilo Code 7.8.18 on Windows. Idle memory was about 76 MB.

Agents not routed

Gemini CLI, Antigravity, OpenCode and other agents not listed above are not routed through PXPipe.

Updates

Smior: Update PXPipe updates Smior’s managed copy safely:

  1. It stages the exact approved version and its dependencies.
  2. It checks every npm archive against its published integrity hash, and enforces size and path limits.
  3. It never runs package install scripts, and never falls back to an unverified npx.
  4. It checks the new engine and the interfaces Smior’s controls use, activates it only if they pass, and checks again after restart.
  5. If anything fails, it restores the previous version.

Smior checks existing installs quietly after it starts. It never silently downgrades a newer managed copy. Unsupported controls are disabled, and missing figures are shown as unavailable.

Commands

Command What it does
Smior: Toggle PXPipe compression Turn compression on, or leave the proxy passing requests through unchanged.
Smior: Check PXPipe health An optional check that the engine works, with real traffic.
Smior: Update PXPipe Stage, verify and activate an update.
Smior: Start pxpipe Start the proxy.
Smior: Point agent at pxpipe Route the agent through the proxy.
Smior: Copy pxpipe agent command Copy the command to start an agent through the proxy.
Smior: Image-compression advice (pxpipe) Whether the proxy would help you.

CLI: smior pxpipe, smior pxpipe toggle on|off, smior pxpipe verify, smior pxpipe update, and the codex and kilo subcommands. See CLI reference.

What PXPipe sees and keeps

PXPipe sees your agent’s traffic, because that is its job, and only on your computer.

  • Smior starts the proxy with its output discarded and its request-body capture off.
  • The proxy’s request log never reaches the disk. Smior keeps only the time, API route, status, token counts, a fixed reason code and the saving, in .smior/pxpipe-kept.jsonl.
  • Hashes of your messages, folder and branch names, and error text are never written.

See Privacy and data.

Troubleshooting

  • Claude Code isn’t using the proxy: start a new Claude Code session in this folder.
  • No Kilo question appears: check that Kilo Code is installed, PXPipe is on and smior.pxpipeKilo is still ask, then reload the window.
  • A changed Kilo setting doesn’t apply: reload the window.
  • After an automatic route-off, the notice offers to put the route back.
  • The download fails: a firewall or VPN may be blocking registry.npmjs.org.

Something missing, wrong or unclear on this page?

Send feedback

Checked against Smior 1.2.0 on 2026-11-25.

SMIOR