Skip to main content

litecc-proxy

Anthropic Messages API proxy that lets Claude Code talk to a LiteLLM-hosted model (e.g. Qwen 3.5) instead of the real Anthropic API.

Handles streaming, tool use, and rewrites raw <think>...</think> text (which reasoning models like Qwen emit inline, and which otherwise breaks Claude Code's rendering) into proper Anthropic thinking content blocks. Any number of <think> spans in a single response or stream are supported.

Run it

Without installing anything, straight from PyPI:

uvx litecc-proxy start --port 4000 \
  --litellm-base-url http://11.11.11.11:4000 \
  --litellm-model qwen-3.5

Straight from this git repo, without cloning:

uvx --from git+https://github.com/seong-hun/litecc-proxy litecc-proxy start --port 4000 \
  --litellm-base-url http://11.11.11.11:4000 \
  --litellm-model qwen-3.5

From a local checkout, with uv:

uv sync
uv run litecc-proxy start --port 4000 --litellm-base-url http://11.11.11.11:4000 --litellm-model qwen-3.5

Every flag also has an env-var equivalent, so you can drop them in .env instead:

Flag Env var Default
--port PROXY_PORT 8787
--host PROXY_HOST 0.0.0.0
--litellm-base-url LITELLM_BASE_URL http://localhost:4000
--litellm-model LITELLM_MODEL qwen-3.5
--litellm-api-key LITELLM_API_KEY (empty)
--timeout LITELLM_TIMEOUT 600 (seconds)
--log-level LOG_LEVEL INFO

CLI flags take precedence over env vars.

Point Claude Code at it

In Claude Code's settings.json:

{
  "env": {
    "ANTHROPIC_BASE_URL": "http://localhost:4000"
  }
}

(match the port to whatever you passed to --port.)

Publishing to PyPI

Publishing is automated via GitHub Actions + PyPI Trusted Publishing (OIDC): pushing a v*.*.* tag builds the package and publishes it, no API token needed.

git tag v0.1.0
git push origin v0.1.0

After that, uvx litecc-proxy start --port 4000 works for anyone without a local checkout.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

litecc_proxy-0.2.2.tar.gz (80.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

litecc_proxy-0.2.2-py3-none-any.whl (10.2 kB view details)

Uploaded Python 3

File details

Details for the file litecc_proxy-0.2.2.tar.gz.

File metadata

  • Download URL: litecc_proxy-0.2.2.tar.gz
  • Upload date:
  • Size: 80.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for litecc_proxy-0.2.2.tar.gz
Algorithm Hash digest
SHA256 bae93f0ff344dbe556f15e8d712a63a232072447b7dc58e3e4a354b6f2c9a5d7
MD5 13ff98e663a32cac857ab20aa7e592de
BLAKE2b-256 7344d305e59125f02a90bf0a0935ec7dcf6d6d730000c9df453bced19a6aebe4

See more details on using hashes here.

Provenance

The following attestation bundles were made for litecc_proxy-0.2.2.tar.gz:

Publisher: publish.yml on seong-hun/litecc-proxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file litecc_proxy-0.2.2-py3-none-any.whl.

File metadata

  • Download URL: litecc_proxy-0.2.2-py3-none-any.whl
  • Upload date:
  • Size: 10.2 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/7.0.0 CPython/3.13.14

File hashes

Hashes for litecc_proxy-0.2.2-py3-none-any.whl
Algorithm Hash digest
SHA256 aded1175783c4f256266f055b18616ebe9a55b2c2322b4d4f0dbb72c1674433e
MD5 6c52ff5c018e3dacc8b45172fd614b2e
BLAKE2b-256 9264c4e726c5c517caa81cfc3ad9417cbde3aef8b631488ec5a8d155102787b1

See more details on using hashes here.

Provenance

The following attestation bundles were made for litecc_proxy-0.2.2-py3-none-any.whl:

Publisher: publish.yml on seong-hun/litecc-proxy

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Release history Release notifications | RSS feed

0.5.0

2 files

0.4.1

2 files

0.3.0

2 files

This release

0.2.2 This release

2 files

0.2.1

2 files

0.2.0

2 files

0.1.2

2 files

0.1.1

2 files

0.1.0

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page