-
Notifications
You must be signed in to change notification settings - Fork 282
feat(claude-trace): Add support for native bun binary #56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
- Detect native binaries (ELF/Mach-O/PE) via magic bytes - Use HTTP reverse proxy with ANTHROPIC_BASE_URL for compiled Claude - Add optional --include-sensitive-headers flag to disable header redaction Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
- Use 'where' instead of 'which' on Windows - Handle 'where' returning multiple lines - Skip bash wrapper detection on Windows - Add Windows paths (.local/bin/claude.exe, %APPDATA%/npm/claude.cmd) - Add missing paths (~/.claude/bin/claude, /opt/homebrew/bin/claude) Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
|
Hi @Richard-Weiss Thanks for putting up this PR. I just tried on a Mac with Claude Code v2.1.34 (native installer). Note that When session finished, reported Is there a way to run with debugging output so I can provide you more info? |
|
@gmarcus Seems to be intentional with this line: I don't have strong opinions when it comes to the default here, just something Claude did. Can you try it with that first and if it works I can adjust that afterward? |
|
I tried both ways
What do you think is causing those bad chars |
|
@gmarcus Nice, thanks for testing. I've been wondering about that |
|
@gmarcus Claude said this, sounds reasonable: There is a CC issue here for example: |
Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>



Adds support for tracing Claude when installed as a native binary (Bun-compiled) instead of Node.js. Uses a reverse proxy approach since the
--requireinterceptor only works with Node.--include-sensitive-headersthat logs bearer token and other credentialsI only tested it on Ubuntu Server so would be nice if someone on Mac and Windows were to test it before any possible merge.
Should resolve #37 and #48.