
Security News
Astral Launches pyx: A Python-Native Package Registry
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
claude-code-logger
Advanced tools
HTTP/HTTPS proxy logger for analyzing Claude Code traffic with enhanced chat mode visualization
A specialized HTTP/HTTPS proxy logger designed for analyzing and debugging Claude Code traffic with enhanced chat mode visualization.
This tool was built specifically to help developers understand and debug the communication between Claude Code and the Anthropic API. It provides a clean, formatted view of the conversation flow, making it easier to:
Simply run these two commands in separate terminals:
Terminal 1 - Start the logger:
npx claude-code-logger start
Terminal 2 - Start Claude Code with proxy:
ANTHROPIC_BASE_URL=http://localhost:8000/ claude
That's it! You'll now see a beautifully formatted log of all Claude Code interactions in your terminal.
For help and options:
npx claude-code-logger start --help
-v
flag to see full prompts without truncationclaude-code-logger start [options]
Options:
-p, --port <port> Local port to listen on (default: 8000)
-h, --host <host> Remote host address (default: api.anthropic.com)
-r, --remote-port <port> Remote port (default: 443)
--https Use HTTPS for remote connection (default: true)
--local-https Accept HTTPS connections locally (default: false)
--log-body Log request and response bodies (default: false)
--merge-sse Merge Server-Sent Events into readable messages (default: false)
--debug Show debug messages for troubleshooting (default: false)
--chat-mode Show only chat conversation with live streaming (default: true)
-v, --verbose Show full prompts without truncation (default: false)
# Basic usage - logs Claude Code conversations
npm run dev -- start
ANTHROPIC_BASE_URL=http://localhost:8000/ claude
# With full prompt visibility
npm run dev -- start --verbose
ANTHROPIC_BASE_URL=http://localhost:8000/ claude
# With debug information
npm run dev -- start --debug
ANTHROPIC_BASE_URL=http://localhost:8000/ claude
# Log to file for later analysis
npm run dev -- start 2>&1 | tee claude-session-$(date +%Y%m%d-%H%M%S).log
# Proxy any HTTP service
npm run dev -- start -p 3000 -h example.com -r 80 --https=false --chat-mode=false
# Log all traffic with bodies
npm run dev -- start -h api.example.com --log-body --chat-mode=false
# Debug mode for troubleshooting
npm run dev -- start --debug --log-body --chat-mode=false
In chat mode (default), the output is clean and focused:
π Proxy server started on http://localhost:8000
π‘ Forwarding to https://api.anthropic.com:443
π Logging all traffic to console...
π€ How do I read a file in Python?
π€ To read a file in Python, you can use the built-in `open()` function. Here are the most common approaches:
### Basic File Reading
```python
# Read entire file content
with open('filename.txt', 'r') as file:
content = file.read()
print(content)
... (formatted markdown output) ...
## π Development
```bash
# Install dependencies
npm install
# Run in development mode
npm run dev -- start
# Build for production
npm run build
# Type checking
npm run typecheck
# Linting
npm run lint
npx claude-code-logger start
npm install -g claude-code-logger
claude-code-logger start
Contributions are welcome! This tool is specifically designed for Claude Code, but can be extended for other use cases.
MIT
Note: This tool is not affiliated with Anthropic. It's an independent project designed to help developers work more effectively with Claude Code.
FAQs
HTTP/HTTPS proxy logger for analyzing Claude Code traffic with enhanced chat mode visualization
The npm package claude-code-logger receives a total of 142 weekly downloads. As such, claude-code-logger popularity was classified as not popular.
We found that claude-code-logger demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.Β It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Astral unveils pyx, a Python-native package registry in beta, designed to speed installs, enhance security, and integrate deeply with uv.
Security News
The Latio podcast explores how static and runtime reachability help teams prioritize exploitable vulnerabilities and streamline AppSec workflows.
Security News
The latest Opengrep releases add Apex scanning, precision rule tuning, and performance gains for open source static code analysis.