Skip to content

fix: match Claude Code request headers for 1:1 fingerprint parity#108

Closed
griffinmartin wants to merge 1 commit intomainfrom
fix/match-claude-code-request-fingerprint
Closed

fix: match Claude Code request headers for 1:1 fingerprint parity#108
griffinmartin wants to merge 1 commit intomainfrom
fix/match-claude-code-request-fingerprint

Conversation

@griffinmartin
Copy link
Copy Markdown
Owner

@griffinmartin griffinmartin commented Mar 31, 2026

test

Add missing headers that the real Claude Code binary sends on every API
request, discovered by decompiling the Bun standalone binary (v2.1.88)
and tracing the Ky() client factory and aY4() fetch wrapper.

Headers added:
- x-client-request-id: crypto.randomUUID() per request (request tracing)
- X-Claude-Code-Session-Id: stable UUID per process lifetime
- anthropic-version: 2023-06-01 (SDK API version)

Also fixes user-agent format from 'claude-cli/<v> (external, cli)' to
'claude-code/<v>' to match the binary exactly, and bumps ccVersion to
2.1.88.
@griffinmartin griffinmartin deleted the fix/match-claude-code-request-fingerprint branch March 31, 2026 06:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant