Spaces:
Build error
Build error
Download headroom/proxy/__init__.py from minhtudragon/headroom_3: direct link, hf CLI and curl.
- Browser
- Download file 511 Bytes
-
https://huggingface.co/spaces/minhtudragon/headroom_3/resolve/7de545c00eea8cbb7d30e142ef021991eac75391/headroom/proxy/__init__.py
- Command line
-
hf download hf://spaces/minhtudragon/headroom_3@7de545c00eea8cbb7d30e142ef021991eac75391/headroom/proxy/__init__.py
-
curl -L -o __init__.py https://huggingface.co/spaces/minhtudragon/headroom_3/resolve/7de545c00eea8cbb7d30e142ef021991eac75391/headroom/proxy/__init__.py
511 Bytes
| """Headroom Proxy Server. | |
| A transparent proxy that sits between LLM clients (Claude Code, Cursor, etc.) | |
| and LLM APIs (Anthropic, OpenAI), applying Headroom optimizations. | |
| Usage: | |
| # Start the proxy | |
| python -m headroom.proxy.server | |
| # Use with Claude Code | |
| ANTHROPIC_BASE_URL=http://localhost:8787 claude | |
| # Use with Cursor (if using Anthropic) | |
| Set base URL in Cursor settings to http://localhost:8787 | |
| """ | |
| from .server import create_app, run_server | |
| __all__ = ["create_app", "run_server"] | |