Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion open-sse/config/anthropicHeaders.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ export const ANTHROPIC_BETA_CLAUDE_OAUTH = [
...ANTHROPIC_BETA_BASE.slice(3),
].join(",");

export const CLAUDE_CLI_VERSION = "2.1.121";
// Static-config fallbacks for providerRegistry.ts. Runtime cloak in base.ts
// emits the same values via CLAUDE_CODE_VERSION in claudeIdentity.ts —
// keep both in sync.
export const CLAUDE_CLI_VERSION = "2.1.131";
export const CLAUDE_CLI_USER_AGENT = `claude-cli/${CLAUDE_CLI_VERSION} (external, cli)`;
export const CLAUDE_CLI_STAINLESS_PACKAGE_VERSION = "0.81.0";
export const CLAUDE_CLI_STAINLESS_RUNTIME_VERSION = "v24.3.0";
33 changes: 18 additions & 15 deletions open-sse/config/cliFingerprints.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,30 +63,32 @@ export const CLI_FINGERPRINTS: Record<string, CliFingerprint> = {
// executor-provided version or user override.
},
claude: {
// Header order matching real claude-cli: Title-Case (Stainless) keys
// alphabetically, then lowercase Anthropic keys alphabetically, then
// transport headers added by Node fetch.
headerOrder: [
"Host",
"Accept",
"Authorization",
"Content-Type",
"x-api-key",
"anthropic-version",
"anthropic-beta",
"anthropic-dangerous-direct-browser-access",
"x-app",
"User-Agent",
"X-Claude-Code-Session-Id",
"x-client-request-id",
"X-Stainless-Retry-Count",
"X-Stainless-Timeout",
"X-Stainless-Arch",
"X-Stainless-Lang",
"X-Stainless-Package-Version",
"X-Stainless-OS",
"X-Stainless-Arch",
"X-Stainless-Package-Version",
"X-Stainless-Retry-Count",
"X-Stainless-Runtime",
"X-Stainless-Runtime-Version",
"Accept",
"accept-language",
"accept-encoding",
"sec-fetch-mode",
"X-Stainless-Timeout",
"anthropic-beta",
"anthropic-dangerous-direct-browser-access",
"anthropic-version",
"x-app",
"x-client-request-id",
"Connection",
"Host",
"Accept-Encoding",
"Content-Length",
],
bodyFieldOrder: [
"model",
Expand All @@ -96,6 +98,7 @@ export const CLI_FINGERPRINTS: Record<string, CliFingerprint> = {
"tool_choice",
"metadata",
"max_tokens",
"temperature",
"thinking",
"context_management",
"output_config",
Expand Down
Loading