├── .env.example ├── .gitignore ├── .ignore ├── .pre-commit-config.yaml ├── .python-version ├── CLAUDE.md ├── CONTRIBUTING.md ├── LICENSE ├── MANIFEST.in ├── README.md ├── compose.yaml ├── docs ├── configuration.md └── llms │ ├── litellm-proxy-logging.md │ ├── man │ ├── index.md │ └── litellm-anthropic-messages.md │ └── prompt_caching_docs.md ├── examples ├── anthropic_sdk.py └── litellm_sdk.py ├── pyproject.toml ├── src └── ccproxy │ ├── __init__.py │ ├── __main__.py │ ├── classifier.py │ ├── cli.py │ ├── config.py │ ├── handler.py │ ├── hooks.py │ ├── router.py │ ├── rules.py │ ├── templates │ ├── ccproxy.yaml │ └── config.yaml │ └── utils.py ├── stubs ├── httpx │ └── __init__.pyi ├── litellm │ ├── __init__.pyi │ ├── integrations │ │ ├── __init__.pyi │ │ └── custom_logger.pyi │ └── proxy.pyi ├── psutil │ └── __init__.pyi ├── pydantic_settings.pyi ├── rich │ ├── __init__.pyi │ ├── console.pyi │ ├── panel.pyi │ └── text.pyi ├── tiktoken.pyi └── tyro │ ├── __init__.pyi │ └── extras.pyi ├── tests ├── __init__.py ├── conftest.py ├── test_classifier.py ├── test_classifier_integration.py ├── test_claude_code_integration.py ├── test_cli.py ├── test_config.py ├── test_edge_cases.py ├── test_extensibility.py ├── test_handler.py ├── test_handler_logging.py ├── test_hooks.py ├── test_main.py ├── test_oauth_forwarding.py ├── test_oauth_user_agent.py ├── test_router.py ├── test_router_helpers.py ├── test_rules.py ├── test_shell_integration.py └── test_utils.py └── uv.lock /.env.example: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/.env.example -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/.gitignore -------------------------------------------------------------------------------- /.ignore: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/.ignore -------------------------------------------------------------------------------- /.pre-commit-config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/.pre-commit-config.yaml -------------------------------------------------------------------------------- /.python-version: -------------------------------------------------------------------------------- 1 | 3.12 2 | -------------------------------------------------------------------------------- /CLAUDE.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/CLAUDE.md -------------------------------------------------------------------------------- /CONTRIBUTING.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/CONTRIBUTING.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/LICENSE -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/MANIFEST.in -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/README.md -------------------------------------------------------------------------------- /compose.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/compose.yaml -------------------------------------------------------------------------------- /docs/configuration.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/docs/configuration.md -------------------------------------------------------------------------------- /docs/llms/litellm-proxy-logging.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/docs/llms/litellm-proxy-logging.md -------------------------------------------------------------------------------- /docs/llms/man/index.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/docs/llms/man/index.md -------------------------------------------------------------------------------- /docs/llms/man/litellm-anthropic-messages.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/docs/llms/man/litellm-anthropic-messages.md -------------------------------------------------------------------------------- /docs/llms/prompt_caching_docs.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/docs/llms/prompt_caching_docs.md -------------------------------------------------------------------------------- /examples/anthropic_sdk.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/examples/anthropic_sdk.py -------------------------------------------------------------------------------- /examples/litellm_sdk.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/examples/litellm_sdk.py -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/pyproject.toml -------------------------------------------------------------------------------- /src/ccproxy/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /src/ccproxy/__main__.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/src/ccproxy/__main__.py -------------------------------------------------------------------------------- /src/ccproxy/classifier.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/src/ccproxy/classifier.py -------------------------------------------------------------------------------- /src/ccproxy/cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/src/ccproxy/cli.py -------------------------------------------------------------------------------- /src/ccproxy/config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/src/ccproxy/config.py -------------------------------------------------------------------------------- /src/ccproxy/handler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/src/ccproxy/handler.py -------------------------------------------------------------------------------- /src/ccproxy/hooks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/src/ccproxy/hooks.py -------------------------------------------------------------------------------- /src/ccproxy/router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/src/ccproxy/router.py -------------------------------------------------------------------------------- /src/ccproxy/rules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/src/ccproxy/rules.py -------------------------------------------------------------------------------- /src/ccproxy/templates/ccproxy.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/src/ccproxy/templates/ccproxy.yaml -------------------------------------------------------------------------------- /src/ccproxy/templates/config.yaml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/src/ccproxy/templates/config.yaml -------------------------------------------------------------------------------- /src/ccproxy/utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/src/ccproxy/utils.py -------------------------------------------------------------------------------- /stubs/httpx/__init__.pyi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/stubs/httpx/__init__.pyi -------------------------------------------------------------------------------- /stubs/litellm/__init__.pyi: -------------------------------------------------------------------------------- 1 | # Type stubs for litellm 2 | -------------------------------------------------------------------------------- /stubs/litellm/integrations/__init__.pyi: -------------------------------------------------------------------------------- 1 | """Type stubs for litellm.integrations.""" 2 | -------------------------------------------------------------------------------- /stubs/litellm/integrations/custom_logger.pyi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/stubs/litellm/integrations/custom_logger.pyi -------------------------------------------------------------------------------- /stubs/litellm/proxy.pyi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/stubs/litellm/proxy.pyi -------------------------------------------------------------------------------- /stubs/psutil/__init__.pyi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/stubs/psutil/__init__.pyi -------------------------------------------------------------------------------- /stubs/pydantic_settings.pyi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/stubs/pydantic_settings.pyi -------------------------------------------------------------------------------- /stubs/rich/__init__.pyi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/stubs/rich/__init__.pyi -------------------------------------------------------------------------------- /stubs/rich/console.pyi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/stubs/rich/console.pyi -------------------------------------------------------------------------------- /stubs/rich/panel.pyi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/stubs/rich/panel.pyi -------------------------------------------------------------------------------- /stubs/rich/text.pyi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/stubs/rich/text.pyi -------------------------------------------------------------------------------- /stubs/tiktoken.pyi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/stubs/tiktoken.pyi -------------------------------------------------------------------------------- /stubs/tyro/__init__.pyi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/stubs/tyro/__init__.pyi -------------------------------------------------------------------------------- /stubs/tyro/extras.pyi: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/stubs/tyro/extras.pyi -------------------------------------------------------------------------------- /tests/__init__.py: -------------------------------------------------------------------------------- 1 | """Tests for ccproxy.""" 2 | -------------------------------------------------------------------------------- /tests/conftest.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/tests/conftest.py -------------------------------------------------------------------------------- /tests/test_classifier.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/tests/test_classifier.py -------------------------------------------------------------------------------- /tests/test_classifier_integration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/tests/test_classifier_integration.py -------------------------------------------------------------------------------- /tests/test_claude_code_integration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/tests/test_claude_code_integration.py -------------------------------------------------------------------------------- /tests/test_cli.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/tests/test_cli.py -------------------------------------------------------------------------------- /tests/test_config.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/tests/test_config.py -------------------------------------------------------------------------------- /tests/test_edge_cases.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/tests/test_edge_cases.py -------------------------------------------------------------------------------- /tests/test_extensibility.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/tests/test_extensibility.py -------------------------------------------------------------------------------- /tests/test_handler.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/tests/test_handler.py -------------------------------------------------------------------------------- /tests/test_handler_logging.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/tests/test_handler_logging.py -------------------------------------------------------------------------------- /tests/test_hooks.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/tests/test_hooks.py -------------------------------------------------------------------------------- /tests/test_main.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/tests/test_main.py -------------------------------------------------------------------------------- /tests/test_oauth_forwarding.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/tests/test_oauth_forwarding.py -------------------------------------------------------------------------------- /tests/test_oauth_user_agent.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/tests/test_oauth_user_agent.py -------------------------------------------------------------------------------- /tests/test_router.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/tests/test_router.py -------------------------------------------------------------------------------- /tests/test_router_helpers.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/tests/test_router_helpers.py -------------------------------------------------------------------------------- /tests/test_rules.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/tests/test_rules.py -------------------------------------------------------------------------------- /tests/test_shell_integration.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/tests/test_shell_integration.py -------------------------------------------------------------------------------- /tests/test_utils.py: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/tests/test_utils.py -------------------------------------------------------------------------------- /uv.lock: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/starbased-co/ccproxy/HEAD/uv.lock --------------------------------------------------------------------------------