lmp

lmp, a language model proxy, is a small LLM gateway that communicates via OpenAI’s Responses and Chat Completions APIs.

Install

At least one of Claude Code or Codex must be installed and logged in before lmp can use it.

npm i -g @anthropic-ai/claude-code
npm i -g @openai/codex

If npm is not available, install Node.js:

winget install OpenJS.NodeJS  # on Windows
brew install node             # on macOS

Then log in to your account.

claude auth login
codex login

Keep the login in ~/.codex/auth.json by setting cli_auth_credentials_store = "file" in ~/.codex/config.toml.

Then install lmp with uv, which lmp also uses to update itself.

uv tool install git+https://github.com/chigkim/lmp

If uv is not available, install it with:

winget install astral-sh.uv  # on Windows
brew install uv              # on macOS

When lmp is installed from Git with uv tool install, it checks GitHub for a different commit at startup. If it finds one, it asks whether to update now or later.

Launch lmp to open the tray app and start the gateway. It serves /v1/responses, /v1/chat/completions and /v1/models.

The host, port, API key and logging can be configured in ~/.lmp/config.toml.

Point any OpenAI-compatible client at http://127.0.0.1:8797/v1, and use lm-proxy as the API key unless you changed it. On a host other than loopback, lmp refuses to start with the default key.

Tray

The icon appears in the Windows notification area or the macOS menu bar. Its menu shows plan usage and reports startup and provider errors. Choose Quit to stop the gateway and all of its Claude sessions, including active ones.

On Windows, lmp is a windowless program: start it from the Start menu’s Run box or a shortcut, and put a shortcut in shell:startup to start it at login. If you are upgrading from a version that used lmp-tray, update existing shortcuts to point to lmp.

On macOS, run lmp & from a terminal, or add it to Login Items.