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.3.0.tar.gz (81.5 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.3.0-py3-none-any.whl (10.7 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: litecc_proxy-0.3.0.tar.gz
  • Upload date:
  • Size: 81.5 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.3.0.tar.gz
Algorithm Hash digest
SHA256 c4f7e0a2f9582d2a60dfef8a0bedf2c7acd495da2e78c41b29a88e2b2207a925
MD5 d5defd9962f78de59098191104165c91
BLAKE2b-256 0c766c119b284eeb752be4c45e64545431de10b212ceae4f85507fdad45fa891

See more details on using hashes here.

Provenance

The following attestation bundles were made for litecc_proxy-0.3.0.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.3.0-py3-none-any.whl.

File metadata

  • Download URL: litecc_proxy-0.3.0-py3-none-any.whl
  • Upload date:
  • Size: 10.7 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.3.0-py3-none-any.whl
Algorithm Hash digest
SHA256 2e6e8dbb7e1faff91455d023c8c75beb657828c970848218c823da6d8f05c9a7
MD5 34facb0967c13e10837a61b3537bf266
BLAKE2b-256 98688e08edf938a3ffee940ed982c83a657ecc26563821112719c9f0a2e5f10a

See more details on using hashes here.

Provenance

The following attestation bundles were made for litecc_proxy-0.3.0-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

This release

0.3.0 This release

2 files

0.2.2

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