Skip to content

Add LiteLLM passthrough adapter for proxy #199

@endre82

Description

@endre82

Allow Meridian proxy to detect and handle LiteLLM-style requests via x-litellm-* headers.
When LiteLLM is configured as a proxy provider, it sends x-litellm-* headers with requests. This change adds detection for these headers and routes such requests to a passthrough adapter that forwards them directly to Claude Code SDK without session management or tool blocking.

  • Added hasLiteLLMHeaders() detection in detect.ts
  • Created passthroughAdapter in adapters/passthrough.ts
  • Added DEBUG_PROXY env var for cache hit/miss visibility in cache.ts
  • Added unit tests for passthrough detection

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions