Skip to content

LLM requests name the program in User-Agent - #390

Merged
rromenskyi merged 1 commit into
mainfrom
llm-user-agent
Oct 20, 2026
Merged

rromenskyi merged 1 commit into
mainfrom
llm-user-agent

Conversation

@rromenskyi

Copy link
Copy Markdown
Contributor

A proxy in front of the model server, such as LLMTray or a gateway, saw only Go-http-client/1.1 from us. That is the same header any other Go tool sends, so it couldn't tell ipsupport-code apart.

Chat and all four model-list/context probes in internal/llm now send ipsupport-code/<version>. That is the value telemetry already sends (userAgent()). It is set once at startup through llm.UserAgent.

Test: internal/llm/useragent_test.go checks each request separately. In a sabotage pass, removing any one of the 5 setUserAgent calls fails the test.

🤖 Generated with Claude Code

A proxy in front of the model server (LLMTray, a gateway) saw only
"Go-http-client/1.1" — the same as any other Go tool — and could not tell
ipsupport-code apart. Chat and every model-list/context probe now send
"ipsupport-code/<version>", the value telemetry already uses.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

@claude claude Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Code review skipped — your organization has no extra usage available to pay for this review.

If your organization's extra usage balance is empty, an organization admin can add extra usage credits at claude.ai/admin-settings/usage. If its monthly spend limit was reached, an admin can raise it on the same page. If neither applies, contact Anthropic support.

Once extra usage is available, someone with write access to this repository can comment @claude review on this pull request to trigger a review.

@rromenskyi
rromenskyi merged commit 08aa5c4 into main Oct 20, 2026
2 checks passed
@rromenskyi
rromenskyi deleted the llm-user-agent branch October 20, 2026 00:27
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