Skip to content

Add agent information to UserAgent#1743

Merged
xavdid-stripe merged 2 commits intomasterfrom
RUN_DEVSDK-2249
Feb 28, 2026
Merged

Add agent information to UserAgent#1743
xavdid-stripe merged 2 commits intomasterfrom
RUN_DEVSDK-2249

Conversation

@xavdid-stripe
Copy link
Member

Why?

It's becoming more common that an AI agent interacting with Stripe data on behalf of a user will write a little script before executing it. We want to be able to identify that usage, so we're adding simple telemetry around that usage.

What?

  • adds function to check the environment for agent-related keys
  • add that info, if found, to the UserAgent string and X-Stripe-Client-User-Agent dict
  • tests

See Also

@xavdid-stripe xavdid-stripe requested a review from a team as a code owner February 27, 2026 23:33
@xavdid-stripe xavdid-stripe requested review from mbroshi-stripe and removed request for a team February 27, 2026 23:33
@xavdid-stripe xavdid-stripe enabled auto-merge (squash) February 27, 2026 23:33
@xavdid-stripe xavdid-stripe merged commit 596c603 into master Feb 28, 2026
20 checks passed
@xavdid-stripe xavdid-stripe deleted the RUN_DEVSDK-2249 branch February 28, 2026 01: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.

2 participants