usecoded

START HERE

Install. Start the proxy. Point your agent at localhost.

Two commands per platform. Leave that terminal running — it is the PAYG proxy on 127.0.0.1:8080. Your agent runs in a second window.

macOS

curl -fsSL https://usecoded.com/install | bash
usecoded
macOS: curl install, then usecoded

Linux

curl -fsSL https://usecoded.com/install | bash
usecoded
Linux: curl install, then usecoded

Windows

npm i -g usecoded@latest
usecoded
Windows: npm install, then usecoded

SECOND TERMINAL — AGENT SHELL

export ANTHROPIC_BASE_URL="http://127.0.0.1:8080/v1"
export OPENAI_BASE_URL="http://127.0.0.1:8080/v1"

WHAT IT DOES

Stop paying twice for the same prompt.

Agents send the same system prompt every turn. usecoded keeps it stable on localhost so cache can hit. Nothing leaves your machine except the request to your provider.


PROOF OF WORK

Cache hits you can inspect.

Mistral probe through localhost — proxy on the left, turns on the right. Hit rate shows up on curl -s localhost:8080/stats.

Windows PowerShell: decoded proxy on the left, Mistral cache probe on the right