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 (once published):
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file litecc_proxy-0.1.1.tar.gz.
File metadata
- Download URL: litecc_proxy-0.1.1.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
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
b2f0d4989d4e0ef63f0dcc80c3f16cb292396422131fe923fcf8b331ac058342
|
|
| MD5 |
18cc609daf48db47a823e2e718c3aa24
|
|
| BLAKE2b-256 |
8aa3e436e87bbcf452e2c5aaf12057537aca0b4e932b4b29d62ee83ffa0d54c2
|
Provenance
The following attestation bundles were made for litecc_proxy-0.1.1.tar.gz:
Publisher:
publish.yml on seong-hun/litecc-proxy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
litecc_proxy-0.1.1.tar.gz -
Subject digest:
b2f0d4989d4e0ef63f0dcc80c3f16cb292396422131fe923fcf8b331ac058342 - Sigstore transparency entry: 2357580057
- Sigstore integration time:
-
Permalink:
seong-hun/litecc-proxy@b7b8389c280a76207a35545d787ab97d2e240120 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/seong-hun
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b7b8389c280a76207a35545d787ab97d2e240120 -
Trigger Event:
push
-
Statement type:
File details
Details for the file litecc_proxy-0.1.1-py3-none-any.whl.
File metadata
- Download URL: litecc_proxy-0.1.1-py3-none-any.whl
- Upload date:
- Size: 10.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
ddfef52f9be917e25e4bf7d94d92d475ce6959b467f133cec97f75e4dde2f0f5
|
|
| MD5 |
c04eb4b7f73221ee676cd5d3753d5602
|
|
| BLAKE2b-256 |
f331e11b2df83528d3b634f9f7c550f5d0a09232c65ec5f89cbcd94dae0b128b
|
Provenance
The following attestation bundles were made for litecc_proxy-0.1.1-py3-none-any.whl:
Publisher:
publish.yml on seong-hun/litecc-proxy
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
litecc_proxy-0.1.1-py3-none-any.whl -
Subject digest:
ddfef52f9be917e25e4bf7d94d92d475ce6959b467f133cec97f75e4dde2f0f5 - Sigstore transparency entry: 2357580509
- Sigstore integration time:
-
Permalink:
seong-hun/litecc-proxy@b7b8389c280a76207a35545d787ab97d2e240120 -
Branch / Tag:
refs/tags/v0.1.1 - Owner: https://github.com/seong-hun
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
publish.yml@b7b8389c280a76207a35545d787ab97d2e240120 -
Trigger Event:
push
-
Statement type: