cs log-ai calls required.
Start the proxy
When the proxy starts, it prints the correct environment variable syntax for your OS automatically — you can copy and paste directly from the terminal output.
Options
| Flag | Default | Description |
|---|---|---|
--port <port> | 3739 | Port to listen on |
Configure your tools
Point your tools at the proxy by setting the base URL environment variables. The proxy uses path prefixes to route traffic to the correct upstream provider.- Mac / Linux
- Windows PowerShell
Proxy health check
Verify the proxy is running and see which session is currently active:Security
The proxy is designed to be safe to run locally without additional configuration:- Loopback-only binding — the proxy binds to
127.0.0.1exclusively and is not accessible to other machines on your network. - Hardcoded upstream hosts — traffic is forwarded only to
api.anthropic.comandapi.openai.com; server-side request forgery (SSRF) is not possible. - No credential storage —
Authorizationheaders are forwarded to the upstream API as-is and are never written to disk or logged. - 10 MB response cap — upstream response bodies are capped at 10 MB in non-streaming mode to prevent memory exhaustion.
- 30-second upstream timeout — requests that take longer than 30 seconds are cancelled.
- Non-loopback connections refused — any connection attempt from outside
127.0.0.1receives a403response immediately. - No internal stack traces — upstream failures return a generic error response; no internal error details are exposed to the caller.
Using the proxy with manual sessions
You can paircs proxy start with cs start and cs end to combine manual session control with automatic API cost capture. Start the proxy in a separate terminal while your session is active: