Laminar Claude Code Proxy

0.1.19 · active · verified Sat Apr 11

A thin proxy server designed to route requests from Claude Code to various Large Language Model (LLM) providers, while incorporating Laminar tracing for observability. It is currently at version 0.1.19 and appears to follow an as-needed release cadence for updates and bug fixes.

Warnings

Install

Imports

Quickstart

This quickstart demonstrates how to set up the necessary environment variables and conceptually run the proxy server. Typically, such a proxy is run as a standalone process, often via a CLI command or a simple Python script that calls a blocking `run` function. Users would then configure their Claude Code client to point to the proxy's address (e.g., `export ANTHROPIC_BASE_URL="http://localhost:8082"`).

import os
from lmnr_claude_code_proxy import run_proxy_server

# Set required environment variables
os.environ['OPENAI_API_KEY'] = os.environ.get('OPENAI_API_KEY', 'YOUR_OPENAI_API_KEY_HERE') # Or other target LLM API key
os.environ['ANTHROPIC_BASE_URL'] = 'http://localhost:8082' # Point Claude Code to the proxy

# In a real scenario, you would run this in a separate process or via a CLI command.
# For demonstration, we simulate starting the server. This function typically blocks.
# run_proxy_server(host='0.0.0.0', port=8082)

view raw JSON →