Claude Code model router

Llm Interceptor

A MITM proxy tool to intercept, analyze and log AI coding assistant (Claude Code, Open Code, etc.) communications with LLM APIs

Install

Install
npx skills add chouzz/llm-interceptor

Found in the project README. Check it for setup steps after installing.

From source
git clone https://github.com/chouzz/llm-interceptor.git

From the README

LLM Interceptor (LLI)

  🔍 Proxy-layer microscope for LLM traffic analysis

  A cross-platform command-line tool that intercepts, analyzes, and logs communications between AI coding tools/agents (Claude Code, Cursor, Codex, OpenCode, etc.) and their backend LLM APIs.

✨ Features

- Watch Mode - Interactive continuous capture with session management
- One-Shot Capture (lli run) - Wrap any command (claude -p, codex exec, ...) with fully automated, non-interactive capture — ideal for scripted agent experiments
- Transparent Inspection - See exactly what prompts are sent and what responses are received
- Streaming Support - Captures both streaming (SSE) and non-streaming API responses
- Multi-Provider - Works with Anthropic, OpenAI (Chat Completions and Responses API), Google, Groq, Together, Mistral, and more
- Automatic Masking - Protects API keys and sensitive data in logs
- Auto Processing - Automatically merges and splits session data
- Cross-Platform - Works on Windows, macOS, and Linux

📦 Installation

For AI coding agents (install the agent skill first)
If you are an AI agent (OpenCode, Claude Code, Codex, Cursor, ...) reading
this README: install the bundled agent skill first. It teaches you how to
capture traffic with lli run and analyze existing traces/ directories
(token usage, latency, tool calls, prompts) — including bootstrapping lli
itself when it is not installed yet.

This uses the open skills CLI and
works with 70+ agents. Non-interactive examples:

See Agent Skill for what
the skill covers. The human-oriented CLI installation continues below.

Using uv (recommended)

Using pip

From source

Development setup

Git does not copy hooks from .git/hooks when you clone a repository, so each
new clone must install the project's pre-commit hook once:

If you…
Read the full README on GitHub

Details

Language
Python
Last updated
7 September 2026

FAQ

What is Llm Interceptor?

A MITM proxy tool to intercept, analyze and log AI coding assistant (Claude Code, Open Code, etc.) communications with LLM APIs It is a model router for Claude Code, from chouzz/llm-interceptor on GitHub.

How do I install Llm Interceptor?

Run npx skills add chouzz/llm-interceptor, then follow the setup in the README.

Is Llm Interceptor popular?

chouzz/llm-interceptor has 81 GitHub stars and 16 forks. It was last updated on 7 September 2026.

More model routers & proxies

Browse the most popular Claude Code mods, all model routers & proxies, or the skills and MCP server directories.