Skip to main content

litecc

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 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.1.2.tar.gz (71.2 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.1.2-py3-none-any.whl (11.0 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: litecc_proxy-0.1.2.tar.gz
  • Upload date:
  • Size: 71.2 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.1.2.tar.gz
Algorithm Hash digest
SHA256 795f6d7a2503dc669542129f9d1d6cc891e40a2f9cbd28acd7caedee59f0dbc1
MD5 e7812b30d2d14a7df544e39653aeab0e
BLAKE2b-256 22854c17d45dec40d0f0db04219f8542d812454a8ac2abfaad40ee3aa2283bec

See more details on using hashes here.

Provenance

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

File metadata

  • Download URL: litecc_proxy-0.1.2-py3-none-any.whl
  • Upload date:
  • Size: 11.0 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.1.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c07410416405064cb8903b85cabe05e7e6429f97ac2272b4b60ba2f76f5b5b85
MD5 5c36e2d32b056b6bae4f586f04b45413
BLAKE2b-256 f29da36581f2c3f5fe85dacc95564a8e10513b47d294e136be22d3433594bb47

See more details on using hashes here.

Provenance

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

0.2.2

2 files

0.2.1

2 files

0.2.0

2 files

This release

0.1.2 This release

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